StringContains extends SimpleQuery<O, A> { public StringContains(Attribute<O, A> attribute, A value) { super(attribute); this.value = checkQueryValueNotNull(value); } StringContains(Attribute<O, A> attribute, A value); A getValue(); @Override boolean equals(Object o); @Override String toString();  }
@Test public void testStringContains() { assertTrue(StringContains.containsFragment("THIS IS A TEST", "THIS")); assertTrue(StringContains.containsFragment("THIS IS A TEST", "TEST")); assertTrue(StringContains.containsFragment("THIS IS A TEST", "IS A")); assertFalse(StringContains.containsFragment("THIS IS A TEST", "FOO")); assertTrue(StringContains.containsFragment("THIS IS A TEST", "")); assertTrue(StringContains.containsFragment("", "")); assertFalse(StringContains.containsFragment("", "TEST")); }