[ 
https://issues.apache.org/jira/browse/JCR-1419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12573326#action_12573326
 ] 

Alexander Klimetschek commented on JCR-1419:
--------------------------------------------

I actually prefer the threaded solution now.

> What about using Rutime.exec(String[] cmdarray) instead of 
> Runtime.exec(String command). 

External process is no longer needed when derby server is started in new thread.

As I am writing a test case for JCR-1428, I see the need for a better base 
class (eg. AbstractJackrabbitTest). It creates a temporary directory in and 
starts a repository in setUp() and cleans that up in tearDown(). The 
configuration should be fetched via a protected getConfig() method that returns 
a RepositoryConf().



> Add test for database auto-reconnection
> ---------------------------------------
>
>                 Key: JCR-1419
>                 URL: https://issues.apache.org/jira/browse/JCR-1419
>             Project: Jackrabbit
>          Issue Type: Test
>          Components: jackrabbit-core, test
>            Reporter: Alexander Klimetschek
>            Assignee: Jukka Zitting
>             Fix For: 1.5
>
>         Attachments: DatabaseConnectionFailureTest.java, 
> jackrabbit-core.test-for-1400.patch
>
>
> Create a unit test for the database auto-reconnect feature (JCR-940).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to