org.testinfected.hamcrest.core
Class StringMatchers

java.lang.Object
  extended by org.testinfected.hamcrest.core.StringMatchers

public class StringMatchers
extends java.lang.Object

A collection of matchers for Strings.


Constructor Summary
StringMatchers()
           
 
Method Summary
static org.hamcrest.Matcher<java.lang.String> being(java.lang.Object expected)
          Checks that a string is equal to the string representation of an expected value.
static org.hamcrest.Matcher<java.lang.String> isBlank()
          Checks that a string is empty or contains only blank characters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringMatchers

public StringMatchers()
Method Detail

isBlank

public static org.hamcrest.Matcher<java.lang.String> isBlank()
Checks that a string is empty or contains only blank characters.


being

public static org.hamcrest.Matcher<java.lang.String> being(java.lang.Object expected)
Checks that a string is equal to the string representation of an expected value.

Parameters:
expected - the object to compare against.