@GwtIncompatible(value="JUnit4") public class TruthJUnit extends Object
assume()
method.
eg:
import static com.google.common.truth.Truth.assertThat;
import static com.google.common.truth.TruthJUnit.assume;
public void @Test testFoosAgainstBars {
assume().that(foo).isNotNull();
assume().that(bar).isNotNull();
assertThat(foo.times(bar)).isEqualTo(blah);
}
Modifier and Type | Method and Description |
---|---|
static TestVerb |
assume() |
static FailureStrategy |
throwAssumptionError() |
@GwtIncompatible(value="JUnit4") public static final FailureStrategy throwAssumptionError()
@GwtIncompatible(value="JUnit4") public static final TestVerb assume()
Copyright © 2015. All Rights Reserved.