Update of /cvsroot/clirr/clirr/core/src/test/net/sf/clirr/core/internal/checks
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv1800/src/test/net/sf/clirr/core/internal/checks
Modified Files:
ClassHierarchyCheckTest.java InterfaceSetCheckTest.java
Log Message:
Fixed test failure by changing the base class of ChangingClassHierarchy in v1 test lib to MouseMotionAdapter. This should be more stable across JDK releases while the set of interfaces of the original base class MouseAdapter tends to change from one JDK to another (e.g. at some point MouseWheelListener was added).
Index: ClassHierarchyCheckTest.java
===================================================================
RCS file: /cvsroot/clirr/clirr/core/src/test/net/sf/clirr/core/internal/checks/ClassHierarchyCheckTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ClassHierarchyCheckTest.java 9 Jan 2006 21:38:38 -0000 1.2
+++ ClassHierarchyCheckTest.java 15 May 2007 18:40:58 -0000 1.3
@@ -14,7 +14,7 @@
{
ExpectedDiff[] expected = new ExpectedDiff[] {
new ExpectedDiff("Added java.util.NoSuchElementException to the list of superclasses", Severity.WARNING, "testlib.ApplicationException", null, null),
- new ExpectedDiff("Removed java.awt.event.MouseAdapter from the list of superclasses", Severity.ERROR, "testlib.ChangingHierarchy", null, null),
+ new ExpectedDiff("Removed java.awt.event.MouseMotionAdapter from the list of superclasses", Severity.ERROR, "testlib.ChangingHierarchy", null, null),
new ExpectedDiff("Added java.awt.event.WindowAdapter to the list of superclasses", Severity.INFO, "testlib.ChangingHierarchy", null, null),
};
verify(expected);
Index: InterfaceSetCheckTest.java
===================================================================
RCS file: /cvsroot/clirr/clirr/core/src/test/net/sf/clirr/core/internal/checks/InterfaceSetCheckTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- InterfaceSetCheckTest.java 9 Jan 2006 21:38:38 -0000 1.2
+++ InterfaceSetCheckTest.java 15 May 2007 18:40:58 -0000 1.3
@@ -11,7 +11,7 @@
new ExpectedDiff("Added java.awt.event.WindowListener to the set of implemented interfaces", Severity.INFO, "testlib.ChangingHierarchy", null, null),
new ExpectedDiff("Added java.awt.event.WindowFocusListener to the set of implemented interfaces", Severity.INFO, "testlib.ChangingHierarchy", null, null),
new ExpectedDiff("Added java.awt.event.WindowStateListener to the set of implemented interfaces", Severity.INFO, "testlib.ChangingHierarchy", null, null),
- new ExpectedDiff("Removed java.awt.event.MouseListener from the set of implemented interfaces", Severity.ERROR, "testlib.ChangingHierarchy", null, null),
+ new ExpectedDiff("Removed java.awt.event.MouseMotionListener from the set of implemented interfaces", Severity.ERROR, "testlib.ChangingHierarchy", null, null),
};
verify(expected);
}
|