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 RoleApi
- Loading branch information
Ryan Morgan
committed
Jun 29, 2009
1 parent
c149e54
commit 7242076
Showing
2 changed files
with
105 additions
and
2 deletions.
There are no files selected for viewing
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,35 @@ | ||
package org.hyperic.hq.hqapi1.test; | ||
|
||
import org.hyperic.hq.hqapi1.wadl.*; | ||
|
||
public class WADLRole_test extends WADLTestBase { | ||
|
||
public void testRoleList() throws Exception { | ||
Endpoint.RoleListHqu roleList = new Endpoint.RoleListHqu(); | ||
|
||
RolesResponse response = roleList.getAsRolesResponse(); | ||
hqAssertSuccess(response); | ||
} | ||
|
||
public void testRoleGet() throws Exception { | ||
Endpoint.RoleGetHqu roleGet = new Endpoint.RoleGetHqu(); | ||
|
||
RoleResponse response = roleGet.getAsRoleResponse("Some role"); | ||
hqAssertFailure(response); | ||
} | ||
|
||
public void testRoleDelete() throws Exception { | ||
Endpoint.RoleDeleteHqu roleDelete = new Endpoint.RoleDeleteHqu(); | ||
|
||
StatusResponse response = roleDelete.getAsStatusResponse(Integer.MAX_VALUE); | ||
hqAssertFailure(response); | ||
} | ||
|
||
public void testRoleSync() throws Exception { | ||
Endpoint.RoleSyncHqu roleSync = new Endpoint.RoleSyncHqu(); | ||
RolesRequest request = new RolesRequest(); | ||
|
||
StatusResponse response = roleSync.postAsStatusResponse(request); | ||
hqAssertSuccess(response); | ||
} | ||
} |
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