public abstract class

SubstringMatcher

extends TypeSafeMatcher<T>
java.lang.Object
   ↳ org.hamcrest.BaseMatcher<T>
     ↳ org.junit.internal.matchers.TypeSafeMatcher<T>
       ↳ org.junit.internal.matchers.SubstringMatcher
Known Direct Subclasses

Summary

Fields
protected final String substring
Protected Constructors
SubstringMatcher(String substring)
Public Methods
void describeTo(Description description)
boolean matchesSafely(String item)
Subclasses should implement this.
Protected Methods
abstract boolean evalSubstringOf(String string)
abstract String relationship()
[Expand]
Inherited Methods
From class org.junit.internal.matchers.TypeSafeMatcher
From class org.hamcrest.BaseMatcher
From class java.lang.Object
From interface org.hamcrest.Matcher
From interface org.hamcrest.SelfDescribing

Fields

protected final String substring

Protected Constructors

protected SubstringMatcher (String substring)

Public Methods

public void describeTo (Description description)

public boolean matchesSafely (String item)

Subclasses should implement this. The item will already have been checked for the specific type and will never be null.

Protected Methods

protected abstract boolean evalSubstringOf (String string)

protected abstract String relationship ()