use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class ClientAbstractReadAuthorizerTest method clientDifferentCountySensitiveTest.
@Test
public void clientDifferentCountySensitiveTest() {
when(clientSensitivityDeterminationService.getClientSensitivityById(CLIENT_ID)).thenReturn(Sensitivity.SENSITIVE);
when(clientCountyDeterminationService.getClientCountiesById(anyString())).thenReturn(Arrays.asList(new Short[] { 1034, 1012 }));
final Client client = initClient(Sensitivity.SENSITIVE);
checkAllCases(client, "1073", "Colusa", false, false, false, false, false);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class ClientAbstractReadAuthorizerTest method initClient.
private Client initClient(Sensitivity sensitivity) {
final Client client = new Client();
client.setIdentifier(CLIENT_ID);
client.setSensitivity(sensitivity);
return client;
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class ClientAbstractReadAuthorizerTest method clientNoCountySealedTest.
@Test
public void clientNoCountySealedTest() {
when(clientSensitivityDeterminationService.getClientSensitivityById(CLIENT_ID)).thenReturn(Sensitivity.SEALED);
when(clientCountyDeterminationService.getClientCountiesById(anyString())).thenReturn(null);
final Client client = initClient(Sensitivity.SEALED);
checkAllCases(client, "1073", "Colusa", false, false, true, false, true);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class ClientResultReadAuthorizerTest method clientDifferentCountySealedTest.
@Test
public void clientDifferentCountySealedTest() {
when(clientCountyDeterminationServiceMock.getClientCountiesById(anyString())).thenReturn(Arrays.asList(new Short[] { 1034, 1012 }));
final Client client = initClient(Sensitivity.SEALED);
checkAllCases(client, "1073", "Colusa", false, false, false, false, false);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class ClientResultReadAuthorizerTest method clientNoConditionsTest.
@Test
public void clientNoConditionsTest() {
when(clientCountyDeterminationServiceMock.getClientCountiesById(anyString())).thenReturn(Arrays.asList(new Short[] { 1023, 1034 }));
final Client client = initClient(Sensitivity.NOT_APPLICABLE);
checkAllCases(client, "1073", "Colusa", true, true, true, true, true);
}
Aggregations