use of com.sun.identity.shared.debug.file.impl.DebugConfigurationFromProperties in project OpenAM by OpenRock.
the class DebugTestTemplate method initializeProvider.
/**
* Initialize the debug provider
*
* @param debugConfigPath
*/
public void initializeProvider(String debugConfigPath) throws InvalidDebugConfigurationException {
DebugConfigurationFromProperties debugConfig = new DebugConfigurationFromProperties(debugConfigPath);
debugFileProvider = new DebugFileProviderForTest(debugConfig, TimeService.SYSTEM);
provider = new DebugProviderImpl(debugFileProvider);
}
use of com.sun.identity.shared.debug.file.impl.DebugConfigurationFromProperties in project OpenAM by OpenRock.
the class DebugConfigurationFromPropertiesTest method sizeAndTimeRotationConfig.
@Test
public void sizeAndTimeRotationConfig() throws Exception {
DebugConfigurationFromProperties debugConfigurationFromProperties = new DebugConfigurationFromProperties(DEBUG_CONFIG_DIRECTORY + "valid/sizeAndTimeRotationConfig.properties");
Assert.assertTrue(debugConfigurationFromProperties.getDebugPrefix().isEmpty(), "Debug prefix should be empty");
Assert.assertEquals(debugConfigurationFromProperties.getDebugSuffix(), "-MM.dd.yyyy-HH.mm.ss.SSS");
Assert.assertEquals(debugConfigurationFromProperties.getRotationInterval(), 3);
Assert.assertEquals(debugConfigurationFromProperties.getRotationFileSizeInByte(), 2 << 20);
}
use of com.sun.identity.shared.debug.file.impl.DebugConfigurationFromProperties in project OpenAM by OpenRock.
the class DebugTestTemplate method initializeProvider.
/**
* Initialize the debug provider
*
* @param debugConfigPath
*/
public void initializeProvider(String debugConfigPath) throws InvalidDebugConfigurationException {
DebugConfigurationFromProperties debugConfig = new DebugConfigurationFromProperties(debugConfigPath);
debugFileProvider = new DebugFileProviderForTest(debugConfig, TimeService.SYSTEM);
provider = new DebugProviderImpl(debugFileProvider);
}
Aggregations