@Test public void testTrimQuotes() { String text = "t"; for (int i = 0; i < OPTIONS.length; i++) { for (int j = 0; j < OPTIONS.length; j++) { String target = OPTIONS[i] + text + OPTIONS[j]; System.out.println(target); assertTrue(StringUtil.trimQuotes(target).equals(text)); } } }
public void testTrimForStringLength0to1() { for (String charq : OPTIONS) { assertTrue("".equals(StringUtil.trimQuotes(charq))); } }