01: package fit.decorator.util;
02:
03: import fit.Counts;
04:
05: import junit.framework.TestCase;
06:
07: public class TestCaseHelper {
08: public static void assertCounts(Counts expected, Counts actual) {
09: TestCase.assertEquals(expected.wrong, actual.wrong);
10: TestCase.assertEquals(expected.exceptions, actual.exceptions);
11: TestCase.assertEquals(expected.ignores, actual.ignores);
12: TestCase.assertEquals(expected.right, actual.right);
13: }
14:
15: public static Counts counts(int right, int wrong, int ignores,
16: int exceptions) {
17: Counts expected = new Counts();
18: expected.right = right;
19: expected.wrong = wrong;
20: expected.ignores = ignores;
21: expected.exceptions = exceptions;
22: return expected;
23: }
24: }
|