Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add WADL resource definitions for AutodiscoveryApi.
- Loading branch information
Ryan Morgan
committed
Jun 25, 2009
1 parent
171aab9
commit 1fea10d
Showing
3 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
src/org/hyperic/hq/hqapi1/test/WADLAutodiscovery_test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.hyperic.hq.hqapi1.test; | ||
|
||
import org.hyperic.hq.hqapi1.wadl.*; | ||
|
||
public class WADLAutodiscovery_test extends WADLTestBase { | ||
|
||
public void testGetQueue() throws Exception { | ||
|
||
Endpoint.AutodiscoveryGetQueueHqu adGetQueue = | ||
new Endpoint.AutodiscoveryGetQueueHqu(); | ||
|
||
QueueResponse queue = adGetQueue.getAsQueueResponse(); | ||
hqAssertSuccess(queue); | ||
} | ||
|
||
public void testApprove() throws Exception { | ||
|
||
Endpoint.AutodiscoveryApproveHqu adApprove = | ||
new Endpoint.AutodiscoveryApproveHqu(); | ||
|
||
StatusResponse approve = adApprove.getAsStatusResponse(Integer.MAX_VALUE); | ||
hqAssertFailure(approve); // That id won't exist, just testing endpoints. | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters