Community
Participate
Working Groups
>Running the JPA test suite in ANT is OK >Running the cache suite first in the "testing browser JPA" will fail on missing tables Looks like test ordering (Since I recently added the advanced.fetchgroups model to the existing advamced model (both "default1") and the existing "metamodel1" model in the Cache tests without modifying setup() - I was relying on the metamodel1 setup() running first. I don't know why "default1" doesn't load pads and chest_protector though. - local ant OK - build server ant OK - Testing browser individual suites in order OK - Testing browser running cache tests before fetchgroups or metamodel = ERROR - I need to fix setup() - Testing Browser (JPA) root (all tests) possibly broken due to ordering - but I don't see it (I am going to clean my schema) >If i go on a separate machine in a clean view and run on Derby on a new schema - the Cache tests first in the testing browser - I get the missing tables Internal Exception: java.sql.SQLSyntaxErrorException: Table/View 'JPA_HOCKEY_GEAR' does not exist. Internal Exception: java.sql.SQLSyntaxErrorException: Table/View 'CMP3_MM_BOARD_SEQ' does not exist.
>part 1 of 2 - disable 10 new tests until setup() is fixed for non-ant use see SVN rev# 7482 http://fisheye2.atlassian.com/changelog/eclipselink/?cs=7482
>the following highlighted 3 additional model table creators are required AdvancedFetchGroup, Cachable and Metamodel public void testSetup() { new AdvancedTableCreator().replaceTables(JUnitTestCase.getServerSession()); > new AdvancedFetchGroupTableCreator().replaceTables(JUnitTestCase.getServerSession()); > new CacheableTableCreator().replaceTables(JUnitTestCase.getServerSession()); > // 315714: metamodel model requires a table creator now that we are persisting with it clearCache(); }
Created attachment 171065 [details] testSetup() requires schema generators for AdvancedFetchGroup, Cacheable and Metamodel
>original rev# that added the cross model dependency http://fisheye2.atlassian.com/changelog/eclipselink/?cs=7461
>test results on the patch adding the 2 replaceTables - on a clean view - run testing browser JPA - login to new derby schema jdbc:derby:test2;create=true - run specific advanced suite first TEST MODEL NAME: (JUnit test): CacheImplJUnitTest Errors: (failures): 0 Fatal Errors: (errors): 0 Passed: 15 Total Tests: 15
>see SVN rev# 7486 containing above patch http://fisheye2.atlassian.com/changelog/eclipselink/?cs=7486
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink