@Test(expected = MalformedLookupsJsonException.class) public void shouldFailToAddLookupIfJsonIsMalformed() { when(bundle.getResource(MDS_LOOKUPS_JSON)).thenReturn(INVALID_JSON); editableLookupsLoader.addEditableLookups(output, bundle); }
public void addEditableLookups(MDSProcessorOutput output, Bundle bundle) { List<EntityLookups> entitiesLookups = loadEntitiesLookups(bundle); addEditableEntitiesLookups(output, bundle, entitiesLookups); }
EditableLookupsLoader { public void addEditableLookups(MDSProcessorOutput output, Bundle bundle) { List<EntityLookups> entitiesLookups = loadEntitiesLookups(bundle); addEditableEntitiesLookups(output, bundle, entitiesLookups); } }
EditableLookupsLoader { public void addEditableLookups(MDSProcessorOutput output, Bundle bundle) { List<EntityLookups> entitiesLookups = loadEntitiesLookups(bundle); addEditableEntitiesLookups(output, bundle, entitiesLookups); } @Autowired  EditableLookupsLoader(JsonLookupService jsonLookupService); }
EditableLookupsLoader { public void addEditableLookups(MDSProcessorOutput output, Bundle bundle) { List<EntityLookups> entitiesLookups = loadEntitiesLookups(bundle); addEditableEntitiesLookups(output, bundle, entitiesLookups); } @Autowired  EditableLookupsLoader(JsonLookupService jsonLookupService); void addEditableLookups(MDSProcessorOutput output, Bundle bundle); }
EditableLookupsLoader { public void addEditableLookups(MDSProcessorOutput output, Bundle bundle) { List<EntityLookups> entitiesLookups = loadEntitiesLookups(bundle); addEditableEntitiesLookups(output, bundle, entitiesLookups); } @Autowired  EditableLookupsLoader(JsonLookupService jsonLookupService); void addEditableLookups(MDSProcessorOutput output, Bundle bundle);  }