From: Adrian B. <ej...@us...> - 2002-03-02 21:52:41
|
User: ejort Date: 02/03/02 13:52:40 Modified: src/main/test/compliance/relation RelationServiceTestCase.java Log: Don't use assert it is reserved in 1.4 Revision Changes Path 1.2 +5 -5 jmx/src/main/test/compliance/relation/RelationServiceTestCase.java Index: RelationServiceTestCase.java =================================================================== RCS file: /cvsroot/jboss/jmx/src/main/test/compliance/relation/RelationServiceTestCase.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- RelationServiceTestCase.java 1 Mar 2002 19:25:58 -0000 1.1 +++ RelationServiceTestCase.java 2 Mar 2002 21:52:40 -0000 1.2 @@ -136,7 +136,7 @@ fail(e.toString()); } assertEquals("id", result); - listener.assert(1); + listener.check(1); } finally { @@ -1248,7 +1248,7 @@ { fail(e.toString()); } - RelationNotification rn = listener.assert(1); + RelationNotification rn = listener.check(1); assertEquals(new ArrayList(), rn.getMBeansToUnregister()); assertEquals(new ArrayList(), rn.getNewRoleValue()); assertEquals(on, rn.getObjectName()); @@ -1293,7 +1293,7 @@ { fail(e.toString()); } - RelationNotification rn = listener.assert(1); + RelationNotification rn = listener.check(1); assertEquals(test, rn.getMBeansToUnregister()); assertEquals(new ArrayList(), rn.getNewRoleValue()); assertEquals(on, rn.getObjectName()); @@ -1339,7 +1339,7 @@ { fail(e.toString()); } - RelationNotification rn = listener.assert(1); + RelationNotification rn = listener.check(1); assertEquals(new ArrayList(), rn.getMBeansToUnregister()); assertEquals(roleB1.getRoleValue(), rn.getNewRoleValue()); assertEquals(on, rn.getObjectName()); @@ -1870,7 +1870,7 @@ { notifications.add(n); } - public RelationNotification assert(int size) + public RelationNotification check(int size) { RelationNotification result = null; assertEquals(size, notifications.size()); |