Skip to content

Commit

Permalink
add more tests assert checks and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSchuetz97 committed Sep 27, 2024
1 parent 5d492df commit 99c708b
Show file tree
Hide file tree
Showing 21 changed files with 715 additions and 21 deletions.
Binary file modified java_testcode/FieldTests.class
Binary file not shown.
Binary file modified java_testcode/MethodCalls$NvChild.class
Binary file not shown.
Binary file modified java_testcode/MethodCalls.class
Binary file not shown.
Binary file modified java_testcode/RegisterTest.class
Binary file not shown.
Binary file added java_testcode/ThrowNew.class
Binary file not shown.
10 changes: 10 additions & 0 deletions java_testcode/ThrowNew.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
public class ThrowNew extends Throwable {

public static String message;

public ThrowNew(String msg) {
super(msg);
message = msg;
}

}
Binary file added java_testcode/ThrowNewZa.class
Binary file not shown.
10 changes: 10 additions & 0 deletions java_testcode/ThrowNewZa.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
public class ThrowNewZa extends Throwable {

public static String message;

public ThrowNewZa() {
super();
message = "called";
}

}
Binary file added java_testcode/ThrowNewZa2.class
Binary file not shown.
15 changes: 15 additions & 0 deletions java_testcode/ThrowNewZa2.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
public class ThrowNewZa2 extends Throwable {

public static String message;

public ThrowNewZa2() {
super();
message = "called";
}

public ThrowNewZa2(String arg) {
super();
message = String.valueOf(arg);
}

}
Binary file added java_testcode/ThrowNewZa3.class
Binary file not shown.
10 changes: 10 additions & 0 deletions java_testcode/ThrowNewZa3.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
public class ThrowNewZa3 extends Throwable {

public static String message;

public ThrowNewZa3(Object arg) {
super();
message = String.valueOf(arg);
}

}
Binary file added java_testcode/ThrowNewZa4.class
Binary file not shown.
13 changes: 13 additions & 0 deletions java_testcode/ThrowNewZa4.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
public abstract class ThrowNewZa4 extends Throwable {

public static String message;

public ThrowNewZa4(String arg) {
super(arg);
message = String.valueOf(arg);
}

public static boolean isAbstractInst(Object obj) {
return obj.getClass() == ThrowNewZa4.class;
}
}
Loading

0 comments on commit 99c708b

Please sign in to comment.