@Test public void testRemoveAgreement() throws Exception { getMockWebServer().enqueue(new MockResponse() .setHeader("Accept", MediaType.APPLICATION_JSON) .setHeader("Content-Type", MediaType.APPLICATION_JSON) ); assertNotNull(getProxy().removeAgreement(RANDOM_STRING)); }
public String removeAgreement(String agreementId) { Invocation invocation = getJerseyClient().target(getEndpoint() + "/agreements/" + agreementId).request() .header("Accept", MediaType.APPLICATION_JSON) .header("Content-Type", MediaType.APPLICATION_JSON) .buildDelete(); return invocation.invoke().readEntity(String.class); }
SlaProxy extends AbstractProxy { public String removeAgreement(String agreementId) { Invocation invocation = getJerseyClient().target(getEndpoint() + "/agreements/" + agreementId).request() .header("Accept", MediaType.APPLICATION_JSON) .header("Content-Type", MediaType.APPLICATION_JSON) .buildDelete(); return invocation.invoke().readEntity(String.class); } }
SlaProxy extends AbstractProxy { public String removeAgreement(String agreementId) { Invocation invocation = getJerseyClient().target(getEndpoint() + "/agreements/" + agreementId).request() .header("Accept", MediaType.APPLICATION_JSON) .header("Content-Type", MediaType.APPLICATION_JSON) .buildDelete(); return invocation.invoke().readEntity(String.class); } SlaProxy(); }
SlaProxy extends AbstractProxy { public String removeAgreement(String agreementId) { Invocation invocation = getJerseyClient().target(getEndpoint() + "/agreements/" + agreementId).request() .header("Accept", MediaType.APPLICATION_JSON) .header("Content-Type", MediaType.APPLICATION_JSON) .buildDelete(); return invocation.invoke().readEntity(String.class); } SlaProxy(); String addAgreement(Agreement slaAgreement); String removeAgreement(String agreementId); String notifyRulesReady(Agreement slaAgreement); Agreement getAgreement(String agreementId); Agreement getAgreementByTemplateId(String slaAgreementTemplateId); GuaranteeTermsStatus getAgreementStatus(Agreement agreement); GuaranteeTermsStatus getAgreementStatus(String agreementId); List<Violation> getGuaranteeTermViolations(Agreement agreement, GuaranteeTerm guaranteeTerm); List<Penalty> getGuaranteeTermPenalties(Agreement agreement, GuaranteeTerm guaranteeTerm); }
SlaProxy extends AbstractProxy { public String removeAgreement(String agreementId) { Invocation invocation = getJerseyClient().target(getEndpoint() + "/agreements/" + agreementId).request() .header("Accept", MediaType.APPLICATION_JSON) .header("Content-Type", MediaType.APPLICATION_JSON) .buildDelete(); return invocation.invoke().readEntity(String.class); } SlaProxy(); String addAgreement(Agreement slaAgreement); String removeAgreement(String agreementId); String notifyRulesReady(Agreement slaAgreement); Agreement getAgreement(String agreementId); Agreement getAgreementByTemplateId(String slaAgreementTemplateId); GuaranteeTermsStatus getAgreementStatus(Agreement agreement); GuaranteeTermsStatus getAgreementStatus(String agreementId); List<Violation> getGuaranteeTermViolations(Agreement agreement, GuaranteeTerm guaranteeTerm); List<Penalty> getGuaranteeTermPenalties(Agreement agreement, GuaranteeTerm guaranteeTerm);  }