tc = (LogKitTestComponent)lookup( LogKitTestComponent.ROLE + "/A" );
tc.test( getLogEnabledLogger(), "Test log entry A" );
}
catch( Exception e )
{
throw new CascadingAssertionFailedError( "There was an error in the LogKitManagement test", e );
}
finally
{
assertTrue( "The test component could not be retrieved.", null != tc );
release( tc );
}
try
{
tc = (LogKitTestComponent)lookup( LogKitTestComponent.ROLE + "/B" );
tc.test( getLogEnabledLogger(), "Test log entry B" );
}
catch( Exception e )
{
throw new CascadingAssertionFailedError( "There was an error in the LogKitManagement test", e );
}
finally
{
assertTrue( "The test component could not be retrieved.", null != tc );
release( tc );
}
try
{
tc = (LogKitTestComponent)lookup( LogKitTestComponent.ROLE + "/C" );
tc.test( getLogEnabledLogger(), "Test log entry C" );
}
catch( Exception e )
{
throw new CascadingAssertionFailedError( "There was an error in the LogKitManagement test", e );
}
finally
{
assertTrue( "The test component could not be retrieved.", null != tc );
release( tc );