diff --git a/openjpa-kernel/src/test/java/org/apache/openjpa/ee/TestWASManagedRuntime.java b/openjpa-kernel/src/test/java/org/apache/openjpa/ee/TestWASManagedRuntime.java index cd8116850..af931c822 100644 --- a/openjpa-kernel/src/test/java/org/apache/openjpa/ee/TestWASManagedRuntime.java +++ b/openjpa-kernel/src/test/java/org/apache/openjpa/ee/TestWASManagedRuntime.java @@ -52,6 +52,6 @@ public class TestWASManagedRuntime extends TestCase { getClassName(WASManagedRuntime.INTERFACE); assertTrue("message should have contained " + interfaceName + ", but was '" + msg + "'", - msg.contains(interfaceName)); + msg.indexOf(interfaceName) != -1); } }