Enum Mode

java.lang.Object
java.lang.Enum<Mode>
org.instancio.settings.Mode
All Implemented Interfaces:
Serializable, Comparable<Mode>, java.lang.constant.Constable

public enum Mode extends Enum<Mode>
The mode is used to specify strictness level, either STRICT or LENIENT, an idea borrowed from the Mockito library.

In strict mode, which is enabled by default, unused selectors will trigger the UnusedSelectorException. The error notifies the user of which selectors are redundant, with the goal of keeping tests clean and concise.

Strict mode can be disabled as follows:

Since:
1.3.3
See Also: