Commit 42c069a4 authored by Artem Dobrynin (EPAM)'s avatar Artem Dobrynin (EPAM)
Browse files

Fix failing unit tests

* Changed set-up variable for SchemaServiceTest
parent 1a3c12ff
......@@ -91,7 +91,7 @@ public class SchemaServiceTest {
@Before
public void setUp() {
ReflectionTestUtils.setField(schemaService, "sharedTenant", sharedTenant);
ReflectionTestUtils.setField(schemaService, "sharedTenant", "common");
}
@Test
......@@ -115,6 +115,7 @@ public class SchemaServiceTest {
@Test
public void testGetSchema_FetchCommonProjectTest()
throws BadRequestException, NotFoundException, ApplicationException {
ReflectionTestUtils.setField(schemaService, "sharedTenant", sharedTenant);
String dataPartitionId = "private";
Mockito.when(headers.getPartitionId()).thenReturn(dataPartitionId);
String schemaId = "os..wks..well.1.1";
......@@ -125,6 +126,7 @@ public class SchemaServiceTest {
@Test
public void testGetSchema_NotFoundException() throws BadRequestException, NotFoundException, ApplicationException {
ReflectionTestUtils.setField(schemaService, "sharedTenant", sharedTenant);
expectedException.expect(NotFoundException.class);
expectedException.expectMessage(SchemaConstants.SCHEMA_NOT_PRESENT);
String dataPartitionId = "private";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment