Skip to content
Snippets Groups Projects
Commit fd3bcdfb authored by Rostislav Dublin (EPAM)'s avatar Rostislav Dublin (EPAM)
Browse files

Merge branch 'fix-gcp-unit-test' into 'master'

Fix gcp unit test

See merge request !87
parents c6a9111e 7d496104
No related branches found
No related tags found
1 merge request!87Fix gcp unit test
Checking pipeline status
......@@ -2,15 +2,26 @@ package org.opengroup.osdu.legal;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import org.opengroup.osdu.core.common.provider.interfaces.ITenantFactory;
import org.opengroup.osdu.legal.di.TenantFactoryService;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class LegalApplicationTests {
@MockBean
TenantFactoryService tenantFactoryService;
@MockBean
ITenantFactory tenantFactory;
@Test
public void contextLoads() {
public void contextLoads() throws Exception {
Mockito.when(tenantFactoryService.getObject()).thenReturn(tenantFactory);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment