db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yun Lee (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-3801) Convert "org.apache.derbyTesting.functionTests.tests.lang.holdCursorIJ.sql" to junit.
Date Thu, 24 Jun 2010 03:22:49 GMT

    [ https://issues.apache.org/jira/browse/DERBY-3801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12882018#action_12882018
] 

Yun Lee commented on DERBY-3801:
--------------------------------

Yes, Kathey. I have tested many subclasses of ScriptTestCase, and all of them failed. I think
it's related to Chinese character set, as I have seen Chinese chars when testing. As to "-Dfile.encoding=Cp1252",
could you please show me where to insert it, it seems not correct to run a pure JUnit test
class with RunTest.

D:\derby\test>java -Dfile.encoding=Cp1252  org.apache.derbyTesting.functionTests
.harness.RunTest derbynet/NetIjTest.java
*** Start: NetIjTest jdk1.5.0_16 2010-06-24 11:20:39 ***
0 add
> .F.F
> There were 2 failures:
> 1) -p(org.apache.derbyTesting.functionTests.tests.derbynet.NetIjTest)junit.fra
mework.AssertionFailedError: SQL script missing: org/apache/derbyTesting/functio
nTests/tests/derbynet/-p.sql
> 2) D:\derby\test\NetIjTest\NetIjTest_app.properties(org.apache.derbyTesting.fu
nctionTests.tests.derbynet.NetIjTest)junit.framework.AssertionFailedError: SQL s
cript missing: org/apache/derbyTesting/functionTests/tests/derbynet/D:\derby\tes
t\NetIjTest\NetIjTest_app.properties.sql
> FAILURES!!!
> Tests run: 2,  Failures: 2,  Errors: 0
Test Failed.
*** End:   NetIjTest jdk1.5.0_16 2010-06-24 11:20:43 ***

D:\derby\test>java junit.textui.TestRunner org.apache.derbyTesting.functionTests
.tests.derbynet.NetIjTest
.F
Time: 5.422
There was 1 failure:
1) testclientij(org.apache.derbyTesting.functionTests.tests.derbynet.NetIjTest)j
unit.framework.ComparisonFailure: Output at line 34 expected:<[ERROR 42X05: Tabl
e/View 'APP.NOTTHERE' does not exist.]> but was:<[?? 42X05??????APP.NOTTHERE????
?]>
        at org.apache.derbyTesting.functionTests.util.CanonTestCase.compareCanon
(CanonTestCase.java:106)
        at org.apache.derbyTesting.functionTests.util.ScriptTestCase.runTest(Scr
iptTestCase.java:198)
        at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:
109)
        at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
        at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
        at junit.extensions.TestSetup.run(TestSetup.java:27)
        at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57
)
        at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
        at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
        at junit.extensions.TestSetup.run(TestSetup.java:27)
        at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57
)
        at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
        at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
        at junit.extensions.TestSetup.run(TestSetup.java:27)
        at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
        at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
        at junit.extensions.TestSetup.run(TestSetup.java:27)

FAILURES!!!
Tests run: 1,  Failures: 1,  Errors: 0


D:\derby\test>



> Convert "org.apache.derbyTesting.functionTests.tests.lang.holdCursorIJ.sql" to junit.

> --------------------------------------------------------------------------------------
>
>                 Key: DERBY-3801
>                 URL: https://issues.apache.org/jira/browse/DERBY-3801
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>            Reporter: Junjie Peng
>            Assignee: Yun Lee
>         Attachments: derby-3801-1-patch.txt, derby-3801-2.patch, derby-3801-2.stat, derby-3801-4.patch,
DERBY-3801-Tiago.patch
>
>
> Convert "org.apache.derbyTesting.functionTests.tests.lang.holdCursorIJ.sql" to junit.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message