@Test public void testGetTestGenera() throws Exception { String[] actual = ETLUtil.getTestGenera(); String[] expected = {"malus", "parus", "larus", "bombus", "rhododendron", "felix", "tulipa", "rosa", "canis", "passer", "trientalis"}; assertNotNull("01",expected); assertArrayEquals("02",expected, actual); }
public static String[] getTestGenera() { String s = System.getProperty(SYSPROP_TEST_GENERA); if (s == null || s.length() == 0) { return null; } String[] testGenera = s.split(","); for (int i = 0; i < testGenera.length; i++) { testGenera[i] = testGenera[i].trim().toLowerCase(); } return testGenera; }
ETLUtil { public static String[] getTestGenera() { String s = System.getProperty(SYSPROP_TEST_GENERA); if (s == null || s.length() == 0) { return null; } String[] testGenera = s.split(","); for (int i = 0; i < testGenera.length; i++) { testGenera[i] = testGenera[i].trim().toLowerCase(); } return testGenera; } }
ETLUtil { public static String[] getTestGenera() { String s = System.getProperty(SYSPROP_TEST_GENERA); if (s == null || s.length() == 0) { return null; } String[] testGenera = s.split(","); for (int i = 0; i < testGenera.length; i++) { testGenera[i] = testGenera[i].trim().toLowerCase(); } return testGenera; } ETLUtil(); }
ETLUtil { public static String[] getTestGenera() { String s = System.getProperty(SYSPROP_TEST_GENERA); if (s == null || s.length() == 0) { return null; } String[] testGenera = s.split(","); for (int i = 0; i < testGenera.length; i++) { testGenera[i] = testGenera[i].trim().toLowerCase(); } return testGenera; } ETLUtil(); static Throwable getRootCause(Throwable t); static void logDuration(Logger logger, Class<?> cls, long start); static String getDuration(long start); static String getDuration(long start, long end); static String getSpecimenPurl(String unitID); static Logger getLogger(Class<?> forClass); static void truncate(DocumentType<T> dt); static void truncate(DocumentType<T> dt, SourceSystem ss); static String[] getTestGenera(); }
ETLUtil { public static String[] getTestGenera() { String s = System.getProperty(SYSPROP_TEST_GENERA); if (s == null || s.length() == 0) { return null; } String[] testGenera = s.split(","); for (int i = 0; i < testGenera.length; i++) { testGenera[i] = testGenera[i].trim().toLowerCase(); } return testGenera; } ETLUtil(); static Throwable getRootCause(Throwable t); static void logDuration(Logger logger, Class<?> cls, long start); static String getDuration(long start); static String getDuration(long start, long end); static String getSpecimenPurl(String unitID); static Logger getLogger(Class<?> forClass); static void truncate(DocumentType<T> dt); static void truncate(DocumentType<T> dt, SourceSystem ss); static String[] getTestGenera();  }