org.junit.contrib.truth.subjects
Class StringSubject

java.lang.Object
  extended by org.junit.contrib.truth.subjects.Subject<StringSubject,String>
      extended by org.junit.contrib.truth.subjects.StringSubject

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

Propositions for String subjects

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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.junit.contrib.truth.subjects.Subject
Subject.And<C>
 
Constructor Summary
StringSubject(FailureStrategy failureStrategy, String string)
           
 
Method Summary
 Subject.And<StringSubject> contains(String string)
           
 Subject.And<StringSubject> endsWith(String string)
           
 Subject.And<StringSubject> startsWith(String string)
           
 
Methods inherited from class org.junit.contrib.truth.subjects.Subject
check, fail, failWithoutSubject, getSubject, is, isA, isEqualTo, isNotA, isNotEqualTo, isNotNull, isNull, nextChain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringSubject

public StringSubject(FailureStrategy failureStrategy,
                     String string)
Method Detail

contains

public Subject.And<StringSubject> contains(String string)

startsWith

public Subject.And<StringSubject> startsWith(String string)

endsWith

public Subject.And<StringSubject> endsWith(String string)


Copyright © 2014. All Rights Reserved.