Class TruthJUnit

  • @GwtIncompatible("JUnit4")
    public final class TruthJUnit
    extends java.lang.Object
    Provides a way to use Truth to perform JUnit "assumptions." An assumption is a check that, if false, aborts (skips) the test. This is especially useful in JUnit theories, parameterized tests, or other combinatorial tests where some subset of the combinations are simply not applicable for testing.

    For example:

     import static;
     import static;
     public void @Test testFoosAgainstBars {
    David Saff, Christian Gruber (
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static StandardSubjectBuilder assume()
      Begins a call chain with the fluent Truth API.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait