Buenas,
resulta que estaba instalando el junit, que es una tonteria de instalacion, pero al acabar y ejecutar los tests de prueba, me da fallos , tanto con mi usuario como con root.
Aqui estan los resultados de los tests esos, y debajo de cada test aparece el classpath.
Si alguien pudiera ayudarme estaria muy bien, porque llevo toda la mañana mirando por internet y no he encontrado nada.
Muchas gracias por anticipado.
[root@ferrari ~]# java junit.textui.TestRunner junit.samples.AllTests
.........................................
........................................F.
F.F....................................
Time: ,472
There were 3 failures:
1) testAssertEqualsNaNFails(junit.tests.framework.Dou blePrecisionAssertTest)junit.framework.AssertionFa iledError
at junit.tests.framework.DoublePrecisionAssertTest.te stAssertEqualsNaNFails() (Unknown Source)
at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, boolean, java.lang.Class[], jvalue, jvalue, boolean) (/usr/lib/libgcj.so.5.0.0)
at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, java.lang.Class[], java.lang.Object[]) (/usr/lib/libgcj.so.5.0.0)
2) testAssertNaNEqualsFails(junit.tests.framework.Dou blePrecisionAssertTest)junit.framework.AssertionFa iledError
at junit.tests.framework.DoublePrecisionAssertTest.te stAssertNaNEqualsFails() (Unknown Source)
at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, boolean, java.lang.Class[], jvalue, jvalue, boolean) (/usr/lib/libgcj.so.5.0.0)
at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, java.lang.Class[], java.lang.Object[]) (/usr/lib/libgcj.so.5.0.0)
3) testAssertNaNEqualsNaNFails(junit.tests.framework. DoublePrecisionAssertTest)junit.framework.Assertio nFailedError
at junit.tests.framework.DoublePrecisionAssertTest.te stAssertNaNEqualsNaNFails() (Unknown Source)
at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, boolean, java.lang.Class[], jvalue, jvalue, boolean) (/usr/lib/libgcj.so.5.0.0)
at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, java.lang.Class[], java.lang.Object[]) (/usr/lib/libgcj.so.5.0.0)
FAILURES!!!
Tests run: 119, Failures: 3, Errors: 0
[root@ferrari ~]# $CLASSPATH
-bash: /usr/local/apache-ant-1.6.1/lib/ant.jar:/usr/local/junit3.8.1/junit.jar:/usr/local/junit3.8.1: No such file or directory
[root@ferrari ~]#
[root@ferrari ~]# java junit.swingui.TestRunner junit.samples.AllTests
Exception during event dispatch:
Exception in thread "main" java.lang.NullPointerException
at javax.swing.RepaintManager$RepaintWorker.run() (/usr/lib/libgcj.so.5.0.0)
at java.awt.event.InvocationEvent.dispatch() (/usr/lib/libgcj.so.5.0.0)
at java.awt.EventQueue.dispatchEvent(java.awt.AWTEven t) (/usr/lib/libgcj.so.5.0.0)
at java.awt.EventDispatchThread.run() (/usr/lib/libgcj.so.5.0.0)
at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
at GC_start_routine (/usr/lib/libgcj.so.5.0.0)
at __clone (/lib/tls/libc-2.3.3.so)
java.lang.NullPointerException
at junit.swingui.TestRunner.createSuiteCombo() (Unknown Source)
at junit.swingui.TestRunner.createUI(java.lang.String ) (Unknown Source)
at junit.swingui.TestRunner.start(java.lang.String[]) (Unknown Source)
at gnu.gcj.runtime.FirstThread.call_main() (/usr/lib/libgcj.so.5.0.0)
at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
at __gcj_personality_v0 (/root/java.home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre)
at __libc_start_main (/lib/tls/libc-2.3.3.so)
at _Jv_RegisterClasses (/root/java.home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre)
[root@ferrari ~]#
================================================== ================================================== =============
[ach@ferrari ~]$ java junit.textui.TestRunner junit.samples.AllTests
.........................................
........................................F.
F.F....................................
Time: ,453
There were 3 failures:
1) testAssertEqualsNaNFails(junit.tests.framework.Dou blePrecisionAssertTest)junit.framework.AssertionFa iledError
at junit.tests.framework.DoublePrecisionAssertTest.te stAssertEqualsNaNFails() (Unknown Source)
at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, boolean, java.lang.Class[], jvalue, jvalue, boolean) (/usr/lib/libgcj.so.5.0.0)
at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, java.lang.Class[], java.lang.Object[]) (/usr/lib/libgcj.so.5.0.0)
2) testAssertNaNEqualsFails(junit.tests.framework.Dou blePrecisionAssertTest)junit.framework.AssertionFa iledError
at junit.tests.framework.DoublePrecisionAssertTest.te stAssertNaNEqualsFails() (Unknown Source)
at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, boolean, java.lang.Class[], jvalue, jvalue, boolean) (/usr/lib/libgcj.so.5.0.0)
at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, java.lang.Class[], java.lang.Object[]) (/usr/lib/libgcj.so.5.0.0)
3) testAssertNaNEqualsNaNFails(junit.tests.framework. DoublePrecisionAssertTest)junit.framework.Assertio nFailedError
at junit.tests.framework.DoublePrecisionAssertTest.te stAssertNaNEqualsNaNFails() (Unknown Source)
at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, boolean, java.lang.Class[], jvalue, jvalue, boolean) (/usr/lib/libgcj.so.5.0.0)
at _Jv_CallAnyMethodA(java.lang.Object, java.lang.Class, _Jv_Method, boolean, java.lang.Class[], java.lang.Object[]) (/usr/lib/libgcj.so.5.0.0)
FAILURES!!!
Tests run: 119, Failures: 3, Errors: 0
[ach@ferrari ~]$ java junit.swingui.TestRunner junit.samples.AllTests
Exception in thread "main" java.lang.NullPointerException
at junit.swingui.TestRunner.createSuiteCombo() (Unknown Source)
at junit.swingui.TestRunner.createUI(java.lang.String ) (Unknown Source)
at junit.swingui.TestRunner.start(java.lang.String[]) (Unknown Source)
at gnu.gcj.runtime.FirstThread.call_main() (/usr/lib/libgcj.so.5.0.0)
at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
at __gcj_personality_v0 (/home/ach/java.home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre)
at __libc_start_main (/lib/tls/libc-2.3.3.so)
at _Jv_RegisterClasses (/home/ach/java.home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre)
[ach@ferrari ~]$ $CLASSPATH
bash: /usr/local/apache-ant-1.6.1/lib/ant.jar:/usr/local/junit3.8.1/junit.jar:/usr/local/junit3.8.1: No such file or directory
[ach@ferrari ~]$