public class

StringContains

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

Class Overview

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

Summary

[Expand]
Inherited Fields
From class org.junit.internal.matchers.SubstringMatcher
Public Constructors
StringContains(String substring)
Public Methods
static Matcher<String> containsString(String substring)
Protected Methods
boolean evalSubstringOf(String s)
String relationship()
[Expand]
Inherited Methods
From class org.junit.internal.matchers.SubstringMatcher
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

Public Constructors

public StringContains (String substring)

Public Methods

public static Matcher<String> containsString (String substring)

Protected Methods

protected boolean evalSubstringOf (String s)

protected String relationship ()