Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0FFCE81CB for ; Mon, 8 Aug 2011 23:52:53 +0000 (UTC) Received: (qmail 44334 invoked by uid 500); 8 Aug 2011 23:52:52 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 44251 invoked by uid 500); 8 Aug 2011 23:52:52 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 44244 invoked by uid 99); 8 Aug 2011 23:52:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 23:52:52 +0000 X-ASF-Spam-Status: No, hits=-2000.8 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 23:52:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8A6E4B2CCA for ; Mon, 8 Aug 2011 23:52:27 +0000 (UTC) Date: Mon, 8 Aug 2011 23:52:27 +0000 (UTC) From: "Myrna van Lunteren (JIRA)" To: derby-dev@db.apache.org Message-ID: <451650464.18326.1312847547563.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1260449947.8660.1312479507254.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (DERBY-5374) converted ij5Test fails with weme6.2 (CDC/Foundation): junit.framework.ComparisonFailure: Output at line 1 expected: but was: 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/DERBY-5374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Myrna van Lunteren updated DERBY-5374: -------------------------------------- Attachment: DERBY-5374.diff With weme 6.2 (j2ME/Foundation), with the following in ijTest5: if (JDBC.vmSupportsJSR169()) { props.setProperty("ij.dataSource", "org.apache.derby.jdbc.EmbeddedSimpleDataSource"); props.setProperty("ij.dataSource.databaseName", "wombat"); props.setProperty("ij.dataSource.createDatabase", "create"); } I get a diff with weme 6.2 if all three lines are there, because the database was already created. With showNoConnectionsAtStartup=true this gets masked... If I comment out the createDatabase property line, I get a diff because of an extra connection (i.e. it shows Connection0 and Connection1. This is because of the CleanDatabase Setup). If I comment out also the ij.dataSource.databaseName line, I get an extra line with error message 'XJ004: Database ' ' not found. And if I don't set ij.dataSource at all, we get the getURL(String) method not found error. In all, I don't think this test can be made to work exactly the same with j2ME as with the more richer jvms. In the old harness we handled this sort of difference by adding another master file, but although it would've made the test work, maintaining multiple masters is a nightmare, and as this test never ran with JSR169/j2ME/Foundation, and it's not testing major functionality, but only one test case, I think it's ok to not run this with JSR169/j2ME/Foundation. So I'm attaching a patch that I will commit shortly, which skips this test from running with JSR169, both in the test itself and in the tools._Suite. In addition, I noticed the .sql file still mentions ConnOne, which was removed, so I changed that to say Connection0. > converted ij5Test fails with weme6.2 (CDC/Foundation): junit.framework.ComparisonFailure: Output at line 1 expected: but was: > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-5374 > URL: https://issues.apache.org/jira/browse/DERBY-5374 > Project: Derby > Issue Type: Bug > Components: Test > Affects Versions: 10.9.0.0 > Environment: windows XP, with weme6.2 (IBM's CDC/Foundation implementation) > Reporter: Myrna van Lunteren > Attachments: DERBY-5374.diff > > > The newly converted (to junit) test ij5Test fails with weme 6.2: > ij5(org.apache.derbyTesting.functionTests.tests.tools.ij5Test)junit.framework.ComparisonFailure: Output at line 1 expected: but was: > at junit.framework.AssertionFailedError.(AssertionFailedError.java:11) > at junit.framework.ComparisonFailure.(ComparisonFailure.java:19) > at org.apache.derbyTesting.functionTests.util.CanonTestCase.compareCanon(CanonTestCase.java:109) > at org.apache.derbyTesting.functionTests.util.ScriptTestCase.runTest(ScriptTestCase.java:204) > at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:112) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) > at junit.extensions.TestSetup$1.protect(TestSetup.java:19) > at junit.extensions.TestSetup.run(TestSetup.java:23) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) > at junit.extensions.TestSetup$1.protect(TestSetup.java:19) > at junit.extensions.TestSetup.run(TestSetup.java:23) > at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) > This is likely a similar problem as described in DERBY-5373 (re importExportIJ). > see also (until cleaned up at some point in the future): http://people.apache.org/~myrnavl/derby_test_results/main/windows/testlog/weme6.2/1152992-suites.All_diff.txt -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira