XmlConfigurationManager { public XmlGlobalConfiguration getGlobalConfiguration() { return globalConfiguration; } XmlConfigurationManager(); void registerAndFeedLocalConfigurationCallback(LocalConfigurationCallback localConfigurationCallback); void registerClassLoader(ClassLoader classLoader); XmlLocalConfiguration getConfiguration(CtClass clazz); XmlLocalConfiguration getConfiguration(Class<?> clazz); XmlLocalConfiguration getConfiguration(String className); boolean isWithinRootPackages(CtClass clazz); XmlGlobalConfiguration getGlobalConfiguration(); ContractViolationAction getContractViolationAction(Class<?> clazz); static final XmlConfigurationManager INSTANCE; static final String C4J_LOCAL_XML; static final String C4J_GLOBAL_XML; }
@Test public void testDefaultGlobalConfiguration() { XmlGlobalConfiguration globalConfig = manager.getGlobalConfiguration(); assertThat(globalConfig.writeTransformedClasses(), is(false)); assertThat(globalConfig.writeTransformedClassesDirectory(), is(".")); assertThat(globalConfig.getContractViolationActions().size(), is(0)); }