You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by al...@apache.org on 2016/01/11 13:21:31 UTC

juddi git commit: JUDDI-948 updating test cases. should hopefully fix issues discovered running the build on ubuntu. looks like the cause had to do with the order in which tests were being ran. added/fixed guards to those cases and to use the correct per

Repository: juddi
Updated Branches:
  refs/heads/master 265e6594b -> 4c44c989e


JUDDI-948 updating test cases. should hopefully fix issues discovered running the build on ubuntu. looks like the cause had to do with the order in which tests were being ran. added/fixed guards to those cases and to use the correct permissions for the "uddi" account


Project: http://git-wip-us.apache.org/repos/asf/juddi/repo
Commit: http://git-wip-us.apache.org/repos/asf/juddi/commit/4c44c989
Tree: http://git-wip-us.apache.org/repos/asf/juddi/tree/4c44c989
Diff: http://git-wip-us.apache.org/repos/asf/juddi/diff/4c44c989

Branch: refs/heads/master
Commit: 4c44c989e3043cd8a138a3fa875bf04752acca4d
Parents: 265e659
Author: Alex <al...@apache.org>
Authored: Mon Jan 11 07:21:24 2016 -0500
Committer: Alex <al...@apache.org>
Committed: Mon Jan 11 07:21:24 2016 -0500

----------------------------------------------------------------------
 .../juddi/api/impl/API_070_FindEntityTest.java  |  2 +-
 .../juddi/v3/bpel/BPEL_020_IntegrationTest.java | 20 +++++++++++++-------
 2 files changed, 14 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/juddi/blob/4c44c989/juddi-core/src/test/java/org/apache/juddi/api/impl/API_070_FindEntityTest.java
----------------------------------------------------------------------
diff --git a/juddi-core/src/test/java/org/apache/juddi/api/impl/API_070_FindEntityTest.java b/juddi-core/src/test/java/org/apache/juddi/api/impl/API_070_FindEntityTest.java
index f27c89f..c4beb0c 100644
--- a/juddi-core/src/test/java/org/apache/juddi/api/impl/API_070_FindEntityTest.java
+++ b/juddi-core/src/test/java/org/apache/juddi/api/impl/API_070_FindEntityTest.java
@@ -64,7 +64,7 @@ public class API_070_FindEntityTest {
                 Registry.start();
                 logger.debug("Getting auth token..");
                 try {
-                         tckTModel.saveUDDIPublisherTmodel(authInfoJoe);
+                         tckTModel.saveUDDIPublisherTmodel(TckSecurity.getAuthToken(new UDDISecurityImpl(), TckPublisher.getUDDIPublisherId(), TckPublisher.getUDDIPassword()));
                         api010.saveJoePublisher();
                         authInfoJoe = TckSecurity.getAuthToken(new UDDISecurityImpl(), TckPublisher.getJoePublisherId(), TckPublisher.getJoePassword());
                 } catch (RemoteException e) {

http://git-wip-us.apache.org/repos/asf/juddi/blob/4c44c989/uddi-tck/src/test/java/org/apache/juddi/v3/bpel/BPEL_020_IntegrationTest.java
----------------------------------------------------------------------
diff --git a/uddi-tck/src/test/java/org/apache/juddi/v3/bpel/BPEL_020_IntegrationTest.java b/uddi-tck/src/test/java/org/apache/juddi/v3/bpel/BPEL_020_IntegrationTest.java
index 702dc0c..e295b47 100644
--- a/uddi-tck/src/test/java/org/apache/juddi/v3/bpel/BPEL_020_IntegrationTest.java
+++ b/uddi-tck/src/test/java/org/apache/juddi/v3/bpel/BPEL_020_IntegrationTest.java
@@ -17,6 +17,7 @@ package org.apache.juddi.v3.bpel;
 import java.net.MalformedURLException;
 import java.net.URL;
 import java.rmi.RemoteException;
+import java.util.Iterator;
 import java.util.Map;
 import java.util.Properties;
 
@@ -124,18 +125,23 @@ public class BPEL_020_IntegrationTest {
                 String ns = wsdlDefinition.getTargetNamespace();
                 System.out.println("Namespace: " + ns);
 
-                int i = 0;
-                for (QName qName : portTypes.keySet()) {
+                boolean foundInterfaceOfTravelAgent=false;
+                boolean foundInterfaceOfCustomer=false;
+          
+                Iterator<QName> iterator = portTypes.keySet().iterator();
+                while (iterator.hasNext()) {
+                        QName qName = iterator.next();
                         String nsp = qName.getNamespaceURI();
                         String localpart = qName.getLocalPart();
                         System.out.println("Namespace: " + nsp);
                         System.out.println("LocalPart: " + localpart);
-                        if (i++ == 0) {
-                                Assert.assertEquals("InterfaceOfTravelAgent", localpart);
-                        } else {
-                                Assert.assertEquals("InterfaceOfCustomer", localpart);
-                        }
+                        if (localpart.equals("InterfaceOfTravelAgent"))
+                                foundInterfaceOfTravelAgent=true;
+                        if (localpart.equals("InterfaceOfCustomer"))
+                                foundInterfaceOfCustomer=true;
                 }
+                org.junit.Assert.assertTrue("InterfaceOfCustomer wasn't found, wsdl parsing error", foundInterfaceOfCustomer);
+                org.junit.Assert.assertTrue("InterfaceOfTravelAgent wasn't found, wsdl parsing error", foundInterfaceOfTravelAgent);
         }
 
         @Test


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