You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Siddharth Srivastava (JIRA)" <ji...@apache.org> on 2012/07/04 03:42:34 UTC

[jira] [Created] (DERBY-5844) Code coverage for org.apache.derby.impl.io

Siddharth Srivastava created DERBY-5844:
-------------------------------------------

             Summary: 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

        

[jira] [Commented] (DERBY-5844) Code coverage for org.apache.derby.impl.io

Posted by "Kathey Marsden (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-5844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433187#comment-13433187 ] 

Kathey Marsden commented on DERBY-5844:
---------------------------------------

It would be good to confirm URLFile and URLStorageFactory are covered with an http subprotocol connection, the subtasks on this issue to remove them should be closed invalid.

                
> 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

        

[jira] [Updated] (DERBY-5844) Code coverage for org.apache.derby.impl.io

Posted by "Siddharth Srivastava (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Siddharth Srivastava updated DERBY-5844:
----------------------------------------

    Attachment: derby_server_initial.patch

Initial patch for a server for further tests. 
                
> 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
>         Attachments: derby_server_initial.patch
>
>


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

        

[jira] [Commented] (DERBY-5844) Code coverage for org.apache.derby.impl.io

Posted by "Siddharth Srivastava (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-5844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13432929#comment-13432929 ] 

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

Any suggestions ?
                
> 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

        

[jira] [Commented] (DERBY-5844) Code coverage for org.apache.derby.impl.io

Posted by "Siddharth Srivastava (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Commented] (DERBY-5844) Code coverage for org.apache.derby.impl.io

Posted by "Siddharth Srivastava (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-5844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433877#comment-13433877 ] 

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

Thanks Kathey. I am proceeding with option a. I would try and look if there is any incompatibity with other JDKs.
                
> 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

        

[jira] [Commented] (DERBY-5844) Code coverage for org.apache.derby.impl.io

Posted by "Kathey Marsden (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-5844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433183#comment-13433183 ] 

Kathey Marsden commented on DERBY-5844:
---------------------------------------

I think option  'a'  is alright. That class also exists in the IBM JDK. If we find it is not in other JDK's we can disable the test on those environments. I wouldn't add a com.sun.... class to the actual Derby code, but for a test I think it is ok as we can deal with any fallout of changes in the development world. It doesn't impact users.


                
> 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

        

[jira] [Updated] (DERBY-5844) Code coverage for org.apache.derby.impl.io

Posted by "Siddharth Srivastava (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Siddharth Srivastava updated DERBY-5844:
----------------------------------------

    Attachment: derby_server_initial.patch
    
> 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
>         Attachments: derby_server_initial.patch
>
>


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

        

[jira] [Updated] (DERBY-5844) Code coverage for org.apache.derby.impl.io

Posted by "Siddharth Srivastava (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Siddharth Srivastava updated DERBY-5844:
----------------------------------------

    Attachment:     (was: derby_server_initial.patch)
    
> 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
>         Attachments: derby_server_initial.patch
>
>


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