Klasse StandardTest

java.lang.Object
ch.nolix.core.testing.standardtest.StandardTest

public abstract class StandardTest extends Object
A test is a test that provides the fluent pattern for writing expectations.
Version:
2016-09-01
Autor:
Silvan Wyss
  • Konstruktordetails

    • StandardTest

      public StandardTest()
  • Methodendetails

    • expect

      protected final void expect(boolean value)
      Generates an error if the given value is false.
      Parameter:
      value -
    • expect

      protected final void expect(boolean value, boolean... values)
      Generates an error for all of the given values that are false.
      Parameter:
      value -
      values -
    • expect

      protected final ByteMediator expect(byte value)
      Parameter:
      value -
      Gibt zurück:
      a new ByteMediator for the given value.
    • expect

      protected final DoubleMediator expect(double value)
      Parameter:
      value -
      Gibt zurück:
      a new double mediator that belongs to this test and is for the given value.
    • expect

      protected final DoubleMediator expect(Double value)
      Parameter:
      value -
      Gibt zurück:
      a new double mediator that belongs to this test and is for the given value.
    • expect

      protected final LongMediator expect(int value)
      Parameter:
      value -
      Gibt zurück:
      a new long mediator that belongs to this test and is for the given value.
    • expect

      protected final LongMediator expect(Integer value)
      Parameter:
      value -
      Gibt zurück:
      a new long mediator that belongs to this test and is for the given value.
    • expect

      protected final <E> ContainerMediator<E> expect(Iterable<E> container)
      Typparameter:
      E - is the type of the elements of the given container.
      Parameter:
      container -
      Gibt zurück:
      a new container mediator that belongs to this test and is for the given container.
    • expect

      protected final LongMediator expect(long value)
      Parameter:
      value -
      Gibt zurück:
      a new long mediator that belongs to this test and is for the given value.
    • expect

      protected final LongMediator expect(Long value)
      Parameter:
      value -
      Gibt zurück:
      a new long mediator that belongs to this test and is for the given value.
    • expect

      protected final <V> ArgumentMediator<V> expect(V value)
      Typparameter:
      V - is the type of the given value.
      Parameter:
      value -
      Gibt zurück:
      a new object mediator that belongs to this test and has the given value.
    • expect

      protected final StringMediator expect(String value)
      Parameter:
      value -
      Gibt zurück:
      a new string mediator that belongs to this nolix test and has the given value.
    • expectNot

      protected final void expectNot(boolean value)
      Generates an error if the given value is true.
      Parameter:
      value -
    • expectNot

      protected final void expectNot(boolean value, boolean... values)
      Generates an error for all of the given values that are true.
      Parameter:
      value -
      values -
    • expectRunning

      protected final ClosureMediator expectRunning(Runnable closure)
      Parameter:
      closure -
      Gibt zurück:
      a new closure mediator that belongs for the given closure.
    • expectTheDoubles

      protected final MultiDoubleMediator expectTheDoubles(double... values)
      Parameter:
      values -
      Gibt zurück:
      a new multi double mediator that belongs to this test and is for the given values.
    • expectTheDoubles

      protected final MultiDoubleMediator expectTheDoubles(Iterable<Double> values)
      Parameter:
      values -
      Gibt zurück:
      a new multi double mediator that belongs to this test and is for the given values.
    • expectTheInts

      protected final MultiLongMediator expectTheInts(int value, int... values)
      Parameter:
      value -
      values -
      Gibt zurück:
      a new multi long mediator that belongs to this test and is for the given values.
    • expectTheLongs

      protected final MultiLongMediator expectTheLongs(Iterable<Long> values)
      Parameter:
      values -
      Gibt zurück:
      a new long container mediator that belongs to this test and has the given values.
    • expectTheLongs

      protected final MultiLongMediator expectTheLongs(long value, long... values)
      Parameter:
      value -
      values -
      Gibt zurück:
      a new long container mediator that belongs to this test and has the given values.