[java-support] branch master updated: IDP-845 - Fix test for TestNG 6.9

Tom Zeller tzeller at dragonacea.biz
Thu Oct 29 14:35:26 EDT 2015


This is an automated email from the git hooks/post-receive script.

tzeller pushed a commit to branch master
in repository java-support.

The following commit(s) were added to refs/heads/master by this push:
       new  82daa06   IDP-845 - Fix test for TestNG 6.9
82daa06 is described below

commit 82daa0683e4ee886011c38969c6436d359ce1683
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Thu Oct 29 13:35:48 2015 -0500

    IDP-845 - Fix test for TestNG 6.9
    
    The Assert.assertEquals() method in TestNG 6.9 differs from 6.8 in that
    it calls expected.equals(actual) && actual.equals(expected) instead of
    only expected.equals(actual). Consequently, the LazyMapTest fails with
    TestNG 6.9.
---
 .../java/net/shibboleth/utilities/java/support/collection/MapTest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/net/shibboleth/utilities/java/support/collection/MapTest.java b/src/test/java/net/shibboleth/utilities/java/support/collection/MapTest.java
index 6aef019..9fb9583 100644
--- a/src/test/java/net/shibboleth/utilities/java/support/collection/MapTest.java
+++ b/src/test/java/net/shibboleth/utilities/java/support/collection/MapTest.java
@@ -108,7 +108,7 @@ public class MapTest {
         testMap.put(KEY_1, INTEGER_3);
         testMap.put(KEY_2, INTEGER_3);
         
-        Assert.assertEquals(map, testMap, "test against type changes");
+        Assert.assertTrue(testMap.equals(map), "test against type changes");
         map.putAll(testMap);
         Assert.assertEquals(map.size(), 2, "Two element expected");
         

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list