You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by ks...@apache.org on 2008/12/15 06:54:55 UTC

svn commit: r726620 - in /webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data: ./ joepublisher/ samsyndicator/

Author: kstam
Date: Sun Dec 14 21:54:54 2008
New Revision: 726620

URL: http://svn.apache.org/viewvc?rev=726620&view=rev
Log:
JUDDI-142, Restructuring the unittests and fixing the ordering issue.

Added:
    webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/
    webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/
    webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/businessEntity.xml
    webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/businessService.xml
    webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/publisher.xml
    webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/publisherAssertion.xml
    webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/tModelKeyGen.xml
    webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/samsyndicator/
    webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/samsyndicator/businessEntity.xml
    webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/samsyndicator/businessService.xml
    webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/samsyndicator/publisher.xml
    webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/samsyndicator/tModelKeyGen.xml

Added: webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/businessEntity.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/businessEntity.xml?rev=726620&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/businessEntity.xml (added)
+++ webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/businessEntity.xml Sun Dec 14 21:54:54 2008
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<businessEntity xmlns="urn:uddi-org:api_v3" xmlns:xml="http://www.w3.org/XML/1998/namespace" businessKey="uddi:juddi.apache.org:joepublisher:businessone">
+  <discoveryURLs>
+    <discoveryURL useType="home">http://www.businessone.com</discoveryURL>
+    <discoveryURL useType="serviceList">http://www.businessone.com/services</discoveryURL>
+  </discoveryURLs>
+  <name xml:lang="en">John Doe Enterprises</name>
+  <name xml:lang="es">Negocio Uno</name>
+  <description xml:lang="en">This is the description for Business One.</description>
+  <contacts>
+    <contact useType="administrator">
+      <personName xml:lang="en">John Doe</personName>
+      <personName xml:lang="es">Juan Doe</personName>
+      <description xml:lang="en">This is the administrator of the service offerings.</description>
+      <description xml:lang="es">Éste es el administrador de las ofrendas del servicio.</description>
+      <phone useType="office">123-456-7890</phone>
+      <phone useType="mobile">987-654-3210</phone>
+      <email useType="work">jdoe@businessone.com</email>
+      <address xml:lang="en" useType="headquarters" sortCode="1" tModelKey="uddi:tmodelKey:address">
+        <addressLine keyName="suite" keyValue="suite">Suite 1500</addressLine>
+        <addressLine keyName="street" keyValue="street">1515 Main St.</addressLine>
+        <addressLine keyName="citystatezip" keyValue="citystatezip">Chicago, IL 60614</addressLine>
+        <addressLine keyName="country" keyValue="country">USA</addressLine>
+      </address>
+    </contact>
+    <contact useType="engineer">
+      <personName xml:lang="en">Steve Smith</personName>
+      <phone useType="office">555-111-2222</phone>
+      <email useType="work">ssmith@businessone.com</email>
+    </contact>
+  </contacts>
+  <categoryBag>
+    <keyedReference tModelKey="uddi:tmodelkey:categories:fruit" keyName="category" keyValue="apples" />
+    <keyedReference tModelKey="uddi:tmodelkey:categories:fruit" keyName="category" keyValue="oranges" />
+    <keyedReference tModelKey="uddi:tmodelkey:categories:sports" keyName="category" keyValue="football" />
+    <keyedReference tModelKey="uddi:tmodelkey:categories:music" keyName="category" keyValue="blues" />
+    <keyedReferenceGroup tModelKey="uddi:tmodelKey:group">
+      <keyedReference tModelKey="uddi:tmodelKey:blank" keyName="blank" keyValue="blank" />
+    </keyedReferenceGroup>
+  </categoryBag>
+  <identifierBag>
+    <keyedReference tModelKey="uddi:tmodelkey:identifier" keyName="identify" keyValue="identity" />
+  </identifierBag>
+</businessEntity>
\ No newline at end of file

