db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eranda Sooriyabandara (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-4318) convert inbetween.sql to JUNIT
Date Sat, 01 Aug 2009 10:02:14 GMT

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

Eranda Sooriyabandara commented on DERBY-4318:
----------------------------------------------

Hi Bryan,
I change the code as in the DistinctTest.java, but not on a totally
understanding. I got the results as below, and need more help to understand
the dependencies. Here I am attaching the code which I made changes.
Also same situation in the row 696.


        rs = st.executeQuery(" values
SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS()");

        expColNames = new String [] {"1"};

        JDBC.assertColumnNames(rs, expColNames);

        RuntimeStatisticsParser rtsp =
SQLUtilities.getRuntimeStatisticsParser(st);

        assertTrue(rtsp.usedTableScan());

assertFalse(rtsp.usedDistinctScan());

.F.F

Time: 6.763

There were 2 failures:

1)
test_inbetween(org.apache.derbyTesting.functionTests.tests.lang.InbetweenTest)junit.framework.AssertionFailedError:
n

ull

        at
org.apache.derbyTesting.functionTests.tests.lang.InbetweenTest.test_inbetween(InbetweenTest.java:1590)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

        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)

2)
test_inbetween(org.apache.derbyTesting.functionTests.tests.lang.InbetweenTest)junit.framework.AssertionFailedError:
n

ull

        at
org.apache.derbyTesting.functionTests.tests.lang.InbetweenTest.test_inbetween(InbetweenTest.java:1590)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

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



FAILURES!!!

Tests run: 2,  Failures: 2,  Errors: 0

Thanks


> convert inbetween.sql to JUNIT
> ------------------------------
>
>                 Key: DERBY-4318
>                 URL: https://issues.apache.org/jira/browse/DERBY-4318
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>         Attachments: inbetween.junit, InbetweenTest.diff, InbetweenTest.diff
>
>
> conversion of inbetween.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