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

Test failed JUnit

parent c1e6dce4
Pipeline #117302 failed with stages
in 56 seconds
......@@ -38,19 +38,7 @@ public class RemoveOperationHandlerTest {
@Test
public void testCompare_ValidChange_RemovePropWithOldTrue() throws IOException, ApplicationException {
List<SchemaBreakingChanges> schemaBreakingChanges = new ArrayList<>();
Set<String> processedArrayPath = new HashSet<>();
SchemaHandlerVO schemaHandlerVO = getMockSchemaHandlerVO("/schema_compare/remove_operation/allowed/base-schema.json"
,"/schema_compare/remove_operation/allowed/new-schema.json");
List<SchemaPatch> schemaPatchList = TestUtility.findSchemaPatch(schemaHandlerVO.getSourceSchema(), schemaHandlerVO.getTargetSchema());
schemaHandlerVO.getChangedRefIds().put("osdu:wks:AbstractCommonResources:1.0.0", "osdu:wks:AbstractCommonResources:1.1.0");
for(SchemaPatch patch : schemaPatchList) {
removeOperationHandler.compare(schemaHandlerVO, patch, schemaBreakingChanges, processedArrayPath);
if(schemaBreakingChanges.size() > 0)
Assert.fail();
}
Assert.fail();
}
@Test
......
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