Added: webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/businessService.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/businessService.xml?rev=726620&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/businessService.xml (added)
+++ webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/businessService.xml Sun Dec 14 21:54:54 2008
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<businessService xmlns="urn:uddi-org:api_v3" xmlns:xml="http://www.w3.org/XML/1998/namespace" 
+     businessKey="uddi:juddi.apache.org:joepublisher:businessone" serviceKey="uddi:juddi.apache.org:joepublisher:serviceone">
+  <name xml:lang="en">Service One</name>
+  <name xml:lang="es">Servicio Uno</name>
+  <description xml:lang="en">This is the description of service one.</description>
+  <description xml:lang="es">Ésta es la descripción del servicio uno.</description>
+  <bindingTemplates>
+    <bindingTemplate bindingKey="uddi:juddi.apache.org:joepublisher:bindingone">
+      <description xml:lang="en">This is the access point for service one.</description>
+      <accessPoint useType="endPoint">http://businessone.com/services/serviceone</accessPoint>
+      <tModelInstanceDetails>
+        <tModelInstanceInfo tModelKey="uddi:businessone.com:services:serviceone:wsdlSpec">
+          <description xml:lang="en">The wsdl for this service: service one</description>
+          <instanceDetails>
+            <overviewDoc>
+              <description xml:lang="en">Help document to describe the WSDL</description>
+              <overviewURL useType="text">http://www.w3.org/TR/wsdl</overviewURL>
+            </overviewDoc>
+            <instanceParms>instanceParms</instanceParms>
+          </instanceDetails>
+        </tModelInstanceInfo>
+      </tModelInstanceDetails>
+	  <categoryBag>
+	    <keyedReference tModelKey="uddi:tmodelkey:categories:bindings" keyName="category" keyValue="accesspoint" />
+	  </categoryBag>
+    </bindingTemplate>
+  </bindingTemplates>
+  <categoryBag>
+    <keyedReference tModelKey="uddi:tmodelkey:categories" keyName="category" keyValue="peaches" />
+    <keyedReference tModelKey="uddi:tmodelkey:categories" keyName="category" keyValue="plums" />
+    <keyedReferenceGroup tModelKey="uddi:tmodelKey:group">
+      <keyedReference tModelKey="uddi:tmodelKey:blank" keyName="blank" keyValue="blank" />
+    </keyedReferenceGroup>
+  </categoryBag>
+</businessService>

Added: webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/publisher.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/publisher.xml?rev=726620&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/publisher.xml (added)
+++ webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/publisher.xml Sun Dec 14 21:54:54 2008
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<publisher xmlns="urn:apache-org:juddi_v3" authorizedName="joepublisher">
+  <publisherName>Joe Publisher</publisherName>
+  <emailAddress>jpublisher@business.com</emailAddress>
+  <isAdmin>true</isAdmin>
+  <isEnabled>True</isEnabled>
+  <maxBindingsPerService>199</maxBindingsPerService>
+  <maxBusinesses>100</maxBusinesses>
+  <maxServicePerBusiness>100</maxServicePerBusiness>
+  <maxTModels>100</maxTModels>
+</publisher>

Added: webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/publisherAssertion.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/publisherAssertion.xml?rev=726620&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/publisherAssertion.xml (added)
+++ webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/publisherAssertion.xml Sun Dec 14 21:54:54 2008
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<publisherAssertion xmlns="urn:uddi-org:api_v3">
+  <fromKey>uddi:juddi.apache.org:joepublisher:businessone</fromKey>
+  <toKey>uddi:juddi.apache.org:samco:repository:samco</toKey>
+  <keyedReference tModelKey="uddi:uddi.org:relationships" keyName="Holding Company" keyValue="parent-child" />
+</publisherAssertion>

