@GwtIncompatible("JUnit4") public class TruthJUnit extends Object
assume()
method.
eg:
import com.google.common.truth.Truth.assert_;
import com.google.common.truth.Truth.assume;
public void @Test testFoosAgainstBars {
assume().that(foo).isNotNull();
assume().that(bar).isNotNull();
assert_().that(foo.times(bar)).isEqualTo(blah);
}
Modifier and Type | Field | Description |
---|---|---|
static TestVerb |
ASSUME |
|
static FailureStrategy |
THROW_ASSUMPTION_ERROR |
@GwtIncompatible("JUnit4") public static final FailureStrategy THROW_ASSUMPTION_ERROR
@GwtIncompatible("JUnit4") public static final TestVerb ASSUME
@GwtIncompatible("JUnit4") public static final TestVerb assume()
Copyright © 2019. All rights reserved.