|
|
@@ -46,6 +46,7 @@ import org.eclipse.jgit.revwalk.RevWalk; |
|
|
|
import org.eclipse.jgit.treewalk.FileTreeIterator; |
|
|
|
import org.eclipse.jgit.util.FS; |
|
|
|
import org.eclipse.jgit.util.FileUtils; |
|
|
|
import org.junit.After; |
|
|
|
import org.junit.Before; |
|
|
|
|
|
|
|
/** |
|
|
@@ -187,6 +188,13 @@ public abstract class RepositoryTestCase extends LocalDiskRepositoryTestCase { |
|
|
|
trash = db.getWorkTree(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@After |
|
|
|
public void tearDown() throws Exception { |
|
|
|
db.close(); |
|
|
|
super.tearDown(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Represent the state of the index in one String. This representation is |
|
|
|
* useful when writing tests which do assertions on the state of the index. |