fix the cp for the annotation examples that use OSExecute to run java

This commit is contained in:
James Ward 2015-12-15 13:03:13 -07:00
parent 79d6d2110f
commit e9aade691e
9 changed files with 9 additions and 9 deletions

View File

@ -18,7 +18,7 @@ public class AtUnitComposition {
}
public static void main(String[] args) throws Exception {
OSExecute.command(
"java onjava.atunit.AtUnit AtUnitComposition.class");
"java -cp .. onjava.atunit.AtUnit AtUnitComposition.class");
}
}
/* Output:

View File

@ -24,7 +24,7 @@ public class AtUnitExample1 {
@Test boolean anotherDisappointment() { return false; }
public static void main(String[] args) throws Exception {
OSExecute.command(
"java onjava.atunit.AtUnit AtUnitExample1.class");
"java -cp .. onjava.atunit.AtUnit AtUnitExample1.class");
}
}
/* Output:

View File

@ -32,7 +32,7 @@ public class AtUnitExample2 {
}
public static void main(String[] args) throws Exception {
OSExecute.command(
"java onjava.atunit.AtUnit AtUnitExample2.class");
"java -cp .. onjava.atunit.AtUnit AtUnitExample2.class");
}
}
/* Output:

View File

@ -27,7 +27,7 @@ public class AtUnitExample3 {
@Test boolean m2() { return methodTwo() == 2; }
public static void main(String[] args) throws Exception {
OSExecute.command(
"java onjava.atunit.AtUnit AtUnitExample3.class");
"java -cp .. onjava.atunit.AtUnit AtUnitExample3.class");
}
}
/* Output:

View File

@ -58,7 +58,7 @@ public class AtUnitExample4 {
public static void main(String[] args) throws Exception {
System.out.println("starting");
OSExecute.command(
"java onjava.atunit.AtUnit AtUnitExample4.class");
"java -cp .. onjava.atunit.AtUnit AtUnitExample4.class");
}
}
/* Output:

View File

@ -42,7 +42,7 @@ public class AtUnitExample5 {
}
public static void main(String[] args) throws Exception {
OSExecute.command(
"java onjava.atunit.AtUnit AtUnitExample5.class");
"java -cp .. onjava.atunit.AtUnit AtUnitExample5.class");
}
}
/* Output:

View File

@ -14,7 +14,7 @@ public class AtUnitExternalTest extends AtUnitExample1 {
@Test boolean _methodTwo() { return methodTwo() == 2; }
public static void main(String[] args) throws Exception{
OSExecute.command(
"java onjava.atunit.AtUnit AtUnitExternalTest.class");
"java -cp .. onjava.atunit.AtUnit AtUnitExternalTest.class");
}
}
/* Output:

View File

@ -23,7 +23,7 @@ public class HashSetTest {
}
public static void main(String[] args) throws Exception {
OSExecute.command(
"java onjava.atunit.AtUnit HashSetTest.class");
"java -cp .. onjava.atunit.AtUnit HashSetTest.class");
}
}
/* Output:

View File

@ -28,7 +28,7 @@ public class StackLStringTest extends StackL<String> {
}
public static void main(String[] args) throws Exception {
OSExecute.command(
"java onjava.atunit.AtUnit StackLStringTest.class");
"java -cp .. onjava.atunit.AtUnit StackLStringTest.class");
}
}
/* Output: