db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel John Debrunner (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-3273) convert derbynet/testconnection.java to junit
Date Thu, 13 Dec 2007 21:58:43 GMT

    [ https://issues.apache.org/jira/browse/DERBY-3273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551622
] 

Daniel John Debrunner commented on DERBY-3273:
----------------------------------------------

Can you comment what's going on here?

+        String currentHost = TestConfiguration.getCurrent().getHostName();
+        int currentPort = TestConfiguration.getCurrent().getPort();
+        NetworkServerControl nsctrl = NetworkServerTestSetup.getNetworkServerControl();
+        nsctrl.ping();
+        nsctrl = new NetworkServerControl(privInetAddressGetByName(currentHost), 
+                currentPort);
+        nsctrl.ping();

What's different about the second ping that requires additional testing?

Seems to me that if SSL is not enabled then the two pings are testing the same logic, if SSL
is enabled then won't the second ping fail?

> convert derbynet/testconnection.java to junit
> ---------------------------------------------
>
>                 Key: DERBY-3273
>                 URL: https://issues.apache.org/jira/browse/DERBY-3273
>             Project: Derby
>          Issue Type: Test
>          Components: Test
>    Affects Versions: 10.4.0.0
>            Reporter: Kathey Marsden
>            Assignee: Kathey Marsden
>            Priority: Minor
>         Attachments: derby-3273_diff.txt, derby-3273_diff2.txt
>
>
> convert derbynet/testconnection.java 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