aboutsummaryrefslogtreecommitdiff
path: root/src/cz/crcs/ectester/common/test/Testable.java
blob: 5b84a452a05183c3ce40ff6a3b54f877182962f6 (plain) (blame)
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
26
27
package cz.crcs.ectester.common.test;

/**
 * @author Jan Jancar johny@neuromancer.sk
 */
public interface Testable {
    /**
     * @return Whether this Testable was OK.
     */
    boolean ok();

    /**
     * @return Whether an error happened.
     */
    boolean error();
    /**
     * @return Whether this runnable was run.
     */
    boolean hasRun();

    /**
     * Run this Runnable.
     *
     * @throws TestException If an unexpected exception/error is encountered.
     */
    void run() throws TestException;
}