Initial commit

This commit is contained in:
2020-12-18 17:02:46 +01:00
commit eb951d69e1
169 changed files with 7551 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
package dslab;
import java.util.concurrent.TimeUnit;
import org.junit.Before;
import org.junit.Rule;
import org.junit.rules.ErrorCollector;
import org.junit.rules.Timeout;
/**
* Contains a generic setup for a unit test.
*/
public class TestBase {
@Rule
public ErrorCollector err = new ErrorCollector();
@Rule
public Timeout timeout = new Timeout(30, TimeUnit.SECONDS); // fail tests that do not terminate after 30 seconds
protected TestInputStream in;
protected TestOutputStream out;
@Before
public void setUpBase() throws Exception {
in = new TestInputStream();
out = new TestOutputStream();
}
}