[Clirr-devel] CVS: clirr/src/test/net/sf/clirr/checks MethodSetCheckTest.java,1.3,1.4
Status: Alpha
Brought to you by:
lkuehne
From: <lk...@us...> - 2004-06-05 16:26:23
|
Update of /cvsroot/clirr/clirr/src/test/net/sf/clirr/checks In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24017/test/net/sf/clirr/checks Modified Files: MethodSetCheckTest.java Log Message: detect 'pull up method' refactoring Index: MethodSetCheckTest.java =================================================================== RCS file: /cvsroot/clirr/clirr/src/test/net/sf/clirr/checks/MethodSetCheckTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- MethodSetCheckTest.java 22 May 2004 13:21:44 -0000 1.3 +++ MethodSetCheckTest.java 5 Jun 2004 16:26:14 -0000 1.4 @@ -3,6 +3,7 @@ import net.sf.clirr.framework.ClassChangeCheck; import net.sf.clirr.event.ApiDifference; import net.sf.clirr.event.Severity; +import net.sf.clirr.event.ScopeSelector; /** * TODO: Docs. @@ -23,6 +24,11 @@ new ApiDifference("Method 'public java.lang.Long getPrivSquare()' has been added in testlib.MethodsChange", Severity.INFO, "testlib.MethodsChange", "public java.lang.Long getPrivSquare()", null), + new ApiDifference("Method 'public void moveToSuper()' has been added in testlib.ComplexMethodMoveBase", + Severity.INFO, "testlib.ComplexMethodMoveBase", "public void moveToSuper()", null), + new ApiDifference("Method 'public void moveToSuper()' is now implemented in superclass testlib.ComplexMethodMoveBase in testlib.ComplexMethodMoveSub", + Severity.INFO, "testlib.ComplexMethodMoveSub", "public void moveToSuper()", null), + // Constructor changes new ApiDifference("Parameter 1 of 'protected MethodsChange(int)' has changed it's type to java.lang.Integer in testlib.MethodsChange", Severity.ERROR, "testlib.MethodsChange", "protected MethodsChange(int)", null), @@ -57,6 +63,6 @@ protected final ClassChangeCheck createCheck(TestDiffListener tdl) { - return new MethodSetCheck(tdl); + return new MethodSetCheck(tdl, new ScopeSelector()); } } |