You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scout-dev@ws.apache.org by ge...@apache.org on 2005/02/10 14:08:25 UTC
svn commit: r153218 -
webservices/scout/trunk/modules/scout/src/test/org/apache/ws/scout/registry/BusinessQueryManagerImplTest.java
Author: geirm
Date: Thu Feb 10 05:08:17 2005
New Revision: 153218
URL: http://svn.apache.org/viewcvs?view=rev&rev=153218
Log:
start of tests for BusinessQueryManagerImpl
Added:
webservices/scout/trunk/modules/scout/src/test/org/apache/ws/scout/registry/BusinessQueryManagerImplTest.java
Added: webservices/scout/trunk/modules/scout/src/test/org/apache/ws/scout/registry/BusinessQueryManagerImplTest.java
URL: http://svn.apache.org/viewcvs/webservices/scout/trunk/modules/scout/src/test/org/apache/ws/scout/registry/BusinessQueryManagerImplTest.java?view=auto&rev=153218
==============================================================================
--- webservices/scout/trunk/modules/scout/src/test/org/apache/ws/scout/registry/BusinessQueryManagerImplTest.java (added)
+++ webservices/scout/trunk/modules/scout/src/test/org/apache/ws/scout/registry/BusinessQueryManagerImplTest.java Thu Feb 10 05:08:17 2005
@@ -0,0 +1,44 @@
+package org.apache.ws.scout.registry;
+
+import junit.framework.TestCase;
+
+import javax.xml.registry.BusinessQueryManager;
+import javax.xml.registry.JAXRException;
+import javax.xml.registry.infomodel.ClassificationScheme;
+
+/**
+ * Tests the BusinessLifecycleManagerImpl class
+ */
+public class BusinessQueryManagerImplTest extends TestCase {
+
+ public void testFindClassificationSchemeByName() throws JAXRException {
+
+ BusinessQueryManager blm = new BusinessQueryManagerImpl(new RegistryServiceImpl(null, null, -1));
+
+ ClassificationScheme scheme = blm.findClassificationSchemeByName(null, "AssociationType");
+ assertNotNull(scheme);
+ assertTrue(scheme.getChildConceptCount() == 15);
+
+ scheme = blm.findClassificationSchemeByName(null, "ObjectType");
+ assertNotNull(scheme);
+ assertTrue(scheme.getChildConceptCount() == 16);
+
+ scheme = blm.findClassificationSchemeByName(null, "ObjectType");
+ assertNotNull(scheme);
+ assertTrue(scheme.getChildConceptCount() == 16);
+
+ scheme = blm.findClassificationSchemeByName(null, "PhoneType");
+ assertNotNull(scheme);
+ assertTrue(scheme.getChildConceptCount() == 5);
+
+ scheme = blm.findClassificationSchemeByName(null, "URLType");
+ assertNotNull(scheme);
+ assertTrue(scheme.getChildConceptCount() == 6);
+
+ scheme = blm.findClassificationSchemeByName(null, "PostalAddressAttributes");
+ assertNotNull(scheme);
+ assertTrue(scheme.getChildConceptCount() == 6);
+
+ }
+
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: scout-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: scout-dev-help@ws.apache.org