Na schön, hier nochmal die Fehler!
MathLib.java:1: package org.junit does not exist
import static org.junit.Assert.*;
^
MathLib.java:2: package org.junit does not exist
import org.junit.*;
^
MathLib.java:7: cannot find symbol
symbol : class Test
location: class MathLib
@Test public void testSqrt1() {
^
MathLib.java:13: cannot find symbol
symbol : class Test
location: class MathLib
@Test public void testSqrt2() {
^
MathLib.java:18: cannot find symbol
symbol : class Test
location: class MathLib
@Test public void testSqrt3() {
^
MathLib.java:24: cannot find symbol
symbol : class Test
location: class MathLib
@Test public void testAbs1() {
^
MathLib.java:29: cannot find symbol
symbol : class Test
location: class MathLib
@Test public void testAbs2() {
^
MathLib.java:34: cannot find symbol
symbol : class Test
location: class MathLib
@Test public void testAbs3() {
^
MathLib.java:39: cannot find symbol
symbol : class Test
location: class MathLib
@Test public void testAbs4() {
^
MathLib.java:9: cannot find symbol
symbol : method assertEquals(java.lang.String,double,double,double)
location: class MathLib
assertEquals("sqrt(4) should be 2",2.0,d,1e-15);
^
MathLib.java:15: cannot find symbol
symbol : method assertEquals(java.lang.String,double,double,double)
location: class MathLib
assertEquals("sqrt(9) should be 3",3.0,d,1e-15);
^
MathLib.java:20: cannot find symbol
symbol : method assertEquals(java.lang.String,double,double,double)
location: class MathLib
assertEquals("sqrt(-1) should be NaN",Double.NaN,d,1e-15);
^
MathLib.java:26: cannot find symbol
symbol : method assertEquals(java.lang.String,double,double,double)
location: class MathLib
assertEquals("abs(2) should be 2", 2.0, t,1e-15);
^
MathLib.java:31: cannot find symbol
symbol : method assertEquals(java.lang.String,double,double,double)
location: class MathLib
assertEquals("abs(0) should be 0", 0.0, t,1e-15);
^
MathLib.java:36: cannot find symbol
symbol : method assertEquals(java.lang.String,double,double,double)
location: class MathLib
assertEquals("abs(-3) should be 3", 3.0, t,1e-15);
^
MathLib.java:41: cannot find symbol
symbol : method assertEquals(java.lang.String,double,double,double)
location: class MathLib
assertEquals("abs(NaN) should be NaN", Double.NaN, t,1e-15);
^
16 errors
Das package existiert nicht, darum funzt es nicht.
Egal was ich auch probiert hab, das klappt einfach nicht.
beim -classpath attribut sagt er ja noch nix, aber dannnnn...