use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class ClientAbstractReadAuthorizerTest method clientDifferentCountySealedTest.
@Test
public void clientDifferentCountySealedTest() {
when(clientSensitivityDeterminationService.getClientSensitivityById(CLIENT_ID)).thenReturn(Sensitivity.SEALED);
when(clientCountyDeterminationService.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 ClientAbstractReadAuthorizerTest method clientNoCountySensitiveTest.
@Test
public void clientNoCountySensitiveTest() {
when(clientSensitivityDeterminationService.getClientSensitivityById(CLIENT_ID)).thenReturn(Sensitivity.SENSITIVE);
when(clientCountyDeterminationService.getClientCountiesById(anyString())).thenReturn(null);
final Client client = initClient(Sensitivity.SENSITIVE);
checkAllCases(client, "1073", "Colusa", false, true, false, false, false);
}
use of gov.ca.cwds.data.legacy.cms.entity.Client in project api-core by ca-cwds.
the class ClientResultReadAuthorizerTest method clientNoCountySealedTest.
@Test
public void clientNoCountySealedTest() {
when(clientCountyDeterminationServiceMock.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 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 ClientResultReadAuthorizerTest method clientSameCountySealedTest.
@Test
public void clientSameCountySealedTest() {
when(clientCountyDeterminationServiceMock.getClientCountiesById(anyString())).thenReturn(Arrays.asList(new Short[] { 1073, 1126 }));
final Client client = initClient(Sensitivity.SEALED);
checkAllCases(client, "1073", "Colusa", false, false, true, false, true);
}
Aggregations