Repository: juddi
Updated Branches:
  refs/heads/master 7ccb68295 -> 42f4697e2


JUDDI-899 adding test cases for this issue. It appears to be a non-issue. 
Findbinding by cat bag does work, however it must be an exact match on all 3 
fields, key, key name, and key value


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

Branch: refs/heads/master
Commit: 42f4697e22403f67ff5d8ac43a0e1c2050c3b380
Parents: 7ccb682
Author: Alex <[email protected]>
Authored: Mon Dec 29 09:45:14 2014 -0500
Committer: Alex <[email protected]>
Committed: Mon Dec 29 09:45:14 2014 -0500

----------------------------------------------------------------------
 .../juddi/api/impl/API_070_FindEntityTest.java  | 23 ++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/juddi/blob/42f4697e/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 ac47b56..1a082ec 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
@@ -33,8 +33,10 @@ import org.junit.Assert;
 import org.junit.BeforeClass;
 import org.junit.Ignore;
 import org.junit.Test;
+import org.uddi.api_v3.CategoryBag;
 import org.uddi.api_v3.FindQualifiers;
 import org.uddi.api_v3.FindTModel;
+import org.uddi.api_v3.KeyedReference;
 import org.uddi.api_v3.Name;
 import org.uddi.api_v3.SaveTModel;
 import org.uddi.api_v3.TModel;
@@ -108,7 +110,7 @@ public class API_070_FindEntityTest {
                         tckFindEntity.findAllSignedBusiness();
                         
tckFindEntity.findService(UDDIConstants.SIGNATURE_PRESENT);
                         
tckFindEntity.findBinding(UDDIConstants.SIGNATURE_PRESENT);
-                       
//tckFindEntity.findTModel(UDDIConstants.SIGNATURE_PRESENT);
+                        
//tckFindEntity.findTModel(UDDIConstants.SIGNATURE_PRESENT);
 
                         tckFindEntity.findAllBusiness();
                         tckFindEntity.getNonExitingBusiness();
@@ -148,7 +150,7 @@ public class API_070_FindEntityTest {
                 boolean found = false;
                 for (int i = 0; i < 
findTModel.getTModelInfos().getTModelInfo().size(); i++) {
                         if 
(findTModel.getTModelInfos().getTModelInfo().get(i).getName().getValue().equalsIgnoreCase("Buenos
 Dias")
-                             && 
findTModel.getTModelInfos().getTModelInfo().get(i).getName().getLang().equalsIgnoreCase("es-US"))
 {
+                                && 
findTModel.getTModelInfos().getTModelInfo().get(i).getName().getLang().equalsIgnoreCase("es-US"))
 {
                                 found = true;
                                 break;
                         }
@@ -157,4 +159,21 @@ public class API_070_FindEntityTest {
 
         }
 
+        @Test
+
+        public void JUDDI_899() throws Exception {
+                UDDIInquiryImpl inquiry = new UDDIInquiryImpl();
+
+                UDDIPublicationImpl pub = new UDDIPublicationImpl();
+
+                FindTModel ftm = new FindTModel();
+                ftm.setAuthInfo(authInfoJoe);
+                ftm.setCategoryBag(new CategoryBag());
+                ftm.getCategoryBag().getKeyedReference().add(new 
KeyedReference("uddi:uddi.org:categorization:types", 
"uddi-org:types:keyGenerator", "keyGenerator"));
+                TModelList findTModel = inquiry.findTModel(ftm);
+                Assert.assertNotNull(findTModel);
+                Assert.assertNotNull(findTModel.getTModelInfos());
+                
Assert.assertNotNull(findTModel.getTModelInfos().getTModelInfo());
+
+        }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to