juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfa...@apache.org
Subject svn commit: r765402 - in /webservices/juddi/branches/v3_trunk: juddi-core/src/test/java/org/apache/juddi/api/impl/API_080_SubscriptionTest.java uddi-tck/src/main/java/org/uddi/api_v3/tck/TckSubscription.java
Date Wed, 15 Apr 2009 22:32:08 GMT
Author: jfaath
Date: Wed Apr 15 22:32:07 2009
New Revision: 765402

URL: http://svn.apache.org/viewvc?rev=765402&view=rev
Log:
updating tests for juddi 208

Modified:
    webservices/juddi/branches/v3_trunk/juddi-core/src/test/java/org/apache/juddi/api/impl/API_080_SubscriptionTest.java
    webservices/juddi/branches/v3_trunk/uddi-tck/src/main/java/org/uddi/api_v3/tck/TckSubscription.java

Modified: webservices/juddi/branches/v3_trunk/juddi-core/src/test/java/org/apache/juddi/api/impl/API_080_SubscriptionTest.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-core/src/test/java/org/apache/juddi/api/impl/API_080_SubscriptionTest.java?rev=765402&r1=765401&r2=765402&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-core/src/test/java/org/apache/juddi/api/impl/API_080_SubscriptionTest.java
(original)
+++ webservices/juddi/branches/v3_trunk/juddi-core/src/test/java/org/apache/juddi/api/impl/API_080_SubscriptionTest.java
Wed Apr 15 22:32:07 2009
@@ -65,9 +65,9 @@
 			tckBusinessService.saveJoePublisherService(authInfoJoe);
 			tckBindingTemplate.saveJoePublisherBinding(authInfoJoe);
 			tckSubscription.saveJoePublisherSubscription(authInfoJoe);
+			tckSubscription.deleteJoePublisherSubscription(authInfoJoe);
 		} 
 		finally {
-			tckSubscription.deleteJoePublisherSubscription(authInfoJoe);
 			tckBindingTemplate.deleteJoePublisherBinding(authInfoJoe);
 			tckBusinessService.deleteJoePublisherService(authInfoJoe);
 			tckBusiness.deleteJoePublisherBusiness(authInfoJoe);

Modified: webservices/juddi/branches/v3_trunk/uddi-tck/src/main/java/org/uddi/api_v3/tck/TckSubscription.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/uddi-tck/src/main/java/org/uddi/api_v3/tck/TckSubscription.java?rev=765402&r1=765401&r2=765402&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/uddi-tck/src/main/java/org/uddi/api_v3/tck/TckSubscription.java
(original)
+++ webservices/juddi/branches/v3_trunk/uddi-tck/src/main/java/org/uddi/api_v3/tck/TckSubscription.java
Wed Apr 15 22:32:07 2009
@@ -64,9 +64,20 @@
 			
 			subscription.saveSubscription(authInfo, subscriptionHolder);
 			
-			Subscription subOut = subscriptionHolder.value.get(0);
+			Subscription subDirectOut = subscriptionHolder.value.get(0);
+			assertEquals(subIn.getSubscriptionKey(), subDirectOut.getSubscriptionKey());
+			
+			List<Subscription> outSubscriptionList = subscription.getSubscriptions(authInfo);
+			Assert.assertNotNull(outSubscriptionList);
+			Subscription subOut = outSubscriptionList.get(0);
 			
 			assertEquals(subIn.getSubscriptionKey(), subOut.getSubscriptionKey());
+			assertEquals(subDirectOut.getExpiresAfter().getMonth(), subOut.getExpiresAfter().getMonth());
+			assertEquals(subDirectOut.getExpiresAfter().getDay(), subOut.getExpiresAfter().getDay());
+			assertEquals(subDirectOut.getExpiresAfter().getYear(), subOut.getExpiresAfter().getYear());
+			
+			assertEquals(subIn.getSubscriptionFilter().getFindService().getName().get(0).getValue(),

+						 subOut.getSubscriptionFilter().getFindService().getName().get(0).getValue());
 			
 		} catch (Exception e) {
 			logger.error(e.getMessage(), e);



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


Mime
View raw message