[
https://issues.apache.org/jira/browse/DERBY-2157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464043
]
Myrna van Lunteren commented on DERBY-2157:
-------------------------------------------
If I understand the code correctly, the TestConfiguration.java has code to
ignore any tests that actually requires the networkserver to kick in:
-------------------
public static Test clientServerDecorator(Test suite)
{
// Need to have network server and client and not
// running in J2ME (JSR169).
if (!(Derby.hasClient() && Derby.hasServer())
|| JDBC.vmSupportsJSR169())
return new TestSuite("empty: no network server support");
Test test = new NetworkServerTestSetup(suite, false);
return new ServerSetup(test, DEFAULT_HOSTNAME, DEFAULT_PORT);
}
--------------------
So, unless I misinterpret things, if one *does* have derbynet.jar &
derbyclient.jar, only the 'embedded' tests get run in sqlException...
> SqlExceptionTest.testChainedException and .testNextException fail with
> wctme5.7 foundation
> ------------------------------------------------------------------------------------------
>
> Key: DERBY-2157
> URL: https://issues.apache.org/jira/browse/DERBY-2157
> Project: Derby
> Issue Type: Test
> Components: Test
> Affects Versions: 10.3.0.0
> Environment: IBM jvm wctme5.7 foundation class libraries
> Reporter: Myrna van Lunteren
> Priority: Minor
>
> We get the following failure in suites.All:
> 1)
> testChainedException(org.apache.derbyTesting.functionTests.tests.derbynet.SqlExceptionTest)java.lang.NoSuchMethodError:
> java/sql/SQLException.getCause()Ljava/lang/Throwable;
> at
> org.apache.derbyTesting.functionTests.tests.derbynet.SqlExceptionTest.testChainedException(SqlExceptionTest.java:58)
> at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:199)
> at
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:76)
> 2)
> testNextException(org.apache.derbyTesting.functionTests.tests.derbynet.SqlExceptionTest)java.lang.NoSuchMethodError:
> java/sql/SQLException.getCause()Ljava/lang/Throwable;
> at
> org.apache.derbyTesting.functionTests.tests.derbynet.SqlExceptionTest.testNextException(SqlExceptionTest.java:74)
> at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:199)
> at
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:76)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira