Execution of GenerateMojoTest.testCreateTimeStamp() fails due to IOException
----------------------------------------------------------------------------

                 Key: MCASTOR-22
                 URL: http://jira.codehaus.org/browse/MCASTOR-22
             Project: Maven 2.x Castor Plugin
          Issue Type: Bug
          Components: Core MOJOs
         Environment: Windows XP Pro, java version "1.4.2_10"
            Reporter: Marco Beelen


-------------------------------------------------------------------------------
Test set: org.codehaus.mojo.castor.GenerateMojoTest
-------------------------------------------------------------------------------
Tests run: 13, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.609 sec <<< 
FAILURE!
testCreateTimeStamp(org.codehaus.mojo.castor.GenerateMojoTest)  Time elapsed: 
0.016 sec  <<< ERROR!
java.io.IOException: Unable to delete file: 
D:\BoPCo\foss\codehaus.org\mojo\castor-maven-plugin\target\test\generated\.castor.cdr
        at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:659)
        at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:540)
        at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:509)
        at 
org.codehaus.mojo.castor.GenerateMojoTest.setUp(GenerateMojoTest.java:48)
        at junit.framework.TestCase.runBare(TestCase.java:125)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at 
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)


If I run this method seperately from my eclipse IDE, then it does run 
successful.
Running all tests from this class causes this faillure.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to