o Stabilized IT to account for boot class path of IBM JREs

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@832419 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-11-03 13:56:11 +00:00
parent cca0924031
commit 1fec816dbd
1 changed files with 12 additions and 1 deletions

View File

@ -57,8 +57,19 @@ public class MavenITmng4273RestrictedCoreRealmAccessForPluginTest
verifier.resetStreams();
Properties props = verifier.loadProperties( "target/class.properties" );
assertNull( props.getProperty( "org.codehaus.plexus.util.FileUtils$FilterWrapper" ) );
assertNull( props.getProperty( "org.apache.xerces.util.ParserConfigurationSettings" ) );
try
{
// some IBM JRE's ship with Xerces (xml.jar) so a plugin can load this class from the bootstrap loader
ClassLoader.getSystemClassLoader().loadClass( "org.apache.xerces.util.ParserConfigurationSettings" );
}
catch ( ClassNotFoundException e )
{
// not provided by JRE, and must not be provided by Maven's core realm either
assertNull( props.getProperty( "org.apache.xerces.util.ParserConfigurationSettings" ) );
}
}
}