@Test public void hasConsentForwardsCalls() throws ComponentLookupException { when(this.consentManager.hasConsent("P0123456", "consent1")).thenReturn(true); when(this.consentManager.hasConsent("P0123456", "consent2")).thenReturn(false); Assert.assertTrue(this.mocker.getComponentUnderTest().hasConsent("P0123456", "consent1")); Assert.assertFalse(this.mocker.getComponentUnderTest().hasConsent("P0123456", "consent2")); }
public boolean hasConsent(String patientId, String consentId) { return this.consentManager.hasConsent(patientId, consentId); }
ConsentManagerScriptService implements ScriptService { public boolean hasConsent(String patientId, String consentId) { return this.consentManager.hasConsent(patientId, consentId); } }
ConsentManagerScriptService implements ScriptService { public boolean hasConsent(String patientId, String consentId) { return this.consentManager.hasConsent(patientId, consentId); }  }
ConsentManagerScriptService implements ScriptService { public boolean hasConsent(String patientId, String consentId) { return this.consentManager.hasConsent(patientId, consentId); }  boolean hasConsent(String patientId, String consentId); JSONArray getAllConsentsForPatient(String patientId); }
ConsentManagerScriptService implements ScriptService { public boolean hasConsent(String patientId, String consentId) { return this.consentManager.hasConsent(patientId, consentId); }  boolean hasConsent(String patientId, String consentId); JSONArray getAllConsentsForPatient(String patientId);  }