Issue Details (XML | Word | Printable)

Key: JCR-359
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Edgar Poce
Reporter: Mark Slater
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Jackrabbit Content Repository

JCA project tests assume Windows paths

Created: 20/Mar/06 12:45 PM   Updated: 13/Oct/06 04:03 PM
Return to search
Component/s: jackrabbit-jca
Affects Version/s: 1.0, 1.0.1
Fix Version/s: 1.1

Time Tracking:
Not Specified

Environment: Linux, UNIX, BSD, MacOS X

Resolution Date: 15/Jun/06 11:41 PM


 Description  « Hide
The org.apache.jackrabbit.jca package in the top-level jca directory has unit tests that assume a Windows environment. It should be fixed to work in any environment. The best solution may be to use a test repository configuration file in the current directory.

The following is the start of the test case failures that I got running on MacOS X.

Testsuite: org.apache.jackrabbit.jca.test.ConnectionFactoryTest
Tests run: 3, Failures: 0, Errors: 3, Time elapsed: 0.778 sec

Testcase: testAllocation(org.apache.jackrabbit.jca.test.ConnectionFactoryTest): Caused an ERROR
org.apache.jackrabbit.core.config.ConfigurationException: Configuration file could not be read.: /Users/mark/Documents/school/whisper/jackrabbit/jackrabbit-trunk/jca/c:\dev\jcr\repository.xml (N
o such file or directory): /Users/mark/Documents/school/whisper/jackrabbit/jackrabbit-trunk/jca/c:\dev\jcr\repository.xml (No such file or directory)
org.apache.jackrabbit.core.config.ConfigurationException: Configuration file could not be read.: /Users/mark/Documents/school/whisper/jackrabbit/jackrabbit-trunk/jca/c:\dev\jcr\repository.xml (N
o such file or directory): /Users/mark/Documents/school/whisper/jackrabbit/jackrabbit-trunk/jca/c:\dev\jcr\repository.xml (No such file or directory)
        at org.apache.jackrabbit.jca.JCAManagedConnectionFactory.createRepository(JCAManagedConnectionFactory.java:278)
        at org.apache.jackrabbit.jca.JCAManagedConnectionFactory.createConnectionFactory(JCAManagedConnectionFactory.java:116)
        at org.apache.jackrabbit.jca.JCAManagedConnectionFactory.createConnectionFactory(JCAManagedConnectionFactory.java:108)
        at org.apache.jackrabbit.jca.test.ConnectionFactoryTest.testAllocation(ConnectionFactoryTest.java:43)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jukka Zitting made changes - 21/Mar/06 06:19 AM
Field Original Value New Value
Affects Version/s 1.0 [ 12310154 ]
Roy T. Fielding made changes - 26/Mar/06 05:51 AM
Component/s jca [ 12310832 ]
Repository Revision Date User Message
ASF #414635 Thu Jun 15 16:40:58 UTC 2006 edgarpoce JCR-359 - JCA project tests assume Windows paths
Files Changed
MODIFY /jackrabbit/trunk/jca/src/test/org/apache/jackrabbit/jca/test/AbstractTestCase.java

Edgar Poce made changes - 15/Jun/06 11:38 PM
Assignee Edgar Poce [ edgarpoce ]
Edgar Poce made changes - 15/Jun/06 11:41 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Jukka Zitting made changes - 04/Jul/06 04:01 PM
Affects Version/s 1.0.1 [ 12310345 ]
Fix Version/s 1.1 [ 12310346 ]
Jukka Zitting made changes - 13/Oct/06 04:03 PM
Status Resolved [ 5 ] Closed [ 6 ]
Jukka Zitting made changes - 07/Jul/09 01:04 PM
Workflow jira [ 12352198 ] no-reopen-closed, patch-avail [ 12469470 ]