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)
           
protected  String getDisplaySubject()
           
 void is(Object expected)
           
 void isEqualTo(Object expected)
           
 void isNull()
           
 void startsWith(String string)
           
 
Methods inherited from class org.truth0.subjects.Subject
check, equals, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getSubject, hashCode, isNotEqualTo, isNotNull
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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

getDisplaySubject

protected String getDisplaySubject()
Overrides:
getDisplaySubject in class Subject<StringSubject,String>

is

public void is(Object expected)
Overrides:
is in class Subject<StringSubject,String>

isEqualTo

public void isEqualTo(Object expected)
Overrides:
isEqualTo in class Subject<StringSubject,String>

isNull

public void isNull()
Overrides:
isNull in class Subject<StringSubject,String>

contains

public void contains(String string)

startsWith

public void startsWith(String string)

endsWith

public void endsWith(String string)


Copyright © 2014. All rights reserved.