01: package com.reeltwo.jumble.fast;
02:
03: /**
04: * A class representing the results of a Jumble run.
05: *
06: * @author Tin Pavlinic
07: * @version $Revision: 496 $
08: *
09: */
10: public interface JumbleResult {
11:
12: /**
13: * Gets the name of the class being Jumbled.
14: *
15: * @return the class name.
16: */
17: String getClassName();
18:
19: /**
20: * Gets an array of the names of test classes run.
21: *
22: * @return the test classes
23: */
24: String[] getTestClasses();
25:
26: /**
27: * Determines whether the initial tests passes. Calls <CODE>
28: * getInitialTestResult()</CODE>.
29: *
30: * @return true if the initial tests passed, false otherwise.
31: */
32: boolean initialTestsPassed();
33:
34: /**
35: * Gets an array of the actual mutations covered by the tests.
36: *
37: * @return array of the covered mutations or <CODE>null</CODE> if the code
38: * was not jumbled.
39: */
40: MutationResult[] getCovered();
41:
42: /**
43: * Gets an array of mutations missed by the tests.
44: *
45: * @return array of the missed mutations or <CODE>null</CODE> if the code
46: * was not jumbled.
47: */
48: MutationResult[] getMissed();
49:
50: /**
51: * Gets an array of mutations which caused the tests to time out. NOTE: A
52: * timeout means that the mutation is covered. W
53: *
54: * @return array of missed mutations or <CODE>null</CODE> if the code was
55: * not jumbled.
56: */
57: MutationResult[] getTimeouts();
58:
59: /**
60: * Returns the length of time, in milliseconds of the timeout.
61: *
62: * @return the length of the timeout
63: */
64: long getTimeoutLength();
65:
66: /**
67: * Gets an array of all mutations.
68: *
69: * @return array of all the mutations or <CODE>null</CODE> if the code was
70: * not jumbled.
71: */
72: MutationResult[] getAllMutations();
73:
74: /**
75: * Return the number of mutations points.
76: *
77: * @return number of mutation points.
78: */
79: int getNumberOfMutations();
80:
81: /**
82: * Was the class tested actually an interface.
83: *
84: * @return true for an interface.
85: */
86: boolean isInterface();
87:
88: /**
89: * Were any test classes missing.
90: *
91: * @return true if any of the expected test classes were missing.
92: */
93: boolean isMissingTestClass();
94:
95: }
|