org.junit.internal.matchers
Class StringContains

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.junit.internal.matchers.TypeSafeMatcher<String>
          extended by org.junit.internal.matchers.SubstringMatcher
              extended by org.junit.internal.matchers.StringContains
All Implemented Interfaces:
Matcher<String>, SelfDescribing

public class StringContains
extends SubstringMatcher

Tests if the argument is a string that contains a substring.


Constructor Summary
StringContains(String substring)
           
 
Method Summary
static Matcher<String> containsString(String substring)
           
 
Methods inherited from class org.junit.internal.matchers.SubstringMatcher
describeTo, matchesSafely
 
Methods inherited from class org.junit.internal.matchers.TypeSafeMatcher
matches
 
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringContains

public StringContains(String substring)
Method Detail

containsString

public static Matcher<String> containsString(String substring)