public void testNullPointerException()
{
try
{
new ComponentHandlerMetaData( null, Component1.class.getName(),
new DefaultConfiguration( "test" ), false );
fail( "No NullPointerException was thrown" );
}
catch ( NullPointerException npe )
{
// SUCCESS!!
}
catch ( Exception e )
{
fail( "Did not throw the correct exception: " + e.getClass().getName() );
}
try
{
new ComponentHandlerMetaData( "component1", null,
new DefaultConfiguration( "test" ), false );
fail( "No NullPointerException was thrown" );
}
catch ( NullPointerException npe )
{
// SUCCESS!!
}
catch ( Exception e )
{
fail( "Did not throw the correct exception: " + e.getClass().getName() );
}
try
{
new ComponentHandlerMetaData( "component1", Component1.class.getName(),
null, false );
fail( "No NullPointerException was thrown" );
}
catch ( NullPointerException npe )