Package com.exedio.cope.util
Annotation Type Properties.Probe
-
@Target(METHOD) @Retention(RUNTIME) public static @interface Properties.Probe
Declares a method to be a probe. Probes are returned byProperties.getProbes()
. Probe methods must not be static and must have no parameters.A probe may throw a
ProbeAbortedException
to indicate, that this probe has been aborted because one of its preconditions is not fulfilled. This may happen, if the probe depends on something that does not exist in this properties instance.
-
-
Element Detail
-
name
String name
Specifies the name of the test. Defaults to the name of the method, stripped of prefix "probe" if present. Names must be unique within a class.- Default:
- ""
-
-