Author: jkaputin Date: Tue Jan 23 02:14:04 2007 New Revision: 498973 URL: http://svn.apache.org/viewvc?view=rev&rev=498973 Log: WODEN-51 On some of the assertEquals calls swapped the two comparison arguments around so that 'expected' is first followed by 'actual' because that is the order the method assumes they are in when it reports and error.
Modified: incubator/woden/trunk/java/test/org/apache/woden/wsdl20/DescriptionTest.java Modified: incubator/woden/trunk/java/test/org/apache/woden/wsdl20/DescriptionTest.java URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/wsdl20/DescriptionTest.java?view=diff&rev=498973&r1=498972&r2=498973 ============================================================================== --- incubator/woden/trunk/java/test/org/apache/woden/wsdl20/DescriptionTest.java (original) +++ incubator/woden/trunk/java/test/org/apache/woden/wsdl20/DescriptionTest.java Tue Jan 23 02:14:04 2007 @@ -105,7 +105,7 @@ { Binding[] retrievedBindings = fDescription.getBindings(); assertNotNull(retrievedBindings); - assertEquals(retrievedBindings.length, 1); + assertEquals(1, retrievedBindings.length); } public void testGetElementDeclaration() @@ -123,7 +123,7 @@ { ElementDeclaration[] eds = fDescription.getElementDeclarations(); assertNotNull(eds); - assertEquals(eds.length, 1); + assertEquals(1, eds.length); // TODO - test for when no Element Declarations ? } @@ -136,7 +136,7 @@ { Interface retrievedIf = fDescription.getInterface(new QName("interfaceName")); assertNotNull(retrievedIf); - assertEquals(retrievedIf.toElement(), fInterfaceElement); // TODO - a fair test or a rash assumption?! + assertEquals(fInterfaceElement, retrievedIf.toElement()); // TODO - a fair test or a rash assumption?! // non-existent interface retrievedIf = fDescription.getInterface(new QName("noSuchInterface")); @@ -151,7 +151,7 @@ public void testGetInterfaces() { Interface[] retrievedIfs = fDescription.getInterfaces(); - assertEquals(retrievedIfs.length, 1); + assertEquals(1, retrievedIfs.length); } public void testGetService() @@ -172,7 +172,7 @@ public void testGetServices() { Service[] services = fDescription.getServices(); - assertEquals(services.length, 1); + assertEquals(1, services.length); } public void testGetTypeDefinition() @@ -189,7 +189,7 @@ { TypeDefinition[] tds = fDescription.getTypeDefinitions(); assertNotNull(tds); - assertEquals(tds.length, 1); + assertEquals(1, tds.length); } /* --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]