summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test
diff options
context:
space:
mode:
authorTomasz Zarna <Tomasz.Zarna@pl.ibm.com>2012-06-18 17:41:34 +0200
committerTomasz Zarna <Tomasz.Zarna@pl.ibm.com>2012-06-18 17:41:34 +0200
commit8dc10b147d8db4b44ec343f5de63cc2915342bec (patch)
tree5b444ee11f1438c95a611babf15a6b163793785c /org.eclipse.jgit.test
parent2656ac1b5acb9b73c6b47e2cf8830a0a0b2cc214 (diff)
downloadjgit-8dc10b147d8db4b44ec343f5de63cc2915342bec.tar.gz
jgit-8dc10b147d8db4b44ec343f5de63cc2915342bec.zip
Fix boxing warnings in org.eclipse.jgit.lib.ConfigTest
Change-Id: Ie6ae7ade36a117c22c656f792266d4116d52b9bc
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java
index c764928771..700ab35883 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java
@@ -75,16 +75,16 @@ public class ConfigTest {
@Test
public void test001_ReadBareKey() throws ConfigInvalidException {
final Config c = parse("[foo]\nbar\n");
- assertEquals(true, c.getBoolean("foo", null, "bar", false));
+ assertTrue(c.getBoolean("foo", null, "bar", false));
assertEquals("", c.getString("foo", null, "bar"));
}
@Test
public void test002_ReadWithSubsection() throws ConfigInvalidException {
final Config c = parse("[foo \"zip\"]\nbar\n[foo \"zap\"]\nbar=false\nn=3\n");
- assertEquals(true, c.getBoolean("foo", "zip", "bar", false));
+ assertTrue(c.getBoolean("foo", "zip", "bar", false));
assertEquals("", c.getString("foo","zip", "bar"));
- assertEquals(false, c.getBoolean("foo", "zap", "bar", true));
+ assertFalse(c.getBoolean("foo", "zap", "bar", true));
assertEquals("false", c.getString("foo", "zap", "bar"));
assertEquals(3, c.getInt("foo", "zap", "n", 4));
assertEquals(4, c.getInt("foo", "zap","m", 4));
@@ -126,7 +126,7 @@ public class ConfigTest {
@Test
public void test006_readCaseInsensitive() throws ConfigInvalidException {
final Config c = parse("[Foo]\nBar\n");
- assertEquals(true, c.getBoolean("foo", null, "bar", false));
+ assertTrue(c.getBoolean("foo", null, "bar", false));
assertEquals("", c.getString("foo", null, "bar"));
}