OKW_Helper { public static String removeBeginEndQuotations( String fps_StringinQuotations ) { String lvsReturn = fps_StringinQuotations.replaceAll("^\"|\"$", ""); return lvsReturn; }  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 tcRemoveBeginEndQuotations() { assertEquals("", OKW_Helper.removeBeginEndQuotations("\"\"")); assertEquals("A", OKW_Helper.removeBeginEndQuotations("\"A\"")); assertEquals("ABC", OKW_Helper.removeBeginEndQuotations("\"ABC\"")); }
@Test public void tcRemoveBeginEndQuotations_TestMethod2() { assertEquals("\"", OKW_Helper.removeBeginEndQuotations("\"\"\"")); assertEquals("A\"", OKW_Helper.removeBeginEndQuotations("\"A\"\"")); }
@Test public void tcRemoveBeginEndQuotations_TestMethod3() { assertEquals("Fuchs \"liebt\" Hase", OKW_Helper.removeBeginEndQuotations("Fuchs \"liebt\" Hase")); assertEquals("Fuchs \"liebt\" Hase", OKW_Helper.removeBeginEndQuotations("\"Fuchs \"liebt\" Hase\"")); }