Esempio n. 1
0
  @Test
  public void testContains() {
    String[] strings = new String[] {"oh", "hello", "world"};

    Assert.assertFalse(StringUtil.contains(strings, "yes", true));
    Assert.assertTrue(StringUtil.contains(strings, "hello", true));
    Assert.assertTrue(StringUtil.contains(strings, "Hello", false));
    Assert.assertTrue(StringUtil.containSubstring(strings, "llo", true));
    System.out.println(
        String.format(
            "[CRAFT-ATOM-UTIL] (^_^)  <%s>  Case -> test contains. ", CaseCounter.incr(4)));
  }