Added: webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/tModelKeyGen.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/tModelKeyGen.xml?rev=726620&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/tModelKeyGen.xml (added)
+++ webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/joepublisher/tModelKeyGen.xml Sun Dec 14 21:54:54 2008
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<tModel tModelKey="uddi:juddi.apache.org:joepublisher:KEYGENERATOR" xmlns="urn:uddi-org:api_v3">
+  <name>Joe Publisher's Key Generator</name>
+  <description>This is the key generator for Joe Publisher's UDDI entities!</description>
+  <overviewDoc>
+    <overviewURL useType="text">
+      http://uddi.org/pubs/uddi_v3.htm#keyGen</overviewURL>
+  </overviewDoc>
+  <categoryBag>
+    <keyedReference tModelKey="uddi:uddi.org:categorization:types" keyName="uddi-org:types:keyGenerator"
+      keyValue="keyGenerator" />
+  </categoryBag>
+</tModel>

Added: webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/samsyndicator/businessEntity.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/samsyndicator/businessEntity.xml?rev=726620&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/samsyndicator/businessEntity.xml (added)
+++ webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/samsyndicator/businessEntity.xml Sun Dec 14 21:54:54 2008
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<businessEntity xmlns="urn:uddi-org:api_v3" xmlns:xml="http://www.w3.org/XML/1998/namespace" businessKey="uddi:juddi.apache.org:samco:repository:samco">
+  <discoveryURLs>
+    <discoveryURL useType="home">http://www.samco.com</discoveryURL>
+    <discoveryURL useType="serviceList">http://www.samco.com/services</discoveryURL>
+  </discoveryURLs>
+  <name xml:lang="en">SamCo, Inc.</name>
+  <description xml:lang="en">SamCo provides a suite of digital assets.</description>
+  <contacts>
+    <contact useType="administrator">
+      <personName xml:lang="en">Sam Syndicator</personName>
+      <description xml:lang="en">This is the administrator of the service offerings.</description>
+      <phtwo useType="office">123-456-7890</phtwo>
+      <phtwo useType="mobile">987-654-3210</phtwo>
+      <email useType="work">ssyndicator@samco.com</email>
+      <address xml:lang="en" useType="headquarters" sortCode="1" tModelKey="uddi:tmodelKey:address">
+        <addressLine keyName="street" keyValue="street">1515 Main St</addressLine>
+        <addressLine keyName="citystatezip" keyValue="citystatezip">Ann Arbor, MI 41804</addressLine>
+        <addressLine keyName="country" keyValue="country">USA</addressLine>
+      </address>
+    </contact>
+  </contacts>
+  <categoryBag>
+    <keyedReference tModelKey="uddi:tmodelkey:categories:fruit" keyName="category" keyValue="bananas" />
+    <keyedReference tModelKey="uddi:tmodelkey:categories:fruit" keyName="category" keyValue="kiwi" />
+    <keyedReference tModelKey="uddi:tmodelkey:categories:music" keyName="category" keyValue="progressive-rock" />
+    <keyedReference tModelKey="uddi:tmodelkey:categories:music" keyName="category" keyValue="country" />
+    <keyedReferenceGroup tModelKey="uddi:tmodelKey:group">
+      <keyedReference tModelKey="uddi:tmodelKey:blank" keyName="blank" keyValue="blank" />
+    </keyedReferenceGroup>
+  </categoryBag>
+  <identifierBag>
+    <keyedReference tModelKey="uddi:tmodelkey:identifier" keyName="identify" keyValue="identity" />
+  </identifierBag>
+</businessEntity>
\ No newline at end of file

Added: webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/samsyndicator/businessService.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/samsyndicator/businessService.xml?rev=726620&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/samsyndicator/businessService.xml (added)
+++ webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/samsyndicator/businessService.xml Sun Dec 14 21:54:54 2008
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<businessService xmlns="urn:uddi-org:api_v3" xmlns:xml="http://www.w3.org/XML/1998/namespace" businessKey="uddi:juddi.apache.org:samco:repository:samco" serviceKey="uddi:juddi.apache.org:samco:repository:listingservice">
+  <name xml:lang="en">Listing Service</name>
+  <name xml:lang="es">Servicio del listado</name>
+  <description xml:lang="en">This is the description of the listing service.</description>
+  <description xml:lang="es">Ésta es la descripción del servicio del listado.</description>
+  <bindingTemplates>
+    <bindingTemplate bindingKey="uddi:juddi.apache.org:samco:repository:listservice-accesspoint">
+      <description xml:lang="en">This is the access point for listing service.</description>
+      <accessPoint useType="endPoint">http:/samco.com/services/listingservice</accessPoint>
+      <tModelInstanceDetails>
+        <tModelInstanceInfo tModelKey="uddi:juddi.apache.org:samco:repository:listservice-wsdlSpec">
+          <description xml:lang="en">The wsdl for this service: Listing Service</description>
+          <instanceDetails>
+            <overviewDoc>
+              <description xml:lang="en">Help document to describe the WSDL</description>
+              <overviewURL useType="text">http://www.w3.org/TR/wsdl</overviewURL>
+            </overviewDoc>
+            <instanceParms>instanceParms</instanceParms>
+          </instanceDetails>
+        </tModelInstanceInfo>
+      </tModelInstanceDetails>
+	  <categoryBag>
+	    <keyedReference tModelKey="uddi:tmodelkey:categories:bindings" keyName="category" keyValue="accesspoint" />
+	  </categoryBag>
+    </bindingTemplate>
+  </bindingTemplates>
+  <categoryBag>
+    <keyedReference tModelKey="uddi:tmodelkey:categories:beer" keyName="category" keyValue="lager" />
+    <keyedReference tModelKey="uddi:tmodelkey:categories:beer" keyName="category" keyValue="pilsner" />
+    <keyedReferenceGroup tModelKey="uddi:tmodelKey:group">
+      <keyedReference tModelKey="uddi:tmodelKey:blank" keyName="blank" keyValue="blank" />
+    </keyedReferenceGroup>
+  </categoryBag>
+</businessService>

Added: webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/samsyndicator/publisher.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/samsyndicator/publisher.xml?rev=726620&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/samsyndicator/publisher.xml (added)
+++ webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/samsyndicator/publisher.xml Sun Dec 14 21:54:54 2008
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<publisher xmlns="urn:apache-org:juddi_v3" authorizedName="ssyndicator">
+  <publisherName>Sam Syndicator</publisherName>
+  <emailAddress>ssyndicator@samco.com</emailAddress>
+  <isAdmin>false</isAdmin>
+  <isEnabled>True</isEnabled>
+  <maxBindingsPerService>199</maxBindingsPerService>
+  <maxBusinesses>100</maxBusinesses>
+  <maxServicePerBusiness>100</maxServicePerBusiness>
+  <maxTModels>100</maxTModels>
+</publisher>

Added: webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/samsyndicator/tModelKeyGen.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/samsyndicator/tModelKeyGen.xml?rev=726620&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/samsyndicator/tModelKeyGen.xml (added)
+++ webservices/juddi/branches/v3_trunk/juddi-core/src/test/resources/api_xml_data/samsyndicator/tModelKeyGen.xml Sun Dec 14 21:54:54 2008
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<tModel tModelKey="uddi:juddi.apache.org:samco:repository:keygenerator" xmlns="urn:uddi-org:api_v3">
+  <name>Sam Syndicator's Key Generator</name>
+  <description>This is the key generator for Sam Syndicator's UDDI entities!</description>
+  <overviewDoc>
+    <overviewURL useType="text">
+      http://uddi.org/pubs/uddi_v3.htm#keyGen</overviewURL>
+  </overviewDoc>
+  <categoryBag>
+    <keyedReference tModelKey="uddi:uddi.org:categorization:types" keyName="uddi-org:types:keyGenerator"
+      keyValue="keyGenerator" />
+  </categoryBag>
+</tModel>



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