Skip to content

Commit 25e01cc

Browse files
author
Vladimir Kotal
committed
simplify asserts
1 parent 7a9b5a3 commit 25e01cc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/org/opensolaris/opengrok/history/SCCSRepositoryTest.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import org.junit.Before;
3333
import org.junit.BeforeClass;
3434
import org.junit.Test;
35-
import static org.junit.Assert.*;
35+
import static org.junit.Assert.assertEquals;
3636

3737
/**
3838
*
@@ -69,11 +69,7 @@ private void testIsRepositoryFor(final String fileName, boolean shouldPass) thro
6969
tdir.deleteOnExit();
7070
test.deleteOnExit();
7171
SCCSRepository instance = new SCCSRepository();
72-
if (shouldPass) {
73-
assertTrue(instance.isRepositoryFor(tdir));
74-
} else {
75-
assertFalse(instance.isRepositoryFor(tdir));
76-
}
72+
assertEquals(shouldPass, instance.isRepositoryFor(tdir));
7773
}
7874

7975
@Test

0 commit comments

Comments
 (0)