Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
216 additions
and
0 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 WADLGroup_test extends WADLTestBase { | ||
|
||
public void testGroupList() throws Exception { | ||
Endpoint.GroupListHqu groupList = new Endpoint.GroupListHqu(); | ||
|
||
GroupsResponse response = groupList.getAsGroupsResponse(); | ||
hqAssertSuccess(response); | ||
} | ||
|
||
public void testGroupGet() throws Exception { | ||
Endpoint.GroupGetHqu groupGet = new Endpoint.GroupGetHqu(); | ||
|
||
GroupResponse response = groupGet.getAsGroupResponse("Some group"); | ||
hqAssertFailure(response); | ||
} | ||
|
||
public void testGroupDelete() throws Exception { | ||
Endpoint.GroupDeleteHqu groupDelete = new Endpoint.GroupDeleteHqu(); | ||
|
||
StatusResponse response = groupDelete.getAsStatusResponse(Integer.MAX_VALUE); | ||
hqAssertFailure(response); | ||
} | ||
|
||
public void testGroupSync() throws Exception { | ||
Endpoint.GroupSyncHqu groupSync = new Endpoint.GroupSyncHqu(); | ||
GroupsRequest request = new GroupsRequest(); | ||
|
||
GroupsResponse response = groupSync.postAsGroupsResponse(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
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