commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Barrett" <JBarr...@sawyermedia.com>
Subject [vfs] how do I run the unit tests?
Date Wed, 18 Dec 2002 01:21:43 GMT
I tried ant test.  This doesn't work because the test class fileset excludes all java files.
 Removing that excludes leads to chasing down various property related problems.  I fiddled
around for a while trying to get the tests to work from ant when I thought I might be using
the wrong tool and tried Maven.

Maven is completely new to me.  I installed it and ran it in jakarta-commons-sandbox/vfs/.
 It appears to compile fine but when trying to run the tests it seems unable to find the xml
apis.    I have no idea how to effect the classpath within the maven environment, but the
xml apis do exist in MAVEN_HOME/lib/xml-apis-2.0.2.jar and in jakarta-commons-sandbox/vfs/lib/xmlParserAPIs.jar.

Am I missing something simple here?  I've included the output from maven below.  Thanks for
the help.

+jeff


##########################################################################
C:\src\vfs\jakarta-commons-sandbox\vfs>maven clean
 __  __
|  \/  |__ Jakarta _ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|   v. 1.0-beta-7

C:\src\vfs\jakarta-commons-sandbox\vfs

clean:clean:
    [delete] Deleting directory C:\src\vfs\jakarta-commons-sandbox\vfs\target

clean:

BUILD SUCCESSFUL
Total time:  6 seconds

C:\src\vfs\jakarta-commons-sandbox\vfs>maven
 __  __
|  \/  |__ Jakarta _ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|   v. 1.0-beta-7

C:\src\vfs\jakarta-commons-sandbox\vfs

java:prepare-filesystem:
    [mkdir] Created dir: C:\src\vfs\jakarta-commons-sandbox\vfs\target\classes

java:compile:
    [javac] Compiling 91 source files to C:\src\vfs\jakarta-commons-sandbox\vfs\target\classes

java:jar-resources:
    [echo] maven.jarResources.basedir: src/java
    [copy] Copying 2 files to C:\src\vfs\jakarta-commons-sandbox\vfs\target\classes

test:prepare-filesystem:
    [mkdir] Created dir: C:\src\vfs\jakarta-commons-sandbox\vfs\target\test-classes
    [mkdir] Created dir: C:\src\vfs\jakarta-commons-sandbox\vfs\target\test-reports

test:test-resources:
    [copy] Copying 5 files to C:\src\vfs\jakarta-commons-sandbox\vfs\target\test-data\read-tests
    [javac] Compiling 2 source files to C:\src\vfs\jakarta-commons-sandbox\vfs\target\test-data\read-tests
    [mkdir] Created dir: C:\src\vfs\jakarta-commons-sandbox\vfs\target\test-data\read-tests\emptydir
    [zip] Building zip: C:\src\vfs\jakarta-commons-sandbox\vfs\target\test-data\test.zip
    [zip] Building zip: C:\src\vfs\jakarta-commons-sandbox\vfs\target\test-data\nested.zip
    [jar] Building jar: C:\src\vfs\jakarta-commons-sandbox\vfs\target\test-data\test.jar
    [jar] Building jar: C:\src\vfs\jakarta-commons-sandbox\vfs\target\test-data\nested.jar

test:compile:
    [javac] Compiling 25 source files to C:\src\vfs\jakarta-commons-sandbox\vfs\target\test-classes

test:test:
    [junit] Running org.apache.commons.vfs.provider.ftp.test.FtpProviderTestCase
    [junit] java.lang.NoClassDefFoundError: org/w3c/dom/Node
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:115)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:183)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.createAndStoreFormatter(JUnitTestRunner.java:550)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:495)
    [junit] Exception in thread "main"
    [junit] [ERROR] TEST org.apache.commons.vfs.provider.ftp.test.FtpProviderTestCase FAILED
    [junit] Running org.apache.commons.vfs.provider.jar.test.JarProviderTestCase
    [junit] java.lang.NoClassDefFoundError: org/w3c/dom/Node
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:115)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:183)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.createAndStoreFormatter(JUnitTestRunner.java:550)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:495)
    [junit] Exception in thread "main"
    [junit] [ERROR] TEST org.apache.commons.vfs.provider.jar.test.JarProviderTestCase FAILED
    [junit] Running org.apache.commons.vfs.provider.jar.test.NestedJarTestCase
    [junit] java.lang.NoClassDefFoundError: org/w3c/dom/Node
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:115)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:183)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.createAndStoreFormatter(JUnitTestRunner.java:550)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:495)
    [junit] Exception in thread "main"
    [junit] [ERROR] TEST org.apache.commons.vfs.provider.jar.test.NestedJarTestCase FAILED
    [junit] Running org.apache.commons.vfs.provider.local.test.LocalProviderTestCase
    [junit] java.lang.NoClassDefFoundError: org/w3c/dom/Node
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:115)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:183)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.createAndStoreFormatter(JUnitTestRunner.java:550)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:495)
    [junit] Exception in thread "main"
    [junit] [ERROR] TEST org.apache.commons.vfs.provider.local.test.LocalProviderTestCase
