You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by tc...@apache.org on 2009/05/29 20:09:30 UTC

svn commit: r780053 - in /webservices/juddi/branches/v3_trunk/uddi-tck/src/main/java/org/uddi/api_v3/tck: EntityCreator.java TckSubscriptionListener.java

Author: tcunning
Date: Fri May 29 18:09:30 2009
New Revision: 780053

URL: http://svn.apache.org/viewvc?rev=780053&view=rev
Log:
Add entityFromString method.     Remove System.outs

Modified:
    webservices/juddi/branches/v3_trunk/uddi-tck/src/main/java/org/uddi/api_v3/tck/EntityCreator.java
    webservices/juddi/branches/v3_trunk/uddi-tck/src/main/java/org/uddi/api_v3/tck/TckSubscriptionListener.java

Modified: webservices/juddi/branches/v3_trunk/uddi-tck/src/main/java/org/uddi/api_v3/tck/EntityCreator.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/uddi-tck/src/main/java/org/uddi/api_v3/tck/EntityCreator.java?rev=780053&r1=780052&r2=780053&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/uddi-tck/src/main/java/org/uddi/api_v3/tck/EntityCreator.java (original)
+++ webservices/juddi/branches/v3_trunk/uddi-tck/src/main/java/org/uddi/api_v3/tck/EntityCreator.java Fri May 29 18:09:30 2009
@@ -18,8 +18,10 @@
  * @author <a href="mailto:jfaath@apache.org">Jeff Faath</a>
  * @author <a href="mailto:kstam@apache.org">Kurt T Stam</a>
  */
+import java.io.ByteArrayInputStream;
 import java.io.IOException;
 import java.io.InputStream;
+import java.io.StringReader;
 import java.net.URL;
 
 import javax.xml.bind.JAXBContext;
@@ -50,6 +52,15 @@
 		return obj;
 	}
 
+	@SuppressWarnings("unchecked")
+	public static Object buildFromString(String source, String thePackage) throws JAXBException, IOException {
+		Object obj = null;
+		JAXBContext jc = JAXBContext.newInstance(thePackage);
+		Unmarshaller unmarshaller = jc.createUnmarshaller();
+		obj = ((JAXBElement)unmarshaller.unmarshal(new StringReader(source)));
+		return obj;
+	}
+		
 	public static void outputEntity(Object obj, String thePackage) throws JAXBException {
 		JAXBContext jc = JAXBContext.newInstance(thePackage);
 		Marshaller marshaller = jc.createMarshaller();

Modified: webservices/juddi/branches/v3_trunk/uddi-tck/src/main/java/org/uddi/api_v3/tck/TckSubscriptionListener.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/uddi-tck/src/main/java/org/uddi/api_v3/tck/TckSubscriptionListener.java?rev=780053&r1=780052&r2=780053&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/uddi-tck/src/main/java/org/uddi/api_v3/tck/TckSubscriptionListener.java (original)
+++ webservices/juddi/branches/v3_trunk/uddi-tck/src/main/java/org/uddi/api_v3/tck/TckSubscriptionListener.java Fri May 29 18:09:30 2009
@@ -144,8 +144,6 @@
 	
 	public void changeSubscribedObject(String authInfo) {
 		try	{
-			System.out.println("Name: " +
-					ss.getBusinessService().get(0).getDescription().get(0).getValue());
 			ss.getBusinessService().get(0).getDescription().get(0).setValue("foo");
 			publication.saveService(ss);
 			Thread.sleep(10000);



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