Search in sources :

Example 11 with Case

use of gov.ca.cwds.testapp.domain.Case in project perry by ca-cwds.

the class TestServiceImpl method testReturnInstance.

@Override
@Authorize("case:read:caseDTO.caseObject")
public CaseDTO testReturnInstance() {
    Case caseObject = new Case(1L, "");
    CaseDTO caseDTO = new CaseDTO();
    caseDTO.setCaseObject(caseObject);
    return caseDTO;
}
Also used : CaseDTO(gov.ca.cwds.testapp.domain.CaseDTO) Case(gov.ca.cwds.testapp.domain.Case) Authorize(gov.ca.cwds.security.annotations.Authorize)

Aggregations

Case (gov.ca.cwds.testapp.domain.Case)11 Test (org.junit.Test)8 CaseDTO (gov.ca.cwds.testapp.domain.CaseDTO)7 Authorize (gov.ca.cwds.security.annotations.Authorize)3 CaseAuthorizer (gov.ca.cwds.security.authorizer.CaseAuthorizer)2 ArrayList (java.util.ArrayList)1