@ -56,11 +56,15 @@ import java.io.File;
import java.io.FileWriter ;
import java.io.FileWriter ;
import java.io.IOException ;
import java.io.IOException ;
import org.eclipse.jgit.api.Git ;
import org.eclipse.jgit.api.Status ;
import org.eclipse.jgit.api.errors.GitAPIException ;
import org.eclipse.jgit.dircache.DirCache ;
import org.eclipse.jgit.dircache.DirCache ;
import org.eclipse.jgit.dircache.DirCacheEditor ;
import org.eclipse.jgit.dircache.DirCacheEditor ;
import org.eclipse.jgit.dircache.DirCacheEditor.PathEdit ;
import org.eclipse.jgit.dircache.DirCacheEditor.PathEdit ;
import org.eclipse.jgit.dircache.DirCacheEntry ;
import org.eclipse.jgit.dircache.DirCacheEntry ;
import org.eclipse.jgit.errors.ConfigInvalidException ;
import org.eclipse.jgit.errors.ConfigInvalidException ;
import org.eclipse.jgit.errors.NoWorkTreeException ;
import org.eclipse.jgit.junit.RepositoryTestCase ;
import org.eclipse.jgit.junit.RepositoryTestCase ;
import org.eclipse.jgit.junit.TestRepository ;
import org.eclipse.jgit.junit.TestRepository ;
import org.eclipse.jgit.lib.Config ;
import org.eclipse.jgit.lib.Config ;
@ -98,7 +102,7 @@ public class SubmoduleWalkTest extends RepositoryTestCase {
@Test
@Test
public void repositoryWithRootLevelSubmodule ( ) throws IOException ,
public void repositoryWithRootLevelSubmodule ( ) throws IOException ,
ConfigInvalidException {
ConfigInvalidException , NoWorkTreeException , GitAPIException {
final ObjectId id = ObjectId
final ObjectId id = ObjectId
. fromString ( "abcd1234abcd1234abcd1234abcd1234abcd1234" ) ;
. fromString ( "abcd1234abcd1234abcd1234abcd1234abcd1234" ) ;
final String path = "sub" ;
final String path = "sub" ;
@ -124,6 +128,8 @@ public class SubmoduleWalkTest extends RepositoryTestCase {
assertNull ( gen . getModulesUpdate ( ) ) ;
assertNull ( gen . getModulesUpdate ( ) ) ;
assertNull ( gen . getModulesUrl ( ) ) ;
assertNull ( gen . getModulesUrl ( ) ) ;
assertNull ( gen . getRepository ( ) ) ;
assertNull ( gen . getRepository ( ) ) ;
Status status = Git . wrap ( db ) . status ( ) . call ( ) ;
assertTrue ( ! status . isClean ( ) ) ;
assertFalse ( gen . next ( ) ) ;
assertFalse ( gen . next ( ) ) ;
}
}