Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/SymbolicRefTest.java')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/SymbolicRefTest.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/SymbolicRefTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/SymbolicRefTest.java
index bff4fc34fa..1342253c05 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/SymbolicRefTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/SymbolicRefTest.java
@@ -43,9 +43,15 @@
package org.eclipse.jgit.lib;
-import junit.framework.TestCase;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertSame;
+import static org.junit.Assert.assertTrue;
-public class SymbolicRefTest extends TestCase {
+import org.junit.Test;
+
+public class SymbolicRefTest {
private static final ObjectId ID_A = ObjectId
.fromString("41eb0d88f833b558bddeb269b7ab77399cdf98ed");
@@ -56,6 +62,7 @@ public class SymbolicRefTest extends TestCase {
private static final String name = "refs/remotes/origin/HEAD";
+ @Test
public void testConstructor() {
Ref t;
SymbolicRef r;
@@ -83,6 +90,7 @@ public class SymbolicRefTest extends TestCase {
assertTrue("is symbolic", r.isSymbolic());
}
+ @Test
public void testLeaf() {
Ref a;
SymbolicRef b, c, d;
@@ -114,6 +122,7 @@ public class SymbolicRefTest extends TestCase {
assertSame(ID_B, b.getPeeledObjectId());
}
+ @Test
public void testToString() {
Ref a;
SymbolicRef b, c, d;

Back to the top