Skip to content
Permalink
Browse files
JUDDI-996 fixed with tests
  • Loading branch information
spyhunter99 committed Jun 21, 2019
1 parent e42cd72 commit 74e4985301ed7444f649f2e55cd2391a59acae99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
@@ -1318,8 +1318,7 @@ public List<SubscriptionWrapper> getAllClientSubscriptionInfo(String authInfo) t
}

StringBuilder sql = new StringBuilder();
sql.append("select distinct c from ReplicationConfiguration c ");
sql.toString();
sql.append("select distinct c from Subscription c ");
Query qry = em.createQuery(sql.toString());
List<org.apache.juddi.model.Subscription> resultList = qry.getResultList();
for (int i = 0; i < resultList.size(); i++) {
@@ -28,6 +28,7 @@
import org.apache.juddi.Registry;
import org.apache.juddi.api_v3.GetEntityHistoryMessageRequest;
import org.apache.juddi.api_v3.GetEntityHistoryMessageResponse;
import org.apache.juddi.api_v3.SubscriptionWrapper;
import org.apache.juddi.jaxb.PrintUDDI;
import org.apache.juddi.v3.client.UDDIConstants;
import org.apache.juddi.v3.client.config.UDDIClient;
@@ -1409,4 +1410,10 @@ public void testJUDDI907_ChangeHistory4() throws Exception{

}


@Test
public void testJira996SubscriotionTest() throws Exception {
JUDDIApiImpl j = new JUDDIApiImpl();
List<SubscriptionWrapper> allClientSubscriptionInfo = j.getAllClientSubscriptionInfo(authInfoJoe);
}
}

0 comments on commit 74e4985

Please sign in to comment.