use of org.testng.annotations.AfterGroups in project rhsm-qe by RedHatQE.
the class ServiceLevelTests method afterSetDefaultServiceLevelForOrgAndRegister_Test.
@AfterGroups(value = { "SetDefaultServiceLevelForOrgAndRegister_Test" }, groups = { "setup" })
public void afterSetDefaultServiceLevelForOrgAndRegister_Test() throws Exception {
// update the defaultServiceLevel on the Org (setting to "" will nullify the attribute on the org; setting to JSONObject.NULL does not work)
if (orgForSetDefaultServiceLevelForOrgAndRegister_Test != null) {
JSONObject jsonOrg = CandlepinTasks.setAttributeForOrg(sm_clientUsername, sm_clientPassword, sm_serverUrl, orgForSetDefaultServiceLevelForOrgAndRegister_Test, "defaultServiceLevel", "");
// should be null
jsonOrg.get("defaultServiceLevel");
}
}
Aggregations