Package com.google.common.truth
Class Expect
- java.lang.Object
-
- com.google.common.truth.AbstractVerb<TestVerb>
-
- com.google.common.truth.TestVerb
-
- com.google.common.truth.Expect
-
- All Implemented Interfaces:
org.junit.rules.TestRule
@GwtIncompatible("JUnit4") public class Expect extends TestVerb implements org.junit.rules.TestRule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classExpect.ExpectationFailureprotected static classExpect.ExpectationGatherer-
Nested classes/interfaces inherited from class com.google.common.truth.AbstractVerb
AbstractVerb.DelegatedVerb<S extends Subject<S,T>,T>, AbstractVerb.MessagePrependingFailureStrategy
-
-
Field Summary
Fields Modifier and Type Field Description private Expect.ExpectationGatherergathererprivate booleaninRuleContext
-
Constructor Summary
Constructors Constructor Description Expect(Expect.ExpectationGatherer gatherer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description)static Expectcreate()protected FailureStrategygetFailureStrategy()-
Methods inherited from class com.google.common.truth.TestVerb
getFailureMessage, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, that, withFailureMessage
-
Methods inherited from class com.google.common.truth.AbstractVerb
about, fail, fail, in
-
-
-
-
Field Detail
-
gatherer
private final Expect.ExpectationGatherer gatherer
-
inRuleContext
private boolean inRuleContext
-
-
Constructor Detail
-
Expect
Expect(Expect.ExpectationGatherer gatherer)
-
-
Method Detail
-
create
public static Expect create()
-
getFailureStrategy
protected FailureStrategy getFailureStrategy()
- Overrides:
getFailureStrategyin classAbstractVerb<TestVerb>
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)- Specified by:
applyin interfaceorg.junit.rules.TestRule
-
-