1 | package fr.sii.ogham.testing.assertion.util; | |
2 | ||
3 | /** | |
4 | * The aim of this registry is to fail fast (do not try all assertions if the | |
5 | * first one is KO). | |
6 | * | |
7 | * It doesn't register the functions but immediately execute them. | |
8 | * | |
9 | * @author Aurélien Baudet | |
10 | * | |
11 | */ | |
12 | public class FailImmediatelyRegistry implements AssertionRegistry { | |
13 | public <E extends Exception> void register(Executable<E> executable) throws E { | |
14 |
4
1. register : removed call to fr/sii/ogham/testing/assertion/util/Executable::run → SURVIVED 2. register : removed call to fr/sii/ogham/testing/assertion/util/Executable::run → NO_COVERAGE 3. register : removed call to fr/sii/ogham/testing/assertion/util/Executable::run → TIMED_OUT 4. register : removed call to fr/sii/ogham/testing/assertion/util/Executable::run → KILLED |
executable.run(); |
15 | } | |
16 | ||
17 | public void execute() { | |
18 | // nothing to do | |
19 | } | |
20 | } | |
Mutations | ||
14 |
1.1 2.2 3.3 4.4 |