public void testCtorNullsInClassLoaderSet()
throws Exception
{
try
{
new ClassLoaderSetMetaData( null,
new String[ 0 ],
new ClassLoaderMetaData[ 0 ],
new JoinMetaData[ 0 ] );
fail( "Expected a NPE" );
}
catch( NullPointerException e )
{
assertEquals( "NPE type", "aDefault", e.getMessage() );
}
try
{
new ClassLoaderSetMetaData( "",
null,
new ClassLoaderMetaData[ 0 ],
new JoinMetaData[ 0 ] );
fail( "Expected a NPE" );
}
catch( NullPointerException e )
{
assertEquals( "NPE type", "predefined", e.getMessage() );
}
try
{
new ClassLoaderSetMetaData( "",
new String[ 0 ],
new ClassLoaderMetaData[ 0 ],
null );
fail( "Expected a NPE" );
}
catch( NullPointerException e )
{
assertEquals( "NPE type", "joins", e.getMessage() );
}
try
{
new ClassLoaderSetMetaData( "",
new String[ 0 ],
null,
new JoinMetaData[ 0 ] );
fail( "Expected a NPE" );
}