use of org.jpos.core.SubConfiguration in project jPOS by jpos.
the class RotateLogListenerTest method testSetConfigurationThrowsNullPointerException.
@Test
public void testSetConfigurationThrowsNullPointerException() throws Throwable {
RotateLogListener rotateLogListener = new RotateLogListener();
Configuration cfg = new SubConfiguration();
try {
rotateLogListener.setConfiguration(cfg);
fail("Expected NullPointerException to be thrown");
} catch (NullPointerException ex) {
assertNull("ex.getMessage()", ex.getMessage());
assertNull("rotateLogListener.logName", rotateLogListener.logName);
assertEquals("rotateLogListener.sleepTime", 0L, rotateLogListener.sleepTime);
assertEquals("rotateLogListener.maxSize", 0L, rotateLogListener.maxSize);
assertEquals("rotateLogListener.maxCopies", 0, rotateLogListener.maxCopies);
assertNull("rotateLogListener.rotate", rotateLogListener.rotate);
assertNull("rotateLogListener.f", rotateLogListener.f);
assertNotNull("rotateLogListener.p", rotateLogListener.p);
}
}
use of org.jpos.core.SubConfiguration in project jPOS by jpos.
the class BSHRequestListenerTest method testSetConfigurationThrowsNullPointerException.
@Test
public void testSetConfigurationThrowsNullPointerException() throws Throwable {
BSHRequestListener bSHRequestListener = new BSHRequestListener();
Configuration cfg = new SubConfiguration();
try {
bSHRequestListener.setConfiguration(cfg);
fail("Expected NullPointerException to be thrown");
} catch (NullPointerException ex) {
assertSame("bSHRequestListener.cfg", cfg, bSHRequestListener.cfg);
assertNull("ex.getMessage()", ex.getMessage());
assertNull("bSHRequestListener.whitelist", bSHRequestListener.whitelist);
assertNull("bSHRequestListener.bshSource", bSHRequestListener.bshSource);
}
}
use of org.jpos.core.SubConfiguration in project jPOS by jpos.
the class JCESecurityModuleTest method testConstructorThrowsNullPointerException2.
@Test
public void testConstructorThrowsNullPointerException2() throws Throwable {
Configuration cfg = new SubConfiguration();
try {
new JCESecurityModule(cfg, new Logger(), "testJCESecurityModuleRealm");
fail("Expected NullPointerException to be thrown");
} catch (NullPointerException ex) {
assertNull("ex.getMessage()", ex.getMessage());
}
}
use of org.jpos.core.SubConfiguration in project jPOS by jpos.
the class JCESecurityModuleTest method testSetConfigurationThrowsNullPointerException.
@Test
public void testSetConfigurationThrowsNullPointerException() throws Throwable {
JCESecurityModule jCESecurityModule = new JCESecurityModule();
Configuration cfg = new SubConfiguration();
try {
jCESecurityModule.setConfiguration(cfg);
fail("Expected NullPointerException to be thrown");
} catch (NullPointerException ex) {
assertNull("ex.getMessage()", ex.getMessage());
}
}
use of org.jpos.core.SubConfiguration in project jPOS by jpos.
the class DelayFilterTest method testSetConfigurationThrowsNullPointerException.
@Test
public void testSetConfigurationThrowsNullPointerException() throws Throwable {
DelayFilter delayFilter = new DelayFilter(100);
Configuration cfg = new SubConfiguration();
try {
delayFilter.setConfiguration(cfg);
fail("Expected NullPointerException to be thrown");
} catch (NullPointerException ex) {
assertNull("ex.getMessage()", ex.getMessage());
assertEquals("delayFilter.delay", 100, delayFilter.delay);
}
}
Aggregations