use of ca.bc.gov.hlth.hnweb.security.SecurityUtil in project moh-hnweb by bcgov.
the class HL7SerializerTest method setUp.
@BeforeAll
static void setUp() throws IOException {
mockStatic = Mockito.mockStatic(SecurityUtil.class);
mockStatic.when(SecurityUtil::loadUserInfo).thenReturn(new UserInfo("unittest", "00000010", "hnweb-user"));
}
use of ca.bc.gov.hlth.hnweb.security.SecurityUtil in project moh-hnweb by bcgov.
the class AuditServiceTest method setUp.
@BeforeAll
static void setUp() throws IOException {
mockStatic = Mockito.mockStatic(SecurityUtil.class);
mockStatic.when(SecurityUtil::loadUserInfo).thenReturn(new UserInfo("unittest", "00000010", "hnweb-user", UUID.randomUUID().toString()));
}
use of ca.bc.gov.hlth.hnweb.security.SecurityUtil in project moh-hnweb by bcgov.
the class BaseControllerTest method setUp.
@BeforeAll
static void setUp() throws IOException {
mockBackEnd = new MockWebServer();
mockBackEnd.start(0);
mockStatic = Mockito.mockStatic(SecurityUtil.class);
mockStatic.when(SecurityUtil::loadUserInfo).thenReturn(new UserInfo("unittest", "00000010", "hnweb-user", UUID.randomUUID().toString()));
}
Aggregations