Commit c413de9c authored by Jon Amos Fehling's avatar Jon Amos Fehling
Browse files

add assert for null input and output

parent d50b0fe0
package test;
import com.sun.istack.internal.NotNull;
import edu.kit.informatik.Terminal;
public class TestPair {
......@@ -21,19 +22,24 @@ public class TestPair {
private String output;
private Type type;
public TestPair(String input, String output, Type type) {
public TestPair(@NotNull String input, @NotNull String output, Type type) {
assert input != null: "input is null";
assert output != null: "output is null";
this.input = input;
this.output = output;
this.type = type;
}
public TestPair(String input, String output) {
public TestPair(@NotNull String input, @NotNull String output) {
assert input != null: "input is null";
assert output != null: "output is null";
this.input = input;
this.output = output;
this.type = Type.CHECK_EQUALS;
}
public TestPair(String input, Type type) {
public TestPair(@NotNull String input, Type type) {
assert input != null: "input is null";
this.input = input;
this.type = type;
this.output = "";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment