@Test public void testGetAgreementStatus() throws Exception { String termStatusJson = TestUtils.getStringFromPath(TestFixtures.AGREEMENT_STATUS_PATH_JSON); String agreementJson = TestUtils.getStringFromPath(TestFixtures.AGREEMENT_PATH_JSON); Agreement agreement = ObjectMapperHelpers.JsonToObject(agreementJson, Agreement.class); getMockWebServer().enqueue(new MockResponse() .setBody(termStatusJson) .setHeader("Accept", MediaType.APPLICATION_JSON) .setHeader("Content-Type", MediaType.APPLICATION_JSON) ); GuaranteeTermsStatus response = getProxy().getAgreementStatus(agreement); GuaranteeTermsStatus fixture = ObjectMapperHelpers.JsonToObject(termStatusJson, GuaranteeTermsStatus.class); assertEquals(response.getAgreementId(), fixture.getAgreementId()); }
public GuaranteeTermsStatus getAgreementStatus(Agreement agreement) { return getAgreementStatus(agreement.getAgreementId()); }
SlaProxy extends AbstractProxy { public GuaranteeTermsStatus getAgreementStatus(Agreement agreement) { return getAgreementStatus(agreement.getAgreementId()); } }
SlaProxy extends AbstractProxy { public GuaranteeTermsStatus getAgreementStatus(Agreement agreement) { return getAgreementStatus(agreement.getAgreementId()); } SlaProxy(); }
SlaProxy extends AbstractProxy { public GuaranteeTermsStatus getAgreementStatus(Agreement agreement) { return getAgreementStatus(agreement.getAgreementId()); } 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 GuaranteeTermsStatus getAgreementStatus(Agreement agreement) { return getAgreementStatus(agreement.getAgreementId()); } 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);  }