Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 75657 invoked from network); 1 Jun 2009 19:01:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Jun 2009 19:01:18 -0000 Received: (qmail 81290 invoked by uid 500); 1 Jun 2009 19:01:31 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 81228 invoked by uid 500); 1 Jun 2009 19:01:30 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 81218 invoked by uid 99); 1 Jun 2009 19:01:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jun 2009 19:01:30 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jun 2009 19:01:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6D121234C053 for ; Mon, 1 Jun 2009 12:01:08 -0700 (PDT) Message-ID: <1660895172.1243882868445.JavaMail.jira@brutus> Date: Mon, 1 Jun 2009 12:01:08 -0700 (PDT) From: "Milosz Tylenda (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Commented: (OPENJPA-907) org.apache.openjpa.persistence.jdbc.update.TestParentChild In-Reply-To: <1085819240.1233885839606.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715205#action_12715205 ] Milosz Tylenda commented on OPENJPA-907: ---------------------------------------- Ravi, I have reviewed your patch and it is good. I am going to commit it. > org.apache.openjpa.persistence.jdbc.update.TestParentChild > ---------------------------------------------------------- > > Key: OPENJPA-907 > URL: https://issues.apache.org/jira/browse/OPENJPA-907 > Project: OpenJPA > Issue Type: Sub-task > Reporter: Tim McConnell > Assignee: Tim McConnell > Attachments: OPENJPA-907.patch, OPENJPA-907_trunk.patch > > > Running org.apache.openjpa.persistence.jdbc.update.TestParentChild > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 31 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 46 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 47 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 47 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 46 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 47 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 47 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 47 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 47 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 47 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 47 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 32 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 31 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 47 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 47 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 47 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 46 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 47 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 47 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 78 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 47 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 15 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 46 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 47 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 0 test INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-SNAPSHOT > 47 test INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary" (PostgreSQL 8.3.5 ,PostgreSQL Native Driver PostgreSQL 8.3 JDBC3 with SSL (build 603)). > 12 assertion failures > Combination: > openjpa.jdbc.MappingDefaults : ForeignKeyDeleteAction=restrict, JoinForeignKeyDeleteAction=restrict > openjpa.jdbc.SchemaFactory : native(ForeignKeys=false) > openjpa.jdbc.UpdateManager : operation-order > * persist-order : CHILD_THEN_PARENT > junit.framework.AssertionFailedError: Combination > openjpa.jdbc.MappingDefaults : ForeignKeyDeleteAction=restrict, JoinForeignKeyDeleteAction=restrict > openjpa.jdbc.SchemaFactory : native(ForeignKeys=false) > openjpa.jdbc.UpdateManager : operation-order > * persist-order : CHILD_THEN_PARENT > failed > Expected regular expression > > to have existed in SQL statements: > SELECT NULL AS SEQUENCE_SCHEMA, relname AS SEQUENCE_NAME FROM pg_class WHERE relkind='S' > DROP TABLE Child > DROP TABLE Parent > SELECT NULL AS SEQUENCE_SCHEMA, relname AS SEQUENCE_NAME FROM pg_class WHERE relkind='S' > CREATE TABLE Child (id VARCHAR(255) NOT NULL, name VARCHAR(255), PARENT_ID BIGINT, PRIMARY KEY (id)) > CREATE TABLE Parent (id BIGINT NOT NULL, name VARCHAR(255), PRIMARY KEY (id)) > ALTER TABLE Child ADD FOREIGN KEY (PARENT_ID) REFERENCES Parent (id) DEFERRABLE > SELECT SEQUENCE_VALUE FROM public.OPENJPA_SEQUENCE_TABLE WHERE ID = ? FOR UPDATE > UPDATE public.OPENJPA_SEQUENCE_TABLE SET SEQUENCE_VALUE = ? WHERE ID = ? AND SEQUENCE_VALUE = ? > SELECT SEQUENCE_VALUE FROM public.OPENJPA_SEQUENCE_TABLE WHERE ID = ? FOR UPDATE > UPDATE public.OPENJPA_SEQUENCE_TABLE SET SEQUENCE_VALUE = ? WHERE ID = ? AND SEQUENCE_VALUE = ? > INSERT INTO public.child (id, name) VALUES (?, ?) > INSERT INTO public.child (id, name) VALUES (?, ?) > INSERT INTO public.child (id, name) VALUES (?, ?) > INSERT INTO public.parent (id, name) VALUES (?, ?) > UPDATE public.child SET parent_id = ? WHERE id = ? > UPDATE public.child SET parent_id = ? WHERE id = ? > UPDATE public.child SET parent_id = ? WHERE id = ? > SELECT t0.name FROM public.parent t0 WHERE t0.id = ? > SELECT t0.id, t0.name, t0.parent_id FROM public.child t0 WHERE t0.parent_id = ? > at junit.framework.Assert.fail(Assert.java:47) > at org.apache.openjpa.persistence.test.CombinatorialPersistenceTestCase.assertSQL(CombinatorialPersistenceTestCase.java:100) > at org.apache.openjpa.persistence.jdbc.update.TestParentChild.assertPhysicalForeignKeyCreation(TestParentChild.java:181) > at org.apache.openjpa.persistence.jdbc.update.TestParentChild.testInsert(TestParentChild.java:129) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at junit.framework.TestCase.runTest(TestCase.java:154) > at junit.framework.TestCase.runBare(TestCase.java:127) > at org.apache.openjpa.persistence.test.PersistenceTestCase.runBare(PersistenceTestCase.java:443) > at org.apache.openjpa.persistence.test.CombinatorialPersistenceTestCase.runBare(CombinatorialPersistenceTestCase.java:54) > at junit.framework.TestResult$1.protect(TestResult.java:106) > at junit.framework.TestResult.runProtected(TestResult.java:124) > at junit.framework.TestResult.run(TestResult.java:109) > at junit.framework.TestCase.run(TestCase.java:118) > at org.apache.openjpa.persistence.test.PersistenceTestCase.run(PersistenceTestCase.java:173) > at junit.framework.TestSuite.runTest(TestSuite.java:208) > at junit.framework.TestSuite.run(TestSuite.java:203) > at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213) > at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) > at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) > at org.apache.maven.surefire.Surefire.run(Surefire.java:177) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334) > at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:980) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.