aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r1235094 - /aries/trunk/versioning/versioning-checker/src/test/java/org/apache/aries/versioning/tests/BinaryCompatibilityTest.java
Date Tue, 24 Jan 2012 00:53:15 GMT
Author: djencks
Date: Tue Jan 24 00:53:14 2012
New Revision: 1235094

URL: http://svn.apache.org/viewvc?rev=1235094&view=rev
Log:
ARIES-757 make tests pass locally

Modified:
    aries/trunk/versioning/versioning-checker/src/test/java/org/apache/aries/versioning/tests/BinaryCompatibilityTest.java

Modified: aries/trunk/versioning/versioning-checker/src/test/java/org/apache/aries/versioning/tests/BinaryCompatibilityTest.java
URL: http://svn.apache.org/viewvc/aries/trunk/versioning/versioning-checker/src/test/java/org/apache/aries/versioning/tests/BinaryCompatibilityTest.java?rev=1235094&r1=1235093&r2=1235094&view=diff
==============================================================================
--- aries/trunk/versioning/versioning-checker/src/test/java/org/apache/aries/versioning/tests/BinaryCompatibilityTest.java
(original)
+++ aries/trunk/versioning/versioning-checker/src/test/java/org/apache/aries/versioning/tests/BinaryCompatibilityTest.java
Tue Jan 24 00:53:14 2012
@@ -369,7 +369,7 @@ public class BinaryCompatibilityTest
     assertFalse(
         "If a change to the direct superclass or the set of direct superinterfaces results
in any class or interface no longer being a superclass or superinterface, respectively, it
will break binary compatibility.",
         bcs.isCompatible());
-   assertEquals("

The superclasses or superinterfaces
have stopped being super: [versioning/java/files/TestC, versioning/java/files/TestA].
The
method int getFooLen(java.lang.String) has been deleted or its return type or parameter list
has changed.
The method int getBooLen(java.lang.String) has been deleted
or its return type or parameter list has changed.
The method java.lang.String
getFoo() has changed from non abstract to abstract. 
The method int getBarLen(java.lang.String)
has been deleted or its return type or parameter list has changed.
The protcted
field c has been deleted.
The public field bar was not final but has been
changed to be final.
The public field bar was static but is changed to be
non static or vice versa.
The public field bar has changed its type.", bcs.getReason());

+   assertEquals("
The method int getFooLen(java.lang.String) has been deleted
or its return type or parameter list has changed.
The method java.lang.String
getFoo() has changed from non abstract to abstract. 
The method int getBarLen(java.lang.String)
has been deleted or its return type or parameter list has changed.
The method
int getBooLen(java.lang.String) has been deleted or its return type or parameter list has
changed.

The superclasses or superinterfaces have stopped
being super: [versioning/java/files/TestC, versioning/java/files/TestA].
The
protcted field c has been deleted.
The public field bar was not final but
has been changed to be final.
The public field bar was static but is changed
to be non static or vice versa.
The public field bar has changed its type.",
bcs.getReason());
   }
 
   /**
@@ -1466,7 +1466,7 @@ public class BinaryCompatibilityTest
     oldCR.accept(oldCV, 0);
 
     BinaryCompatibilityStatus bcs = newCV.getClassDeclaration().getBinaryCompatibleStatus((oldCV.getClassDeclaration()));
-    assertEquals("
The method java.lang.String getFoo() has been deleted
or its return type or parameter list has changed.
The public field bar has
been deleted.

The superclasses or superinterfaces have
stopped being super: [versioning/java/files/TestB]."  , bcs.getReason());
+    assertEquals("
The public field bar has been deleted.

The
superclasses or superinterfaces have stopped being super: [versioning/java/files/TestB].
The
method java.lang.String getFoo() has been deleted or its return type or parameter list has
changed."  , bcs.getReason());
     assertFalse(
         "Changes to the interface hierarchy resulting an interface not being a super interface
should break compatibility.",
         bcs.isCompatible());



Mime
View raw message