FAILED
    [junit] Running org.apache.commons.vfs.provider.smb.test.SmbProviderTestCase
    [junit] java.lang.NoClassDefFoundError: org/w3c/dom/Node
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:115)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:183)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.createAndStoreFormatter(JUnitTestRunner.java:550)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:495)
    [junit] Exception in thread "main"
    [junit] [ERROR] TEST org.apache.commons.vfs.provider.smb.test.SmbProviderTestCase FAILED
    [junit] Running org.apache.commons.vfs.provider.temp.test.TemporaryProviderTestCase
    [junit] java.lang.NoClassDefFoundError: org/w3c/dom/Node
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:115)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:183)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.createAndStoreFormatter(JUnitTestRunner.java:550)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:495)
    [junit] Exception in thread "main"
    [junit] [ERROR] TEST org.apache.commons.vfs.provider.temp.test.TemporaryProviderTestCase
FAILED
    [junit] Running org.apache.commons.vfs.provider.test.VirtualProviderTestCase
    [junit] java.lang.NoClassDefFoundError: org/w3c/dom/Node
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:115)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:183)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.createAndStoreFormatter(JUnitTestRunner.java:550)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:495)
    [junit] Exception in thread "main"
    [junit] [ERROR] TEST org.apache.commons.vfs.provider.test.VirtualProviderTestCase FAILED
    [junit] Running org.apache.commons.vfs.provider.url.test.UrlProviderTestCase
    [junit] java.lang.NoClassDefFoundError: org/w3c/dom/Node
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:115)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:183)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.createAndStoreFormatter(JUnitTestRunner.java:550)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:495)
    [junit] Exception in thread "main"
    [junit] [ERROR] TEST org.apache.commons.vfs.provider.url.test.UrlProviderTestCase FAILED
    [junit] Running org.apache.commons.vfs.provider.zip.test.NestedZipTestCase
    [junit] java.lang.NoClassDefFoundError: org/w3c/dom/Node
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:115)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:183)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.createAndStoreFormatter(JUnitTestRunner.java:550)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:495)
    [junit] Exception in thread "main"
    [junit] [ERROR] TEST org.apache.commons.vfs.provider.zip.test.NestedZipTestCase FAILED
    [junit] Running org.apache.commons.vfs.provider.zip.test.ZipProviderTestCase
    [junit] java.lang.NoClassDefFoundError: org/w3c/dom/Node
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:115)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:183)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.createAndStoreFormatter(JUnitTestRunner.java:550)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:495)
    [junit] Exception in thread "main"
    [junit] [ERROR] TEST org.apache.commons.vfs.provider.zip.test.ZipProviderTestCase FAILED
    [junit] Running org.apache.commons.vfs.test.FileSystemManagerFactoryTestCase
    [junit] java.lang.NoClassDefFoundError: org/w3c/dom/Node
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:115)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:183)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.createAndStoreFormatter(JUnitTestRunner.java:550)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:495)
    [junit] Exception in thread "main"
    [junit] [ERROR] TEST org.apache.commons.vfs.test.FileSystemManagerFactoryTestCase FAILED

[ERROR] BUILD FAILED
[ERROR] File...... C:\Program Files\maven-1.0-beta-7\plugins\maven-test-plugin-1.1\plugin.jelly
[ERROR] Element... fail
[ERROR] Line...... 114
[ERROR] Column.... 54
[ERROR] There were test failures.
Total time:  13 seconds

Mime
View raw message