Added:
webservices/scout/trunk/scout/src/test/java/org/apache/ws/scout/registry/qa/JAXR050ServiceBindingTest.java
URL:
http://svn.apache.org/viewvc/webservices/scout/trunk/scout/src/test/java/org/apache/ws/scout/registry/qa/JAXR050ServiceBindingTest.java?rev=591877&view=auto
==============================================================================
---
webservices/scout/trunk/scout/src/test/java/org/apache/ws/scout/registry/qa/JAXR050ServiceBindingTest.java
(added)
+++
webservices/scout/trunk/scout/src/test/java/org/apache/ws/scout/registry/qa/JAXR050ServiceBindingTest.java
Sun Nov 4 20:58:36 2007
@@ -0,0 +1,319 @@
+/**
+ *
+ * Copyright 2004 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.ws.scout.registry.qa;
+
+import static org.junit.Assert.fail;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+
+import javax.xml.registry.BulkResponse;
+import javax.xml.registry.BusinessLifeCycleManager;
+import javax.xml.registry.JAXRException;
+import javax.xml.registry.JAXRResponse;
+import javax.xml.registry.RegistryService;
+import javax.xml.registry.infomodel.Concept;
+import javax.xml.registry.infomodel.ExternalLink;
+import javax.xml.registry.infomodel.InternationalString;
+import javax.xml.registry.infomodel.Key;
+import javax.xml.registry.infomodel.Organization;
+import javax.xml.registry.infomodel.Service;
+import javax.xml.registry.infomodel.ServiceBinding;
+import javax.xml.registry.infomodel.SpecificationLink;
+
+import junit.framework.JUnit4TestAdapter;
+
+import org.apache.ws.scout.BaseTestCase;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+Tests Publish, Delete (and indirectly, find) for service bindings.
+ *
+ * You can comment out the deletion portion and use
+ * Open source UDDI Browser <http://www.uddibrowser.org>
+ * to check your intermediate results
+ *
+ * Based on query/publish tests written by
+ * <a href="mailto:[EMAIL PROTECTED]">Anil Saldhana</a>.
+ *
+ * @author <a href="mailto:[EMAIL PROTECTED]">Deepak Bhole</a>
+ * @author <a href="mailto:[EMAIL PROTECTED]">Anil Saldhana</a>
+ *
+ * @since Sep 27, 2005
+ */
+public class JAXR050ServiceBindingTest extends BaseTestCase
+{
+
+ String serviceBindingName = "Apache JAXR Service Binding -- APACHE SCOUT
TEST";
+ String serviceName = "Apache JAXR Service -- APACHE SCOUT TEST";
+ String tempOrgName = "Apache JAXR Service Org -- APACHE SCOUT TEST";
+
+ @Before
+ public void setUp()
+ {
+ super.setUp();
+ }
+ @After
+ public void tearDown()
+ {
+ super.tearDown();
+ }
+
+ /**
+ * Tests publishing and deleting of service bindings.
+ *
+ * Do not break this into testPublish(), testDelete(), etc. Order is
+ * important, and not all jvms can guarantee order since the JUnit
framework
+ * uses getMethods() to gather test methods, and getMethods() does not
+ * guarantee order.
+ */
+ @Test
+ public void testPublishFindAndDeleteServiceBinding()
+ {
+ login();
+ try
+ {
+ RegistryService rs = connection.getRegistryService();
+ blm = rs.getBusinessLifeCycleManager();
+
+ System.out.println("\nCreating temporary organization...\n");
+ Organization tmpOrg = createTempOrg();
+ Key tmpOrgKey = tmpOrg.getKey();
+
+ System.out.println("\nCreating service...\n");
+ Service tmpSvc = createTempService(tmpOrg);
+ Key tmpSvcKey = tmpSvc.getKey();
+
+ System.out.println("\nCreating service binding...\n");
+ Key sbKey = createServiceBinding(tmpSvc);
+
+ // All created ... now try to delete.
+ deleteServiceBinding(sbKey);
+ deleteTempService(tmpSvcKey);
+ deleteTempOrg(tmpOrgKey);
+ // No find service binding.. search by name is not currently
supported.
+
+ deleteServiceBinding(sbKey);
+
+ } catch (JAXRException e)
+ {
+ e.printStackTrace();
+ fail(e.getMessage());
+ }
+ }
+
+
+ private Key createServiceBinding(Service tmpSvc) throws JAXRException {
+ Key key = null;
+ ServiceBinding serviceBinding = blm.createServiceBinding();
+ serviceBinding.setName(getIString(serviceBindingName));
+ serviceBinding.setDescription(getIString("UDDI service binding"));
+ tmpSvc.addServiceBinding(serviceBinding);
+
+ SpecificationLink specLink = blm.createSpecificationLink();
+ ExternalLink externalLink =
blm.createExternalLink("http://localhost:8080/jmx-console", "Scout test");
+ Collection<ExternalLink> externalLinks = new ArrayList<ExternalLink>();
+ externalLinks.add(externalLink);
+ specLink.setExternalLinks(externalLinks);
+
+ RegistryService rs = connection.getRegistryService();
+ bqm = rs.getBusinessQueryManager();
+ Concept concept =
(Concept)bqm.getRegistryObject("uuid:AD61DE98-4DB8-31B2-A299-A2373DC97212",BusinessLifeCycleManager.CONCEPT);
+ specLink.setSpecificationObject(concept);
+
+ serviceBinding.addSpecificationLink(specLink);
+
+ ArrayList<ServiceBinding> serviceBindings = new
ArrayList<ServiceBinding>();
+ serviceBindings.add(serviceBinding);
+
+ BulkResponse br = blm.saveServiceBindings(serviceBindings);
+ if (br.getStatus() == JAXRResponse.STATUS_SUCCESS)
+ {
+ System.out.println("Service Binding Saved");
+ key = (Key) br.getCollection().iterator().next();
+ System.out.println("Saved Key=" + key.getId());
+ } else
+ {
+ System.err.println("JAXRExceptions " +
+ "occurred during save:");
+ Collection exceptions = br.getExceptions();
+ Iterator iter = exceptions.iterator();
+ while (iter.hasNext())
+ {
+ Exception e = (Exception) iter.next();
+ System.err.println(e.toString());
+ fail(e.toString());
+ }
+ }
+
+ return key;
+ }
+
+ private void deleteServiceBinding(Key key) throws JAXRException {
+
+ String id = key.getId();
+
+ System.out.println("\nDeleting service binding with id " + id + "\n");
+
+ Collection<Key> keys = new ArrayList<Key>();
+ keys.add(key);
+ BulkResponse response = blm.deleteServiceBindings(keys);
+
+ Collection exceptions = response.getExceptions();
+ if (exceptions == null) {
+ Collection retKeys = response.getCollection();
+ Iterator keyIter = retKeys.iterator();
+ javax.xml.registry.infomodel.Key orgKey = null;
+ if (keyIter.hasNext()) {
+ orgKey =
+ (javax.xml.registry.infomodel.Key)
keyIter.next();
+ id = orgKey.getId();
+ System.out.println("Service binding with ID=" + id + "
was deleted");
+ }
+ }
+ }
+
+ private Service createTempService(Organization tmpOrg) throws
JAXRException {
+
+ Service service = blm.createService(getIString(serviceName));
+ service.setDescription(getIString("Services in UDDI Registry"));
+ service.setProvidingOrganization(tmpOrg);
+
+ ArrayList<Service> services = new ArrayList<Service>();
+ services.add(service);
+
+ BulkResponse br = blm.saveServices(services);
+ if (br.getStatus() == JAXRResponse.STATUS_SUCCESS)
+ {
+ System.out.println("Service Saved");
+ Key key = (Key) br.getCollection().iterator().next();
+ System.out.println("Saved Key=" + key.getId());
+ service.setKey(key);
+ } else
+ {
+ System.err.println("JAXRExceptions " +
+ "occurred during save:");
+ Collection exceptions = br.getExceptions();
+ Iterator iter = exceptions.iterator();
+ while (iter.hasNext())
+ {
+ Exception e = (Exception) iter.next();
+ System.err.println(e.toString());
+ }
+ }
+
+ return service;
+ }
+
+ private void deleteTempService(Key key) throws JAXRException {
+
+ String id = key.getId();
+
+ System.out.println("\nDeleting service with id " + id + "\n");
+
+ Collection<Key> keys = new ArrayList<Key>();
+ keys.add(key);
+ BulkResponse response = blm.deleteServices(keys);
+
+ Collection exceptions = response.getExceptions();
+ if (exceptions == null) {
+ Collection retKeys = response.getCollection();
+ Iterator keyIter = retKeys.iterator();
+ javax.xml.registry.infomodel.Key orgKey = null;
+ if (keyIter.hasNext()) {
+ orgKey =
+ (javax.xml.registry.infomodel.Key)
keyIter.next();
+ id = orgKey.getId();
+ System.out.println("Service with ID=" + id + " was
deleted");
+ }
+ }
+ }
+
+ private Organization createTempOrg() throws JAXRException {
+
+ Key orgKey = null;
+ Organization org = blm.createOrganization(getIString(tempOrgName));
+ org.setDescription(getIString("Temporary organization to test
saveService()"));
+
+ Collection<Organization> orgs = new ArrayList<Organization>();
+ orgs.add(org);
+ BulkResponse br = blm.saveOrganizations(orgs);
+
+ if (br.getStatus() == JAXRResponse.STATUS_SUCCESS)
+ {
+ orgKey = (Key) br.getCollection().iterator().next();
+ System.out.println("Temporary Organization Created with id=" +
orgKey.getId());
+ org.setKey(orgKey);
+ } else
+ {
+ System.err.println("JAXRExceptions " +
+ "occurred during creation of temporary organization:");
+
+ Iterator iter = br.getCollection().iterator();
+
+ while (iter.hasNext()) {
+ Exception e = (Exception) iter.next();
+ System.err.println(e.toString());
+ }
+
+ fail();
+ }
+
+ return org;
+ }
+
+ private void deleteTempOrg(Key key) throws JAXRException {
+
+ if (key == null) {
+ return;
+ }
+
+ String id = key.getId();
+
+ System.out.println("\nDeleting temporary organization with id " + id +
"\n");
+
+ Collection<Key> keys = new ArrayList<Key>();
+ keys.add(key);
+ BulkResponse response = blm.deleteOrganizations(keys);
+
+ Collection exceptions = response.getExceptions();
+ if (exceptions == null) {
+ Collection retKeys = response.getCollection();
+ Iterator keyIter = retKeys.iterator();
+ Key orgKey = null;
+ if (keyIter.hasNext()) {
+ orgKey =
+ (javax.xml.registry.infomodel.Key)
keyIter.next();
+ id = orgKey.getId();
+ System.out.println("Organization with ID=" + id + " was
deleted");
+ }
+ }
+ }
+
+ private InternationalString getIString(String str)
+ throws JAXRException
+ {
+ return blm.createInternationalString(str);
+ }
+
+ public static junit.framework.Test suite() {
+ return new JUnit4TestAdapter(JAXR050ServiceBindingTest.class);
+ }
+}
Propchange:
webservices/scout/trunk/scout/src/test/java/org/apache/ws/scout/registry/qa/JAXR050ServiceBindingTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/scout/trunk/scout/src/test/java/org/apache/ws/scout/registry/qa/JAXRRegistryUnitTest.java
URL:
http://svn.apache.org/viewvc/webservices/scout/trunk/scout/src/test/java/org/apache/ws/scout/registry/qa/JAXRRegistryUnitTest.java?rev=591877&view=auto
==============================================================================
---
webservices/scout/trunk/scout/src/test/java/org/apache/ws/scout/registry/qa/JAXRRegistryUnitTest.java
(added)
+++
webservices/scout/trunk/scout/src/test/java/org/apache/ws/scout/registry/qa/JAXRRegistryUnitTest.java
Sun Nov 4 20:58:36 2007
@@ -0,0 +1,345 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.apache.ws.scout.registry.qa;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+
+import javax.xml.registry.BulkResponse;
+import javax.xml.registry.FindQualifier;
+import javax.xml.registry.JAXRException;
+import javax.xml.registry.JAXRResponse;
+import javax.xml.registry.RegistryService;
+import javax.xml.registry.infomodel.Classification;
+import javax.xml.registry.infomodel.ClassificationScheme;
+import javax.xml.registry.infomodel.Key;
+import javax.xml.registry.infomodel.Organization;
+import javax.xml.registry.infomodel.Service;
+import javax.xml.registry.infomodel.ServiceBinding;
+import javax.xml.registry.infomodel.User;
+
+import junit.framework.JUnit4TestAdapter;
+
+import org.apache.ws.scout.BaseTestCase;
+import org.apache.ws.scout.Creator;
+import org.apache.ws.scout.Finder;
+import org.apache.ws.scout.Remover;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ * Testing the registry.
+ *
+ * @author kstam
+ *
+ */
+public class JAXRRegistryUnitTest extends BaseTestCase
+{
+ @Before
+ public void setUp() {
+ super.setUp();
+ }
+
+ @After
+ public void tearDown() {
+ super.tearDown();
+ }
+
+ @Test
+ public void publishClassificationScheme()
+ {
+ login();
+ try
+ {
+ RegistryService rs = connection.getRegistryService();
+ bqm = rs.getBusinessQueryManager();
+ blm = rs.getBusinessLifeCycleManager();
+ ClassificationScheme cScheme =
blm.createClassificationScheme("org.jboss.soa.esb.:category", "JBossESB
Classification Scheme");
+ ArrayList<ClassificationScheme> cSchemes = new
ArrayList<ClassificationScheme>();
+ cSchemes.add(cScheme);
+ BulkResponse br = blm.saveClassificationSchemes(cSchemes);
+ assertEquals(JAXRResponse.STATUS_SUCCESS, br.getStatus());
+ } catch (JAXRException je) {
+ fail(je.getMessage());
+ }
+ }
+
+ /**
+ * Tests the successful creation of the RED HAT/JBossESB Organization.
+ */
+ @Test
+ public void publishOrganization()
+ {
+ login();
+ try
+ {
+ RegistryService rs = connection.getRegistryService();
+ blm = rs.getBusinessLifeCycleManager();
+ Creator creator = new Creator(blm);
+
+ Collection<Organization> organizations = new
ArrayList<Organization>();
+ Organization organization = creator.createOrganization("Red
Hat/JBossESB");
+ organizations.add(organization);
+ BulkResponse br = blm.saveOrganizations(organizations);
+ assertEquals(BulkResponse.STATUS_SUCCESS,
br.getStatus());
+ } catch (JAXRException je) {
+ je.printStackTrace();
+ assertTrue(false);
+ }
+ }
+ @SuppressWarnings("unchecked")
+ @Test
+ public void findOrganization()
+ {
+ login();
+ try
+ {
+ RegistryService rs = connection.getRegistryService();
+ bqm = rs.getBusinessQueryManager();
+ Finder finder = new Finder(bqm);
+ Collection<Organization> orgs =
finder.findOrganizationsByName("Red Hat/JBossESB");
+ Organization org = orgs.iterator().next();
+ assertEquals("Red Hat/JBossESB",
org.getName().getValue());
+ } catch (JAXRException je) {
+ fail(je.getMessage());
+ }
+ try {
+ RegistryService rs = connection.getRegistryService();
+ bqm = rs.getBusinessQueryManager();
+ Finder finder = new Finder(bqm);
+ Collection<Organization> orgs =
finder.findOrganizationsByName("Not Existing Org");
+ assertEquals(0, orgs.size());
+ } catch (JAXRException je) {
+ fail(je.getMessage());
+ }
+ }
+ /**
+ * Tests the successful registration of a Service.
+ *
+ */
+ @SuppressWarnings("unchecked")
+ @Test
+ public void publishService()
+ {
+ login();
+ try {
+ RegistryService rs = connection.getRegistryService();
+ bqm = rs.getBusinessQueryManager();
+ Finder finder = new Finder(bqm);
+ Collection<Organization> orgs =
finder.findOrganizationsByName("Red Hat/JBossESB");
+ Organization organization = orgs.iterator().next();
+
+ blm = rs.getBusinessLifeCycleManager();
+ //Adding the category as prefix for the name
+ Service service =
blm.createService(blm.createInternationalString("Registry Test ServiceName"));
+ service.setDescription(blm.createInternationalString("Registry
Test Service Description"));
+ Collection<String> findQualifiers = new ArrayList<String>();
+ findQualifiers.add(FindQualifier.AND_ALL_KEYS);
+ findQualifiers.add(FindQualifier.SORT_BY_NAME_DESC);
+ ClassificationScheme cScheme =
bqm.findClassificationSchemeByName(findQualifiers,
"org.jboss.soa.esb.:category");
+ Classification classification = blm.createClassification(cScheme,
"category", "registry");
+ service.addClassification(classification);
+ organization.addService(service);
+ Collection<Service> services = new ArrayList<Service>();
+ services.add(service);
+ BulkResponse br = blm.saveServices(services);
+ assertEquals(BulkResponse.STATUS_SUCCESS, br.getStatus());
+ } catch (JAXRException je) {
+ fail(je.getMessage());
+ }
+ }
+
+ @Test
+ public void findServicesByClassification()
+ {
+ login();
+ try
+ {
+ RegistryService rs = connection.getRegistryService();
+ bqm = rs.getBusinessQueryManager();
+ blm = rs.getBusinessLifeCycleManager();
+ Finder finder = new Finder(bqm);
+ //Find the service
+ Service service = finder.findService("registry","Registry Test
ServiceName", blm);
+ assertEquals("Registry Test ServiceName",
service.getName().getValue());
+ } catch (JAXRException je) {
+ fail(je.getMessage());
+ }
+ }
+
+ @Test
+ public void publishServiceBinding()
+ {
+ login();
+ try
+ {
+ RegistryService rs = connection.getRegistryService();
+ bqm = rs.getBusinessQueryManager();
+ blm = rs.getBusinessLifeCycleManager();
+ Finder finder = new Finder(bqm);
+ //Find the service
+ Service service = finder.findService("registry","Registry Test
ServiceName", blm);
+
+ ServiceBinding serviceBinding = blm.createServiceBinding();
+
serviceBinding.setDescription(blm.createInternationalString("eprDescription"));
+ String xml = "<epr>epr uri</epr>";
+ serviceBinding.setAccessURI(xml);
+
+ ArrayList<ServiceBinding> serviceBindings = new
ArrayList<ServiceBinding>();
+ serviceBindings.add(serviceBinding);
+ service.addServiceBindings(serviceBindings);
+ Collection<String> findQualifiers = new ArrayList<String>();
+ findQualifiers.add(FindQualifier.AND_ALL_KEYS);
+ findQualifiers.add(FindQualifier.SORT_BY_NAME_DESC);
+ ClassificationScheme cScheme =
bqm.findClassificationSchemeByName(findQualifiers,
"org.jboss.soa.esb.:category");
+ Classification classification = blm.createClassification(cScheme,
"category", "registry");
+ service.addClassification(classification);
+
+ BulkResponse br = blm.saveServiceBindings(serviceBindings);
+ assertEquals(BulkResponse.STATUS_SUCCESS, br.getStatus());
+ BulkResponse br2 = blm.saveServiceBindings(serviceBindings);
//Save one more
+ assertEquals(BulkResponse.STATUS_SUCCESS, br2.getStatus());
+
+ //Delete one binding
+ Collection<ServiceBinding> serviceBindings2 =
finder.findServiceBindings(service.getKey());
+ ServiceBinding serviceBinding2 =
serviceBindings2.iterator().next();
+ Remover remover = new Remover(blm);
+ remover.removeServiceBinding(serviceBinding2);
+
+ } catch (JAXRException re) {
+ fail(re.getMessage());
+ }
+ }
+ /**
+ * Queries the newly added information
+ * @throws Exception
+ */
+ @SuppressWarnings("unchecked")
+ @Test
+ public void findServicesForAnOrganization()
+ {
+ login();
+ try
+ {
+ RegistryService rs = connection.getRegistryService();
+ bqm = rs.getBusinessQueryManager();
+ Finder finder = new Finder(bqm);
+ Collection<Organization> orgs =
finder.findOrganizationsByName("Red Hat/JBossESB");
+ Organization org = orgs.iterator().next();
+ //Listing out the services and their Bindings
+
System.out.println("-------------------------------------------------");
+ System.out.println("Organization name: " +
org.getName().getValue());
+ System.out.println("Description: " +
org.getDescription().getValue());
+ System.out.println("Key id: " + org.getKey().getId());
+ User primaryContact = org.getPrimaryContact();
+ System.out.println("Primary Contact: " +
primaryContact.getPersonName().getFullName());
+ Collection services = org.getServices();
+ for (Iterator serviceIter =
services.iterator();serviceIter.hasNext();) {
+ Service service = (Service) serviceIter.next();
+ System.out.println("- Service Name: " +
service.getName().getValue());
+ System.out.println(" Service Key : " +
service.getKey().getId());
+ Collection serviceBindings =
service.getServiceBindings();
+ for (Iterator serviceBindingIter =
serviceBindings.iterator();serviceBindingIter.hasNext();){
+ ServiceBinding serviceBinding =
(ServiceBinding) serviceBindingIter.next();
+ System.out.println(" ServiceBinding Description: " +
serviceBinding.getDescription().getValue());
+ String xml =
serviceBinding.getAccessURI();
+ System.out.println(" ServiceBinding URI: " + xml);
+ assertEquals("<epr>epr uri</epr>",xml);
+ }
+ }
+
System.out.println("-------------------------------------------------");
+ } catch (Exception je) {
+ fail(je.getMessage());
+ }
+ }
+
+ @Test
+ public void deleteService()
+ {
+ login();
+ try
+ {
+ RegistryService rs = connection.getRegistryService();
+ bqm = rs.getBusinessQueryManager();
+ blm = rs.getBusinessLifeCycleManager();
+ Finder finder = new Finder(bqm);
+ //Find the service
+ Service service = finder.findService("registry","Registry Test
ServiceName", blm);
+ Remover remover = new Remover(blm);
+ remover.removeService(service);
+ } catch (JAXRException je) {
+ fail(je.getMessage());
+ }
+ }
+ @SuppressWarnings("unchecked")
+ @Test
+ public void deleteOrganization()
+ {
+ login();
+ try
+ {
+ RegistryService rs = connection.getRegistryService();
+ bqm = rs.getBusinessQueryManager();
+ blm = rs.getBusinessLifeCycleManager();
+ Finder finder = new Finder(bqm);
+ Collection<Organization> orgs =
finder.findOrganizationsByName("Red Hat/JBossESB");
+ Organization org = orgs.iterator().next();
+ Remover remover = new Remover(blm);
+ remover.removeOrganization(org);
+ } catch (JAXRException je) {
+ fail(je.getMessage());
+ }
+ }
+
+ @Test
+ public void deleteClassificationScheme()
+ {
+ login();
+ try {
+ RegistryService rs = connection.getRegistryService();
+ bqm = rs.getBusinessQueryManager();
+ blm = rs.getBusinessLifeCycleManager();
+ Collection<String> findQualifiers = new ArrayList<String>();
+ findQualifiers.add(FindQualifier.AND_ALL_KEYS);
+ findQualifiers.add(FindQualifier.SORT_BY_NAME_DESC);
+ ClassificationScheme cScheme =
bqm.findClassificationSchemeByName(findQualifiers,
"org.jboss.soa.esb.:category");
+ Remover remover = new Remover(blm);
+ remover.removeClassificationScheme(cScheme);
+ } catch (JAXRException je) {
+ fail(je.getMessage());
+ }
+ }
+
+
+
+
+ public static junit.framework.Test suite() {
+ return new JUnit4TestAdapter(JAXRRegistryUnitTest.class);
+ }
+
+}
Propchange:
webservices/scout/trunk/scout/src/test/java/org/apache/ws/scout/registry/qa/JAXRRegistryUnitTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/scout/trunk/scout/src/test/java/org/apache/ws/scout/registry/qa/package.html
URL:
http://svn.apache.org/viewvc/webservices/scout/trunk/scout/src/test/java/org/apache/ws/scout/registry/qa/package.html?rev=591877&view=auto
==============================================================================
---
webservices/scout/trunk/scout/src/test/java/org/apache/ws/scout/registry/qa/package.html
(added)
+++
webservices/scout/trunk/scout/src/test/java/org/apache/ws/scout/registry/qa/package.html
Sun Nov 4 20:58:36 2007
@@ -0,0 +1,5 @@
+<html>
+<body>
+More complex QA tests
+</body>
+</html>
\ No newline at end of file
Modified: webservices/scout/trunk/scout/src/test/resources/juddi.properties
URL:
http://svn.apache.org/viewvc/webservices/scout/trunk/scout/src/test/resources/juddi.properties?rev=591877&r1=591876&r2=591877&view=diff
==============================================================================
--- webservices/scout/trunk/scout/src/test/resources/juddi.properties (original)
+++ webservices/scout/trunk/scout/src/test/resources/juddi.properties Sun Nov
4 20:58:36 2007
@@ -50,9 +50,9 @@
# jUDDI DataSource to use
juddi.dataSource=java:comp/env/jdbc/juddiDB
# jUDDI database creation
-juddi.createDatabase=true
+juddi.isCreateDatabase=true
juddi.databaseExistsSql=select * from BUSINESS_ENTITY
-juddi.sqlFiles=sql/derby/create_database.sql,sql/insert_publishers.sql
+juddi.sqlFiles=juddi-sql/derby/create_database.sql,juddi-sql/insert_publishers.sql
# jUDDI UUIDGen implementation to use
juddi.uuidgen = org.apache.juddi.uuidgen.DefaultUUIDGen
Modified: webservices/scout/trunk/scout/src/test/resources/log4j.properties
URL:
http://svn.apache.org/viewvc/webservices/scout/trunk/scout/src/test/resources/log4j.properties?rev=591877&r1=591876&r2=591877&view=diff
==============================================================================
--- webservices/scout/trunk/scout/src/test/resources/log4j.properties (original)
+++ webservices/scout/trunk/scout/src/test/resources/log4j.properties Sun Nov
4 20:58:36 2007
@@ -17,7 +17,7 @@
log4j.appender.LOGFILE.File=scout.log
# Set root category priority to DEBUG and its appender to LOGFILE.
-log4j.rootCategory=WARN, LOGFILE
+log4j.rootCategory=DEBUG, LOGFILE
# Set the Axis enterprise logger category to FATAL and its only appender to
CONSOLE.
log4j.logger.org.apache.axis.enterprise=FATAL, CONSOLE
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]