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