Commit 741a9322 authored by Abhishek Kumar (SLB)'s avatar Abhishek Kumar (SLB)
Browse files

Adding unit testcase

parent 6c56c08f
Pipeline #45364 failed with stages
in 51 seconds
......@@ -466,6 +466,17 @@ public class AzureSchemaInfoStoreTest {
assertEquals(1,
schemaInfoStore.getSchemaInfoList(QueryParams.builder().limit(100).offset(0).build(), dataPartitionId).size());
}
@Test
public void testGetSchemaInfoList_Withoutqueryparam_FailedWhenSearchedIntoSharedPartition()
throws NotFoundException, ApplicationException, BadRequestException {
List<SchemaInfoDoc> schemaInfoDocsList = new LinkedList<>();
schemaInfoDocsList.add(getMockSchemaInfoDoc());
doReturn(new ArrayList<>()).when(cosmosStore).queryItems(eq("common"), any(), any(), any(), any(), any());
assertEquals(0,
schemaInfoStore.getSchemaInfoList(QueryParams.builder().limit(100).offset(0).build(), dataPartitionId).size());
}
@Test
public void testGetSchemaInfoList_withqueryparam()
......
Markdown is supported
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