Index: trunk/api2/test/java/javax/jdo/JDOHelperConfigTest.java =================================================================== --- trunk/api2/test/java/javax/jdo/JDOHelperConfigTest.java (revision 694558) +++ 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,33 @@ } } + 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/9a", loader); + ClasspathHelper.addFile( + JDOCONFIG_CLASSPATH_PREFIX + "/Negative09/9b", loader); + + JDOHelper.getPersistenceManagerFactory("name.negative09", loader); + + fail("JDOHelper failed to throw JDOFatalUserException"); + } + catch (JDOFatalUserException x) { + + if (x.getNestedExceptions() == null){ + fail("JDOHelper failed to include any nested exceptions"); + } + + // if nested exceptions are returned, we're on the happy farm ... + } + } + public void testNegative08_ServicesFileWithOnlyComments() throws IOException { JDOConfigTestClassLoader testLoader = new JDOConfigTestClassLoader(