db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Junjie Peng (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-3653) Convert datetime.sql to JUnit
Date Thu, 14 Aug 2008 07:03:44 GMT

     [ https://issues.apache.org/jira/browse/DERBY-3653?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Junjie Peng updated DERBY-3653:
-------------------------------

    Attachment: derby-3653-1.stat
                derby-3653-1.patch

I have finished the translation. But a test can not pass in CS model, while it's OK in embeded
mode. The excepiton trace stack is:

java junit.textui.TestRunner org.apache.derbyTesting.f
unctionTests.tests.lang.DateTimeTest
.........................................
..................F.
Time: 13.141
There was 1 failure:
1) test_DateAndDatetimeFunctionsMore(org.apache.derbyTesting.functionTests.tests
.lang.DateTimeTest)junit.framework.AssertionFailedError: Column value mismatch @
 column '2', row 1:
    Expected: >2003-03-05-17.05.43.111111<
    Found:    >2003-03-05 17:05:43.111111<
        at org.apache.derbyTesting.junit.JDBC.assertRowInResultSet(JDBC.java:109
5)
        at org.apache.derbyTesting.junit.JDBC.assertRowInResultSet(JDBC.java:100
7)
        at org.apache.derbyTesting.junit.JDBC.assertFullResultSet(JDBC.java:895)

        at org.apache.derbyTesting.junit.JDBC.assertFullResultSet(JDBC.java:833)

        at org.apache.derbyTesting.functionTests.tests.lang.DateTimeTest.test_Da
teAndDatetimeFunctionsMore(DateTimeTest.java:1565)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:
104)
        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
)
        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
)
        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)

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

It seems, it's relevant to the time format in different modes.
Please give me a hand! Thank you!

> Convert datetime.sql to JUnit
> -----------------------------
>
>                 Key: DERBY-3653
>                 URL: https://issues.apache.org/jira/browse/DERBY-3653
>             Project: Derby
>          Issue Type: Task
>          Components: Test
>    Affects Versions: 10.5.0.0
>            Reporter: Tiago R. Espinha
>            Assignee: Junjie Peng
>            Priority: Minor
>             Fix For: 10.5.0.0
>
>         Attachments: derby-3653-1.patch, derby-3653-1.stat
>
>
> Converting the existing SQL test to JUnit, using the SQLToJunit tool.

-- 
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