@Test public void testGetBoolean7() throws Throwable { Properties props = new Properties(); SimpleConfiguration simpleConfiguration = new SimpleConfiguration(props); props.clear(); Collection arrayList = new ArrayList(); arrayList.add("testString"); props.put("testString", "testString"); String name = (String) props.put("testString", arrayList); boolean result = simpleConfiguration.getBoolean(name); assertFalse("result", result); }
@Test public void testGetBoolean6() throws Throwable { Properties props = new Properties(); SimpleConfiguration simpleConfiguration = new SimpleConfiguration(props); props.clear(); props.put("testString", "testString"); String name = (String) props.put("testString", new ArrayList()); boolean result = simpleConfiguration.getBoolean(name); assertFalse("result", result); }
@Test public void testGetBoolean3() throws Throwable { Properties props = new Properties(); props.put("^\n", "testString"); boolean result = new SimpleConfiguration(props).getBoolean("^\n"); assertFalse("result", result); }
@Test public void testGetBoolean4() throws Throwable { boolean result = new SimpleConfiguration(new Properties()).getBoolean("testSimpleConfigurationName"); assertFalse("result", result); }
@Test public void testGetBoolean2() throws Throwable { SimpleConfiguration simpleConfiguration = new SimpleConfiguration(new Properties()); simpleConfiguration.put("testString", "testString"); boolean result = simpleConfiguration.getBoolean("testString", true); assertFalse("result", result); }
@Test public void testGetBoolean1() throws Throwable { SimpleConfiguration simpleConfiguration = new SimpleConfiguration(new Properties()); simpleConfiguration.put("testString", ""); boolean result = simpleConfiguration.getBoolean("testString", false); assertFalse("result", result); }
@Test public void testGetBoolean5() throws Throwable { SimpleConfiguration simpleConfiguration = new SimpleConfiguration(new Properties()); simpleConfiguration.put("testString", ""); boolean result = simpleConfiguration.getBoolean("testString"); assertFalse("result", result); }
@Test public void testGetBoolean() throws Throwable { boolean result = new SimpleConfiguration().getBoolean("testSimpleConfigurationName", true); assertTrue("result", result); }
@Test public void testGetBooleanThrowsNullPointerException1() throws Throwable { try { new SimpleConfiguration((Properties) null).getBoolean("testSimpleConfigurationName"); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { assertNull("ex.getMessage()", ex.getMessage()); } }
@Test public void testGetBooleanThrowsNullPointerException() throws Throwable { try { new SimpleConfiguration((Properties) null).getBoolean("testSimpleConfigurationName", true); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { assertNull("ex.getMessage()", ex.getMessage()); } }