You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2009/11/03 14:56:11 UTC
svn commit: r832419 -
/maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4273RestrictedCoreRealmAccessForPluginTest.java
Author: bentmann
Date: Tue Nov 3 13:56:11 2009
New Revision: 832419
URL: http://svn.apache.org/viewvc?rev=832419&view=rev
Log:
o Stabilized IT to account for boot class path of IBM JREs
Modified:
maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4273RestrictedCoreRealmAccessForPluginTest.java
Modified: maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4273RestrictedCoreRealmAccessForPluginTest.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4273RestrictedCoreRealmAccessForPluginTest.java?rev=832419&r1=832418&r2=832419&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4273RestrictedCoreRealmAccessForPluginTest.java (original)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4273RestrictedCoreRealmAccessForPluginTest.java Tue Nov 3 13:56:11 2009
@@ -57,8 +57,19 @@
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" ) );
+ }
}
}