Index: trunk/api2/test/java/javax/jdo/JDOHelperConfigTest.java =================================================================== --- trunk/api2/test/java/javax/jdo/JDOHelperConfigTest.java (revision 694477) +++ trunk/api2/test/java/javax/jdo/JDOHelperConfigTest.java (working copy) @@ -527,6 +527,7 @@ } } + public void testNegative07_EmptyServicesFile() throws IOException { JDOConfigTestClassLoader testLoader = new JDOConfigTestClassLoader( @@ -556,6 +557,31 @@ } } + public void testNegative09_MultipleInvalidClassesInDifferentConfigFiles() + throws IOException { + + // failure ensured with a bad class name in Negative09/jdoconfig.xml + try { + URLClassLoader loader = new JDOConfigTestClassLoader( + JDOCONFIG_CLASSPATH_PREFIX, + getClass().getClassLoader()); + ClasspathHelper.addFile( + JDOCONFIG_CLASSPATH_PREFIX + "/Negative09", loader); + + JDOHelper.getPersistenceManagerFactory(loader); + + fail("JDOHelper failed to throw JDOFatalUserException"); + } + catch (JDOFatalUserException x) { + + // if nested exceptions are returned, we're on the happy farm ... + if (x.getNestedExceptions() == null){ + fail("JDOHelper failed to include any nested exceptions"); + } + + } + } + public void testNegative08_ServicesFileWithOnlyComments() throws IOException { JDOConfigTestClassLoader testLoader = new JDOConfigTestClassLoader(