@Test public void doTpsLookupLoad() throws Exception { new MockUp<DBQueryUtil>() { @Mock public List<EnvironmentVO> getAllEnvironments() throws SerialException, SQLException { EnvironmentVO env = new EnvironmentVO(); env.setEnvironmentName("Development"); File resourcesDirectory = new File("src/test/data"); String content = null; List<EnvironmentVO> envList = new ArrayList<EnvironmentVO>(); envList.add(env); return envList; } }; TPSLookupTask.doTpsLookupLoad(); }
public static void doTpsLookupLoad() throws SQLException { logger.info("************** STARTED doTpsLookupLoad **************"); List<EnvironmentVO> environmentVOs = DBQueryUtil.getAllEnvironments(); for(EnvironmentVO eVo : environmentVOs){ if(eVo.getK8sUrl() == null){ continue; } loadTpsLookup(eVo); } }
TPSLookupTask { public static void doTpsLookupLoad() throws SQLException { logger.info("************** STARTED doTpsLookupLoad **************"); List<EnvironmentVO> environmentVOs = DBQueryUtil.getAllEnvironments(); for(EnvironmentVO eVo : environmentVOs){ if(eVo.getK8sUrl() == null){ continue; } loadTpsLookup(eVo); } } }
TPSLookupTask { public static void doTpsLookupLoad() throws SQLException { logger.info("************** STARTED doTpsLookupLoad **************"); List<EnvironmentVO> environmentVOs = DBQueryUtil.getAllEnvironments(); for(EnvironmentVO eVo : environmentVOs){ if(eVo.getK8sUrl() == null){ continue; } loadTpsLookup(eVo); } } private  TPSLookupTask(); }
TPSLookupTask { public static void doTpsLookupLoad() throws SQLException { logger.info("************** STARTED doTpsLookupLoad **************"); List<EnvironmentVO> environmentVOs = DBQueryUtil.getAllEnvironments(); for(EnvironmentVO eVo : environmentVOs){ if(eVo.getK8sUrl() == null){ continue; } loadTpsLookup(eVo); } } private  TPSLookupTask(); static void doTpsLookupLoad(); }
TPSLookupTask { public static void doTpsLookupLoad() throws SQLException { logger.info("************** STARTED doTpsLookupLoad **************"); List<EnvironmentVO> environmentVOs = DBQueryUtil.getAllEnvironments(); for(EnvironmentVO eVo : environmentVOs){ if(eVo.getK8sUrl() == null){ continue; } loadTpsLookup(eVo); } } private  TPSLookupTask(); static void doTpsLookupLoad();  }