XmlConfigurationManager { public XmlLocalConfiguration getConfiguration(CtClass clazz) { return getConfiguration(clazz.getName()); } 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 testDefaultLocalConfiguration() { XmlLocalConfiguration configuration = manager.getConfiguration(XmlConfigurationManager.class); assertThat(configuration.getDefaultPrecondition(), is(DefaultPreconditionType.UNDEFINED)); assertThat(configuration.isPureSkipInvariants(), is(true)); assertThat(configuration.isPureValidate(), is(false)); }