@GwtIncompatible(value="JUnit4") public final class TruthJUnit extends Object
For example:
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 StandardSubjectBuilder |
assume()
Begins a call chain with the fluent Truth API.
|
public static final StandardSubjectBuilder assume()
AssumptionViolatedException
.Copyright © 2018. All rights reserved.