org.truth0.subjects
Class StringSubject

java.lang.Object
  extended by org.truth0.subjects.Subject<StringSubject,String>
      extended by org.truth0.subjects.StringSubject

@GwtCompatible
public class StringSubject
extends Subject<StringSubject,String>

Propositions for String subjects

Author:
David Saff, Christian Gruber (cgruber@israfil.net)

Field Summary
static SubjectFactory<StringSubject,String> STRING
           
 
Fields inherited from class org.truth0.subjects.Subject
failureStrategy
 
Constructor Summary
StringSubject(FailureStrategy failureStrategy, String string)
           
 
Method Summary
 void contains(String string)
           
 void endsWith(String string)
           
 void startsWith(String string)
           
 
Methods inherited from class org.truth0.subjects.Subject
check, fail, failWithBadResults, failWithoutSubject, getSubject, is, isEqualTo, isNotEqualTo, isNotNull, isNull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRING

public static final SubjectFactory<StringSubject,String> STRING
Constructor Detail

StringSubject

public StringSubject(FailureStrategy failureStrategy,
                     String string)
Method Detail

contains

public void contains(String string)

startsWith

public void startsWith(String string)

endsWith

public void endsWith(String string)


Copyright © 2013. All Rights Reserved.