Skip to content

Commit eb07251

Browse files
authored
JPA test fixes (#1857)
There is some minor JPA test issue discovered with tests in WLS environment. public static Test suite() { ensure, that tables like EMPLOYEE_SEQ are created before test. As these tables are created by another tests too error Internal Exception: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist Error Code: 942 Call: UPDATE CMP3_EMPLOYEE_SEQ SET SEQ_COUNT = SEQ_COUNT + ? WHERE SEQ_NAME = ? bind => [2 parameters bound] Query: DataModifyQuery(name="EMPLOYEE_SEQ" sql="UPDATE CMP3_EMPLOYEE_SEQ SET SEQ_COUNT = SEQ_COUNT + ? WHERE SEQ_NAME = ?") should happen only if this test is executed first in the suite. Signed-off-by: Radek Felcman <radek.felcman@oracle.com>
1 parent 6678dc6 commit eb07251

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

jpa/eclipselink.jpa.test/src/org/eclipse/persistence/testing/tests/jpa/advanced/EntityManagerJUnitTestSuite.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 2023 Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 1998, 2019 IBM Corporation. All rights reserved.
44
*
55
* This program and the accompanying materials are made available under the
@@ -240,12 +240,11 @@ public EntityManagerJUnitTestSuite(String name) {
240240

241241
public static Test suite() {
242242
TestSuite suite = new TestSuite();
243+
suite.addTest(suiteSpring());
243244
suite.addTest(new EntityManagerJUnitTestSuite("testCacheUsage"));
244-
245245
if (!isJPA10()) {
246246
suite.addTest(new EntityManagerJUnitTestSuite("testIsLoaded"));
247247
}
248-
suite.addTest(suiteSpring());
249248
return suite;
250249
}
251250

0 commit comments

Comments
 (0)