@Ignore("This is turned off because it cannot be automatically tested. It is checking static variables -no other unit tests can be run before this test for this to work. To run - you must also remove testSubject creation in the setup.") @Test public void testCreateInstanceHappyPath() { JLVHddDao oHDDDao = null; try { oHDDDao = JLVHddDao.createInstance(createJdbcUrl()); JLVHddDao oNewHDDDao = JLVHddDao.createInstance(createJdbcUrl()); assertSame(oHDDDao, oNewHDDDao); oNewHDDDao = JLVHddDao.createInstance(); assertSame(oHDDDao, oNewHDDDao); } catch (Exception e) { System.out.println("An unexpected exception occurred. Error: " + e.getMessage()); e.printStackTrace(); fail("An unexpected exception occurred. Error: " + e.getMessage()); } }
public static JLVHddDao createInstance() throws TermLoadException { if (oHDDDaoInstance == null) { throw new TermLoadException("This method can only be called after createInstance(JLVH2JdbcUrl) has already been called."); } return oHDDDaoInstance; }
JLVHddDao { public static JLVHddDao createInstance() throws TermLoadException { if (oHDDDaoInstance == null) { throw new TermLoadException("This method can only be called after createInstance(JLVH2JdbcUrl) has already been called."); } return oHDDDaoInstance; } }
JLVHddDao { public static JLVHddDao createInstance() throws TermLoadException { if (oHDDDaoInstance == null) { throw new TermLoadException("This method can only be called after createInstance(JLVH2JdbcUrl) has already been called."); } return oHDDDaoInstance; } protected  JLVHddDao(); protected  JLVHddDao(String sJLVH2JdbcUrl); }
JLVHddDao { public static JLVHddDao createInstance() throws TermLoadException { if (oHDDDaoInstance == null) { throw new TermLoadException("This method can only be called after createInstance(JLVH2JdbcUrl) has already been called."); } return oHDDDaoInstance; } 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 static JLVHddDao createInstance() throws TermLoadException { if (oHDDDaoInstance == null) { throw new TermLoadException("This method can only be called after createInstance(JLVH2JdbcUrl) has already been called."); } return oHDDDaoInstance; } 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);  }