aboutsummaryrefslogtreecommitdiff
path: root/src/cz/crcs/ectester/common/test/Testable.java
blob: e8eb321392d1a4003debcc9e15e62b2d3a819fd3 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
package cz.crcs.ectester.common.test;

import java.util.Map;

/**
 * @author Jan Jancar johny@neuromancer.sk
 */
public interface Testable {

    /**
     * @return Whether this testable was run.
     */
    boolean hasRun();

    /**
     * Run this Testable.
     *
     * @throws TestException
     */
    void run() throws TestException;

    /**
     * @return Whether this Testable was OK.
     */
    boolean ok();

    /**
     * @return Whether an error happened.
     */
    boolean error();

    /**
     * Get the metadata of this Testable.
     *
     * @return The metadata of the testable.
     */
    Map<String, Object> meta();
}