diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/TestRelationToUnlistedClass.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/TestRelationToUnlistedClass.java index eeb5a4629..02cb60b53 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/TestRelationToUnlistedClass.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/enhance/TestRelationToUnlistedClass.java @@ -32,7 +32,8 @@ public class TestRelationToUnlistedClass emf.createEntityManager().close(); fail("should not be able to initialize system"); } catch (Exception e) { - assertTrue(e.getMessage().startsWith("One or more of the types")); + assertTrue(e.getMessage().startsWith( + "The following classes were not specified")); } } } \ No newline at end of file