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

Siddharth Srivastava commented on DERBY-5844:
---------------------------------------------

Hi

For improving coverage and testing the http,https protocols, there seem to be 
two ways
1) Follow the approach used by LDAPAuthentication (needs an already setup LDAP 
server)
2) Integrate a Single Threaded Server to the unit test

So there are 3 ways we can integrate a HttpServer
a) Use the package com.sun.net.httpserver to create a HttpServer. It has been 
there in Oracle JDK since 1.6 (any issue with this?)
b) Write a Single Threaded Server
c) Use Jetty (but in this case the test would only run if Jetty is in the 
classpath)

Which approach would be suitable for us ? Also, writing a standalone single 
threaded server is possible but would it be apt for our case ?

Later, the URLs to be passed can be stored as property.

Would store package be a good place to add test for this ?
                
> Code coverage for org.apache.derby.impl.io
> ------------------------------------------
>
>                 Key: DERBY-5844
>                 URL: https://issues.apache.org/jira/browse/DERBY-5844
>             Project: Derby
>          Issue Type: Improvement
>            Reporter: Siddharth Srivastava
>            Assignee: Siddharth Srivastava
>            Priority: Minor
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to