@Test public void testGetIntValueNoValue() throws Exception { ConfigurationSetting cs = new ConfigurationSetting(); cs.setContextId("some_context"); cs.setInformationId(ConfigurationKey.LOG_LEVEL); Assert.assertEquals(0, cs.getIntValue()); }
@Test(expected = SaaSSystemException.class) public void testGetIntValueInvalidFormat() throws Exception { ConfigurationSetting cs = new ConfigurationSetting(); cs.setContextId("some_context"); cs.setInformationId(ConfigurationKey.LOG_LEVEL); cs.setValue("some value"); cs.getIntValue(); }