01: package net.sf.clirr.core.internal.checks;
02:
03: import net.sf.clirr.core.Severity;
04: import net.sf.clirr.core.internal.ClassChangeCheck;
05:
06: public class InterfaceSetCheckTest extends AbstractCheckTestCase {
07:
08: public void testHierarchyChangesAreReported() throws Exception {
09: ExpectedDiff[] expected = new ExpectedDiff[] {
10: new ExpectedDiff(
11: "Added java.awt.event.WindowListener to the set of implemented interfaces",
12: Severity.INFO, "testlib.ChangingHierarchy",
13: null, null),
14: new ExpectedDiff(
15: "Added java.awt.event.WindowFocusListener to the set of implemented interfaces",
16: Severity.INFO, "testlib.ChangingHierarchy",
17: null, null),
18: new ExpectedDiff(
19: "Added java.awt.event.WindowStateListener to the set of implemented interfaces",
20: Severity.INFO, "testlib.ChangingHierarchy",
21: null, null),
22: new ExpectedDiff(
23: "Removed java.awt.event.MouseListener from the set of implemented interfaces",
24: Severity.ERROR, "testlib.ChangingHierarchy",
25: null, null), };
26: verify(expected);
27: }
28:
29: protected ClassChangeCheck createCheck(TestDiffListener tdl) {
30: return new InterfaceSetCheck(tdl);
31: }
32:
33: }
|