OKW_Helper { public static ArrayList<String> StringArray2ListStr( String[] fpsStringArray ) { Log.LogFunctionStartDebug("OKW_Helper.StrArray2ListStr", "fpsStringArray", fpsStringArray.toString()); ArrayList<String> lvls_Splited = new ArrayList<String>(); lvls_Splited.clear(); try { for (String lvsElement : fpsStringArray) { lvls_Splited.add(lvsElement); } } finally { Log.LogFunctionEndDebug(lvls_Splited); } return lvls_Splited; }  static String Boolean2String( Boolean fpbTrueOrFalse ); static String getLeftFromDelimiterNumber( String fpsSource, String fpsDelimiter, Integer fpiCount ); static String getRightFromDelimiterNumber( String fpsSource, String fpsDelimiter, Integer fpiCount ); static Boolean compareListString( List<String> ListString1, List<String> ListString2 ); static String concatListString( ArrayList<String> fps_ListString2Concat, String fps_Delimiter ); static Boolean matchString( String fpsPattern, String fpsStringToMatch ); static Boolean matchStrIgnoreCase( String fpsPattern, String fpsStringToMatch ); static String removeBeginEndQuotations( String fps_StringinQuotations ); static ArrayList<String> StringArray2ListStr( String[] fpsStringArray ); static Boolean String2Boolean( String fpsTrueOrFalse ); static ArrayList<String> splitString(String fpsString2Split, String fpsSeparator); static String repeatString( char c, Integer n ); static String repeatString( String c, Integer n ); static Boolean isStringNullOrEmpty( String fpsString);  }
@Test public void tcStrArray2ListStr_1Value() { ArrayList<String> actual = new ArrayList<String>(); ArrayList<String> expected = new ArrayList<String>(); String[] Input = { "Wert1" }; actual = OKW_Helper.StringArray2ListStr(Input); expected.clear(); expected.add("Wert1"); assertEquals(expected, actual); }
@Test public void tcStrArray2ListStr_2Value() { ArrayList<String> actual = new ArrayList<String>(); ArrayList<String> expected = new ArrayList<String>(); String[] Input = new String[] { "Wert1", "Wert2" }; actual = OKW_Helper.StringArray2ListStr(Input); expected.clear(); expected.add("Wert1"); expected.add("Wert2"); assertEquals(expected, actual); }
@Test public void tcStrArray2ListStr_3Value() { ArrayList<String> actual = new ArrayList<String>(); ArrayList<String> expected = new ArrayList<String>(); String[] Input = new String[] { "Wert1", "Wert2", "Natloz" }; actual = OKW_Helper.StringArray2ListStr(Input); expected.clear(); expected.add("Wert1"); expected.add("Wert2"); expected.add("Natloz"); assertEquals(expected, actual); }
@Test public void tcStrArray2ListStr_NoValue() { ArrayList<String> actual = new ArrayList<String>(); ArrayList<String> expected = new ArrayList<String>(); String[] Input = { }; actual = OKW_Helper.StringArray2ListStr(Input); expected.clear(); assertEquals(expected, actual); }