01: package com.reeltwo.jumble.fast;
02:
03: import java.util.List;
04:
05: /**
06: * <code>MissingTestsTestResult</code> is a JumbleResult for a failure
07: * due to test classes not being found.
08: *
09: * @author <a href="mailto:len@reeltwo.com">Len Trigg</a>
10: * @version $Revision: 496 $
11: */
12: public class MissingTestsTestResult extends AbstractJumbleResult {
13:
14: private final List mTestClassNames;
15:
16: private int mMutationCount;
17:
18: public MissingTestsTestResult(String className,
19: List testClassNames, int mcount) {
20: super (className);
21: mTestClassNames = testClassNames;
22: mMutationCount = mcount;
23: }
24:
25: /** {@inheritDoc} */
26: public String[] getTestClasses() {
27: return (String[]) mTestClassNames
28: .toArray(new String[mTestClassNames.size()]);
29: }
30:
31: /** {@inheritDoc} */
32: public int getNumberOfMutations() {
33: return mMutationCount;
34: }
35:
36: /** {@inheritDoc} */
37: public boolean isMissingTestClass() {
38: return true;
39: }
40:
41: /** {@inheritDoc} */
42: public boolean initialTestsPassed() {
43: return false;
44: }
45:
46: }
|