Assert.assertTrue(expectedSet.isEmpty());
}
@Test
public void testP6SpyOptionDefaults() {
P6SpyLoadableOptions opts = P6SpyOptions.getActiveInstance();
Assert.assertNotNull(opts);
Assert.assertEquals(SingleLineFormat.class.getName(), opts.getLogMessageFormat());
Assert.assertEquals("spy.log", opts.getLogfile());
Assert.assertTrue(opts.getAppend());
Assert.assertNull(opts.getDateformat());
Assert.assertEquals(FileLogger.class.getName(), opts.getAppender());
Assert.assertEquals(P6SpyFactory.class.getName() + ","+ P6LogFactory.class.getName(), opts.getModulelist());
Assert.assertEquals(2, opts.getModuleFactories().size());
assertP6FactoryClassesEqual(DEFAULT_FACTORIES, opts.getModuleFactories());
Assert.assertEquals(2, opts.getModuleNames().size());
Assert.assertTrue(opts.getModuleNames().contains(P6SpyFactory.class.getName()));
Assert.assertTrue(opts.getModuleNames().contains(P6LogFactory.class.getName()));
Assert.assertEquals("", opts.getDriverlist());
Assert.assertNull(opts.getDriverNames());
Assert.assertFalse(opts.getStackTrace());
Assert.assertNull(opts.getStackTraceClass());
Assert.assertFalse(opts.getAutoflush());
Assert.assertFalse(opts.getReloadProperties());
Assert.assertEquals(60L, opts.getReloadPropertiesInterval());
Assert.assertNull(opts.getJNDIContextFactory());
Assert.assertNull(opts.getJNDIContextProviderURL());
Assert.assertNull(opts.getJNDIContextCustom());
Assert.assertNull(opts.getRealDataSource());
Assert.assertNull(opts.getRealDataSourceClass());
Assert.assertEquals("dd-MMM-yy", opts.getDatabaseDialectDateFormat());
Assert.assertTrue(opts.getJmx());
Assert.assertNull(opts.getJmxPrefix());
}