@Test public void testNoteLoincFromVuidHappyPath() { try { ((MyHDDDao) testSubject).clearStaticData(); when(mockJLVNotesMap.getNotesLoincFromVuid(any(String.class))).thenReturn(createGeneratedMappedCodeListResponse()); List<JLVMappedCode> oMappedCodeList = testSubject.getMappedCodeList(MappingType.VitalsVuidToLoinc, "9999"); verifyGeneratedMappedCodeListResponse(oMappedCodeList); } catch (Exception e) { System.out.println("An unexpected exception occurred. Error: " + e.getMessage()); e.printStackTrace(); fail("An unexpected exception occurred. Error: " + e.getMessage()); } }
public List<JLVMappedCode> getMappedCodeList(MappingType oMappingType, String sSourceCode) throws TermLoadException { List<JLVMappedCode> oMappedCodeList = new ArrayList<>(); JLVMappedCode oMappedCode = getMappedCode(oMappingType, sSourceCode); if (oMappedCode != null) { oMappedCodeList.add(oMappedCode); } if (oMappingType == MappingType.NotesVuidToLoinc) { JLVNotesMap oNotesMap = getJLVNotesMap(); List<JLVMappedCode> oResult = oNotesMap.getNotesLoincFromVuid(sSourceCode); if (oResult != null) { oMappedCodeList.addAll(oResult); } } return oMappedCodeList; }
JLVHddDao { public List<JLVMappedCode> getMappedCodeList(MappingType oMappingType, String sSourceCode) throws TermLoadException { List<JLVMappedCode> oMappedCodeList = new ArrayList<>(); JLVMappedCode oMappedCode = getMappedCode(oMappingType, sSourceCode); if (oMappedCode != null) { oMappedCodeList.add(oMappedCode); } if (oMappingType == MappingType.NotesVuidToLoinc) { JLVNotesMap oNotesMap = getJLVNotesMap(); List<JLVMappedCode> oResult = oNotesMap.getNotesLoincFromVuid(sSourceCode); if (oResult != null) { oMappedCodeList.addAll(oResult); } } return oMappedCodeList; } }
JLVHddDao { public List<JLVMappedCode> getMappedCodeList(MappingType oMappingType, String sSourceCode) throws TermLoadException { List<JLVMappedCode> oMappedCodeList = new ArrayList<>(); JLVMappedCode oMappedCode = getMappedCode(oMappingType, sSourceCode); if (oMappedCode != null) { oMappedCodeList.add(oMappedCode); } if (oMappingType == MappingType.NotesVuidToLoinc) { JLVNotesMap oNotesMap = getJLVNotesMap(); List<JLVMappedCode> oResult = oNotesMap.getNotesLoincFromVuid(sSourceCode); if (oResult != null) { oMappedCodeList.addAll(oResult); } } return oMappedCodeList; } protected  JLVHddDao(); protected  JLVHddDao(String sJLVH2JdbcUrl); }
JLVHddDao { public List<JLVMappedCode> getMappedCodeList(MappingType oMappingType, String sSourceCode) throws TermLoadException { List<JLVMappedCode> oMappedCodeList = new ArrayList<>(); JLVMappedCode oMappedCode = getMappedCode(oMappingType, sSourceCode); if (oMappedCode != null) { oMappedCodeList.add(oMappedCode); } if (oMappingType == MappingType.NotesVuidToLoinc) { JLVNotesMap oNotesMap = getJLVNotesMap(); List<JLVMappedCode> oResult = oNotesMap.getNotesLoincFromVuid(sSourceCode); if (oResult != null) { oMappedCodeList.addAll(oResult); } } return oMappedCodeList; } protected  JLVHddDao(); protected  JLVHddDao(String sJLVH2JdbcUrl); static JLVHddDao createInstance(); static JLVHddDao createInstance(String sJLVH2JdbcUrl); List<JLVMappedCode> getMappedCodeList(MappingType oMappingType, String sSourceCode); JLVMappedCode getMappedCode(MappingType oMappingType, String sSourceCode); }
JLVHddDao { public List<JLVMappedCode> getMappedCodeList(MappingType oMappingType, String sSourceCode) throws TermLoadException { List<JLVMappedCode> oMappedCodeList = new ArrayList<>(); JLVMappedCode oMappedCode = getMappedCode(oMappingType, sSourceCode); if (oMappedCode != null) { oMappedCodeList.add(oMappedCode); } if (oMappingType == MappingType.NotesVuidToLoinc) { JLVNotesMap oNotesMap = getJLVNotesMap(); List<JLVMappedCode> oResult = oNotesMap.getNotesLoincFromVuid(sSourceCode); if (oResult != null) { oMappedCodeList.addAll(oResult); } } return oMappedCodeList; } protected  JLVHddDao(); protected  JLVHddDao(String sJLVH2JdbcUrl); static JLVHddDao createInstance(); static JLVHddDao createInstance(String sJLVH2JdbcUrl); List<JLVMappedCode> getMappedCodeList(MappingType oMappingType, String sSourceCode); JLVMappedCode getMappedCode(MappingType oMappingType, String sSourceCode);  }