@Test public void testConvertTsBasConcrete() throws IOException, ModuleNotFoundException { loadJsonModel("UtkastModelToXMLConverter/ts-bas.json"); TsBasModuleApiV6 tsBaModuleApi = new TsBasModuleApiV6(); ReflectionTestUtils.setField(tsBaModuleApi, "objectMapper", new CustomObjectMapper()); when(intygModuleRegistry.getModuleApi(anyString(), anyString())).thenReturn(tsBaModuleApi); when(intygModuleRegistry.resolveVersionFromUtlatandeJson(anyString(), anyString())).thenReturn("1.0"); String xml = testee.utkastToXml(jsonModel, "ts-bas"); assertNotNull(xml); }
public String utkastToXml(String json, String intygsTyp) { Intyg intyg = utkastToJAXBObject(intygsTyp, json); return handleAsRegisterCertificate3(intyg); }
UtkastModelToXMLConverter { public String utkastToXml(String json, String intygsTyp) { Intyg intyg = utkastToJAXBObject(intygsTyp, json); return handleAsRegisterCertificate3(intyg); } }
UtkastModelToXMLConverter { public String utkastToXml(String json, String intygsTyp) { Intyg intyg = utkastToJAXBObject(intygsTyp, json); return handleAsRegisterCertificate3(intyg); }  }
UtkastModelToXMLConverter { public String utkastToXml(String json, String intygsTyp) { Intyg intyg = utkastToJAXBObject(intygsTyp, json); return handleAsRegisterCertificate3(intyg); }  String utkastToXml(String json, String intygsTyp); }
UtkastModelToXMLConverter { public String utkastToXml(String json, String intygsTyp) { Intyg intyg = utkastToJAXBObject(intygsTyp, json); return handleAsRegisterCertificate3(intyg); }  String utkastToXml(String json, String intygsTyp);  }