Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit/dircache/DirCacheEntryTest.java')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/dircache/DirCacheEntryTest.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/dircache/DirCacheEntryTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/dircache/DirCacheEntryTest.java
index 446fd70601..7c90f25b55 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/dircache/DirCacheEntryTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/dircache/DirCacheEntryTest.java
@@ -43,12 +43,18 @@
package org.eclipse.jgit.dircache;
-import junit.framework.TestCase;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertSame;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
import org.eclipse.jgit.lib.Constants;
import org.eclipse.jgit.lib.FileMode;
+import org.junit.Test;
-public class DirCacheEntryTest extends TestCase {
+public class DirCacheEntryTest {
+ @Test
public void testIsValidPath() {
assertTrue(isValidPath("a"));
assertTrue(isValidPath("a/b"));
@@ -67,6 +73,7 @@ public class DirCacheEntryTest extends TestCase {
return DirCacheEntry.isValidPath(Constants.encode(path));
}
+ @Test
public void testCreate_ByStringPath() {
assertEquals("a", new DirCacheEntry("a").getPathString());
assertEquals("a/b", new DirCacheEntry("a/b").getPathString());
@@ -79,6 +86,7 @@ public class DirCacheEntryTest extends TestCase {
}
}
+ @Test
public void testCreate_ByStringPathAndStage() {
DirCacheEntry e;
@@ -120,6 +128,7 @@ public class DirCacheEntryTest extends TestCase {
}
}
+ @Test
public void testSetFileMode() {
final DirCacheEntry e = new DirCacheEntry("a");

Back to the top