[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Testing AspectJ 1.2.0 Problem

Hi,

I am trying to test the org.aspectj1_2_0 project by running as an ant build the <org.aspectj/modules/tests/junitModules.xml> file, which has the following warning message:
< taskdef A class needed by class org.apache.tools.ant.taskdefs.optional.junit.JUnitTaskcannot be found: junit/framework/TestListener >.
The file builds successfully but all the test cases fail as the console shows:

init:
select-jar:
select-bin:
select-path:
test-all-but-ajc:
   [delete] Deleting directory C:\AWS55\Aspectj1-2-0\modules\tests\bin\junitXmlOutput
    [mkdir] Created dir: C:\AWS55\Aspectj1-2-0\modules\tests\bin\junitXmlOutput
init:
init-taskdefs:
run-module-junit-tests:
    [mkdir] Created dir: C:\AWS55\Aspectj1-2-0\modules\tests\bin\junitXmlOutput\ajbrowser
     [echo] Starting ajbrowser tests...
    [junit] Running AjbrowserModuleTests
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit] TEST AjbrowserModuleTests FAILED
...
...
...
init:
init-taskdefs:
run-module-junit-tests:
    [mkdir] Created dir: C:\AWS55\Aspectj1-2-0\modules\tests\bin\junitXmlOutput\util
     [echo] Starting util tests...
    [junit] Running UtilModuleTests
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit] TEST UtilModuleTests FAILED
init:
init-taskdefs:
report-tests:
    [mkdir] Created dir: C:\AWS55\Aspectj1-2-0\modules\tests\bin\junitXmlOutput\html
[junitreport] Using Xalan version: Xalan Java 2.4.1
[junitreport] Transform time: 4203ms
     [echo] View results in file:C:\AWS55\Aspectj1-2-0\modules\tests\bin\junitXmlOutput\html\index.html
BUILD SUCCESSFUL
Total time: 13 seconds


And the <tests/bin/junitXmlOutput/ajbrowser/TEST-AjbrowserModuleTests.xml> output file shows this error:

 <error message="AjbrowserModuleTests" type=" java.lang.ClassNotFoundException">java.lang.ClassNotFoundException: AjbrowserModuleTests
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass (Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
</error>

Any idea about this error and how to fix it.

Thank you so much,
Redwan Wahbeh