blob: 85f10728305127fcfb58235550abb9b951569225 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package cz.crcs.ectester.common.test;
/**
* @param <T>
* @author Jan Jancar johny@neuromancer.sk
*/
public abstract class SimpleTest<T extends BaseTestable> extends Test {
protected T testable;
protected TestCallback<T> callback;
public SimpleTest(T testable, TestCallback<T> callback) {
this.testable = testable;
this.callback = callback;
}
public T getTestable() {
return testable;
}
@Override
protected void runSelf() {
testable.run();
result = callback.apply(testable);
}
}
|