Klasse StandardTest
java.lang.Object
ch.nolix.core.testing.standardtest.StandardTest
A test is a test that provides the fluent pattern for writing expectations.
- Version:
- 2016-09-01
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected final void
expect
(boolean value) Generates an error if the given value is false.protected final void
expect
(boolean value, boolean... values) Generates an error for all of the given values that are false.protected final ByteMediator
expect
(byte value) protected final DoubleMediator
expect
(double value) protected final LongMediator
expect
(int value) protected final LongMediator
expect
(long value) protected final DoubleMediator
protected final LongMediator
protected final <E> ContainerMediator
<E> protected final LongMediator
protected final StringMediator
protected final <V> ArgumentMediator
<V> expect
(V value) protected final void
expectNot
(boolean value) Generates an error if the given value is true.protected final void
expectNot
(boolean value, boolean... values) Generates an error for all of the given values that are true.protected final ClosureMediator
expectRunning
(Runnable closure) protected final MultiDoubleMediator
expectTheDoubles
(double... values) protected final MultiDoubleMediator
expectTheDoubles
(Iterable<Double> values) protected final MultiLongMediator
expectTheInts
(int value, int... values) protected final MultiLongMediator
expectTheLongs
(long value, long... values) protected final MultiLongMediator
expectTheLongs
(Iterable<Long> values)
-
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
- Parameter:
value
-- Gibt zurück:
- a new
ByteMediator
for the given value.
-
expect
- Parameter:
value
-- Gibt zurück:
- a new double mediator that belongs to this test and is for the given value.
-
expect
- Parameter:
value
-- Gibt zurück:
- a new double mediator that belongs to this test and is for the given value.
-
expect
- Parameter:
value
-- Gibt zurück:
- a new long mediator that belongs to this test and is for the given value.
-
expect
- Parameter:
value
-- Gibt zurück:
- a new long mediator that belongs to this test and is for the given value.
-
expect
- 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
- Parameter:
value
-- Gibt zurück:
- a new long mediator that belongs to this test and is for the given value.
-
expect
- Parameter:
value
-- Gibt zurück:
- a new long mediator that belongs to this test and is for the given value.
-
expect
- 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
- 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
- Parameter:
closure
-- Gibt zurück:
- a new closure mediator that belongs for the given closure.
-
expectTheDoubles
- Parameter:
values
-- Gibt zurück:
- a new multi double mediator that belongs to this test and is for the given values.
-
expectTheDoubles
- Parameter:
values
-- Gibt zurück:
- a new multi double mediator that belongs to this test and is for the given values.
-
expectTheInts
- Parameter:
value
-values
-- Gibt zurück:
- a new multi long mediator that belongs to this test and is for the given values.
-
expectTheLongs
- Parameter:
values
-- Gibt zurück:
- a new long container mediator that belongs to this test and has the given values.
-
expectTheLongs
- Parameter:
value
-values
-- Gibt zurück:
- a new long container mediator that belongs to this test and has the given values.
-