[
https://issues.apache.org/jira/browse/DERBY-6272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Knut Anders Hatlen updated DERBY-6272:
--------------------------------------
Attachment: derby-6272-01-a.diff
The attached patch adds logic to LoginTimeoutTest to skip client/server testing
when the client or the server is missing.
> LoginTimeoutTest fails if server is missing
> -------------------------------------------
>
> Key: DERBY-6272
> URL: https://issues.apache.org/jira/browse/DERBY-6272
> Project: Derby
> Issue Type: Bug
> Components: Test
> Affects Versions: 10.10.1.1
> Reporter: Knut Anders Hatlen
> Assignee: Knut Anders Hatlen
> Priority: Minor
> Attachments: derby-6272-01-a.diff
>
>
> When I run LoginTimeoutTest without derbynet.jar on the classpath, I see this
> failure:
> There was 1 error:
> 1) client/server LoginTimeoutTestjava.lang.NoClassDefFoundError:
> org/apache/derby/drda/NetworkServerControl
> at
> org.apache.derbyTesting.junit.NetworkServerTestSetup.getNetworkServerControl(NetworkServerTestSetup.java:506)
> at
> org.apache.derbyTesting.junit.NetworkServerTestSetup.setUp(NetworkServerTestSetup.java:195)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
> at junit.extensions.TestSetup.run(TestSetup.java:25)
> at
> org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.derby.drda.NetworkServerControl
> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ... 11 more
> Other tests skip client/server testing if the client or the server is
> missing. LoginTimeoutTest should do the same.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira