You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by wi...@apache.org on 2005/09/12 20:13:49 UTC
svn commit: r280382 -
/webservices/muse/trunk/src/examples/client/src/test/org/apache/ws/client/muse/client/impl/ManageableResourceImplTest.java
Author: wire
Date: Mon Sep 12 11:13:48 2005
New Revision: 280382
URL: http://svn.apache.org/viewcvs?rev=280382&view=rev
Log:
Added support for getMultipleResourceProperties
Modified:
webservices/muse/trunk/src/examples/client/src/test/org/apache/ws/client/muse/client/impl/ManageableResourceImplTest.java
Modified: webservices/muse/trunk/src/examples/client/src/test/org/apache/ws/client/muse/client/impl/ManageableResourceImplTest.java
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/src/test/org/apache/ws/client/muse/client/impl/ManageableResourceImplTest.java?rev=280382&r1=280381&r2=280382&view=diff
==============================================================================
--- webservices/muse/trunk/src/examples/client/src/test/org/apache/ws/client/muse/client/impl/ManageableResourceImplTest.java (original)
+++ webservices/muse/trunk/src/examples/client/src/test/org/apache/ws/client/muse/client/impl/ManageableResourceImplTest.java Mon Sep 12 11:13:48 2005
@@ -118,12 +118,21 @@
assertEquals(16,infoArry.length);
}
-// public void testGetMultipleResourceProperties(){
-// QName[] infoArry= testImpl.getMultipleResourceProperties();
-// assertNotNull(infoArry);
-// assertEquals(16,infoArry.length);
-//
-// }
+ public void testGetMultipleResourceProperties() throws URISyntaxException, IOException, XmlException, UnexpectedServerResponseException{
+ //define list of requested resouces as QName array
+ QName[] requestedResourceProperties = new QName[3];
+ //populate array.
+ requestedResourceProperties[0] = TestResourcePropertyQNames.NAME;
+ requestedResourceProperties[1] = TestResourcePropertyQNames.PRICE;
+ requestedResourceProperties[2] = TestResourcePropertyQNames.RESOURCEID;
+
+ XmlObject[] resourceArry= testImpl.getMultipleResourceProperties(requestedResourceProperties);
+ assertNotNull(resourceArry);
+ //Which resource properties do we expect back?
+ //How do we specify which mulitple resource properies to retrieve?
+// assertEquals(,resourceArry.length);
+
+ }
/**
* Objective: Request a metric called test metric. Confirm readability
@@ -144,11 +153,23 @@
// fail("Try writting an actual test.");
// }
+ // TODO Provide Complete support for primitive type getting
+
+ // TODO Resolve the best way to support getting metrics
+
+ // TODO Implement Capabilities
+
+ // TODO Implement Commonly Supported Properties
+
// TODO Support QueryResourceProperties
// TODO GetMultipleresourceProperties
- //Next try the tests
+ // TODO Support for setting properties
+
+ // TODO Calling Operations on Resources
+
+ // TODO Next try the create and destroys.
- // Next try the create and destroys.
+ // TODO Notifications
}