OKW_Helper { public static Boolean compareListString( List<String> ListString1, List<String> ListString2 ) { Boolean lvbReturn = true; Log.LogFunctionStartDebug("OKW_Helper.ListStringCompare", "ListString1", ListString1.toString(), "ListString2", ListString2.toString()); try { if (ListString1.size() == ListString2.size()) { for (int i = 0; i < ListString1.size(); i++) { if (ListString1.get(i) != ListString2.get(i)) { Log.LogPrintDebug(ListString1.get(i) + "<>" + ListString2.get(i)); lvbReturn = false; break; } else { lvbReturn = true; } } } else { lvbReturn = false; } } finally { Log.LogFunctionEndDebug(lvbReturn); } return lvbReturn; }  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 tcListStringCompare_0_0_Wert() { ArrayList<String> List_1 = new ArrayList<String>(); ArrayList<String> List_2 = new ArrayList<String>(); Boolean expected = true; Boolean actual = true; actual = OKW_Helper.compareListString(List_1, List_2); assertEquals(expected, actual); }
@Test public void tcListStringCompare_10_9Werte() { ArrayList<String> List_1 = new ArrayList<String>(); ArrayList<String> List_2 = new ArrayList<String>(); List_1.add("Wert_1"); List_2.add("Wert_1"); List_1.add("Wert_2"); List_2.add("Wert_2"); List_1.add("Wert_3"); List_2.add("Wert_3"); List_1.add("Wert_4"); List_2.add("Wert_4"); List_1.add("Wert_5"); List_2.add("Wert_5"); List_1.add("Wert_6"); List_2.add("Wert_6"); List_1.add("Wert_7"); List_2.add("Wert_7"); List_1.add("Wert_8"); List_2.add("Wert_8"); List_1.add("Wert_9"); List_2.add("Wert_9"); List_1.add("Wert_10"); Boolean expected = false; Boolean actual = true; actual = OKW_Helper.compareListString(List_1, List_2); assertEquals(expected, actual); }
@Test public void tcListStringCompare_1_0_Werte() { ArrayList<String> List_1 = new ArrayList<String>(); ArrayList<String> List_2 = new ArrayList<String>(); List_1.add("Wert_1"); Boolean expected = false; Boolean actual = true; actual = OKW_Helper.compareListString(List_1, List_2); assertEquals(expected, actual); }
@Test public void tcListStringCompare_1_1_DiffWert_1() { ArrayList<String> List_1 = new ArrayList<String>(); ArrayList<String> List_2 = new ArrayList<String>(); List_1.add("Wert_1"); List_2.add("Diff"); Boolean expected = false; Boolean actual; actual = OKW_Helper.compareListString(List_1, List_2); assertEquals(expected, actual); }
@Test public void tcListStringCompare_1_1_Wert() { ArrayList<String> List_1 = new ArrayList<String>(); ArrayList<String> List_2 = new ArrayList<String>(); List_1.add("Wert_1"); List_2.add("Wert_1"); Boolean expected = true; Boolean actual = true; actual = OKW_Helper.compareListString(List_1, List_2); assertEquals(expected, actual); }
@Test public void tcListStringCompare_1_2_Werte() { ArrayList<String> List_1 = new ArrayList<String>(); ArrayList<String> List_2 = new ArrayList<String>(); List_1.add("Wert_1"); List_2.add("Wert_1"); List_2.add("Wert_2"); Boolean expected = false; Boolean actual = true; actual = OKW_Helper.compareListString(List_1, List_2); assertEquals(expected, actual); }
@Test public void tcListStringCompare_2_1_Werte() { ArrayList<String> List_1 = new ArrayList<String>(); ArrayList<String> List_2 = new ArrayList<String>(); List_1.add("Wert_1"); List_1.add("Wert_2"); List_2.add("Wert_2"); Boolean expected = false; Boolean actual = true; actual = OKW_Helper.compareListString(List_1, List_2); assertEquals(expected, actual); }
@Test public void tcListStringCompare_2_2_DiffWert_2() { ArrayList<String> List_1 = new ArrayList<String>(); ArrayList<String> List_2 = new ArrayList<String>(); List_1.add("Wert_1"); List_2.add("Wert_1"); List_1.add("Wert_2"); List_2.add("Diff"); Boolean expected = false; Boolean actual; actual = OKW_Helper.compareListString(List_1, List_2); assertEquals(expected, actual); }
@Test public void tcListStringCompare_2_2_Werte() { ArrayList<String> List_1 = new ArrayList<String>(); ArrayList<String> List_2 = new ArrayList<String>(); List_1.add("Wert_1"); List_2.add("Wert_1"); List_1.add("Wert_2"); List_2.add("Wert_2"); Boolean expected = true; Boolean actual = true; actual = OKW_Helper.compareListString(List_1, List_2); assertEquals(expected, actual); }
@Test public void tcListStringCompare_3_3_DiffWert_2() { ArrayList<String> List_1 = new ArrayList<String>(); ArrayList<String> List_2 = new ArrayList<String>(); List_1.add("Wert_1"); List_2.add("Wert_1"); List_1.add("Wert_2"); List_2.add("Diff"); List_1.add("Wert_3"); List_2.add("Wert_3"); Boolean expected = false; Boolean actual; actual = OKW_Helper.compareListString(List_1, List_2); assertEquals(expected, actual); }