ws-scout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ks...@apache.org
Subject svn commit: r801696 - in /webservices/scout/branches/scout-1.1/src: main/java/org/apache/ws/scout/registry/RegistryImpl.java test/java/org/apache/ws/scout/registry/JAXBTest.java
Date Thu, 06 Aug 2009 16:16:07 GMT
Author: kstam
Date: Thu Aug  6 16:16:07 2009
New Revision: 801696

URL: http://svn.apache.org/viewvc?rev=801696&view=rev
Log:
SCOUT-88 Fixing the handling of associations.

Modified:
    webservices/scout/branches/scout-1.1/src/main/java/org/apache/ws/scout/registry/RegistryImpl.java
    webservices/scout/branches/scout-1.1/src/test/java/org/apache/ws/scout/registry/JAXBTest.java

Modified: webservices/scout/branches/scout-1.1/src/main/java/org/apache/ws/scout/registry/RegistryImpl.java
URL: http://svn.apache.org/viewvc/webservices/scout/branches/scout-1.1/src/main/java/org/apache/ws/scout/registry/RegistryImpl.java?rev=801696&r1=801695&r2=801696&view=diff
==============================================================================
--- webservices/scout/branches/scout-1.1/src/main/java/org/apache/ws/scout/registry/RegistryImpl.java
(original)
+++ webservices/scout/branches/scout-1.1/src/main/java/org/apache/ws/scout/registry/RegistryImpl.java
Thu Aug  6 16:16:07 2009
@@ -34,8 +34,6 @@
 import javax.xml.parsers.DocumentBuilder;
 import javax.xml.parsers.DocumentBuilderFactory;
 import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.Source;
-import javax.xml.transform.dom.DOMSource;
 import javax.xml.transform.stream.StreamSource;
 
 import org.apache.commons.logging.Log;

Modified: webservices/scout/branches/scout-1.1/src/test/java/org/apache/ws/scout/registry/JAXBTest.java
URL: http://svn.apache.org/viewvc/webservices/scout/branches/scout-1.1/src/test/java/org/apache/ws/scout/registry/JAXBTest.java?rev=801696&r1=801695&r2=801696&view=diff
==============================================================================
--- webservices/scout/branches/scout-1.1/src/test/java/org/apache/ws/scout/registry/JAXBTest.java
(original)
+++ webservices/scout/branches/scout-1.1/src/test/java/org/apache/ws/scout/registry/JAXBTest.java
Thu Aug  6 16:16:07 2009
@@ -1,7 +1,7 @@
 package org.apache.ws.scout.registry;
 
-import static junit.framework.Assert.assertEquals;
 import static junit.framework.Assert.fail;
+import static org.junit.Assert.assertEquals;
 
 import java.io.StringReader;
 import java.util.List;
@@ -22,7 +22,7 @@
 public class JAXBTest {
 
 	private static String PUBLISHER_ASSERTION_RESPONSE="<assertionStatusReport generic=\"2.0\"
operator=\"jUDDI.org\" xmlns=\"urn:uddi-org:api_v2\"><assertionStatusItem completionStatus=\"status:fromKey_incomplete\"><fromKey>5173FA70-81E6-11DE-B7B9-A9A7A2431DC4</fromKey><toKey>517AD840-81E6-11DE-B7B9-C5758FAC28A0</toKey><keyedReference
keyName=\"Concept\" keyValue=\"Implements\" tModelKey=\"UUID:DB77450D-9FA8-45D4-A7BC-04411D14E384\"/><keysOwned><fromKey>5173FA70-81E6-11DE-B7B9-A9A7A2431DC4</fromKey></keysOwned></assertionStatusItem></assertionStatusReport>";
-
+    private static String FROM_KEY="5173FA70-81E6-11DE-B7B9-A9A7A2431DC4";
 	/**
 	 * Test handling of utf8 characters
 	 */
@@ -36,6 +36,7 @@
 			JAXBElement<AssertionStatusReport> utf8Element = unMarshaller.unmarshal(new StreamSource(reader),AssertionStatusReport.class);
 			List<org.apache.ws.scout.model.uddi.v2.AssertionStatusItem> items =  utf8Element.getValue().getAssertionStatusItem();
 			System.out.println(items);
+			assertEquals(FROM_KEY,items.get(0).getFromKey());
 		} catch (JAXBException jaxbe) {
 			fail("No exception should be thrown");
 		}
@@ -58,6 +59,7 @@
 			JAXBElement<AssertionStatusReport> utf8Element = unMarshaller.unmarshal(document,AssertionStatusReport.class);
 			List<org.apache.ws.scout.model.uddi.v2.AssertionStatusItem> items =  utf8Element.getValue().getAssertionStatusItem();
 			System.out.println(items);
+			assertEquals(FROM_KEY,items.get(0).getFromKey());
 		} catch (Exception jaxbe) {
 			fail("No exception should be thrown");
 		}



---------------------------------------------------------------------
To unsubscribe, e-mail: scout-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: scout-dev-help@ws.apache.org


Mime
View raw message