Interface CNumberVerifier<N extends java.lang.Number & java.lang.Comparable<N>>
-
- All Superinterfaces:
CBaseState<N>
,CBaseVerifier<N>
,CBaseWaiter<N>
,CObjectVerifier<N,CNumberState<N>>
,java.io.Serializable
- All Known Subinterfaces:
CNumberWaitVerifier<N>
- All Known Implementing Classes:
CDynamicNumberExtension
,CStaticNumberExtension
public interface CNumberVerifier<N extends java.lang.Number & java.lang.Comparable<N>> extends CObjectVerifier<N,CNumberState<N>>
CBooleanVerifier is an interface for Boolean verification related methods.
We need this interface to have possibility of adding verification to any exists objects with the minimum change in the code. In the meantime adding verification method in one place can be extend cross all other objects:
Please Note that we should extend manually
CNumberVerification
for each new added verification here
-
-
Field Summary
-
Fields inherited from interface org.catools.common.extensions.states.interfaces.CBaseState
serialVersionUID
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default CNumberState<N>
_toState(java.lang.Object e)
default void
verifyBetweenExclusive(CVerificationQueue verificationQueue, N lowerBound, N higherBound)
Verify that actual value is between lower and higher bound values (exclusive).default void
verifyBetweenExclusive(CVerificationQueue verificationQueue, N lowerBound, N higherBound, java.lang.String message, java.lang.Object... params)
Verify that actual value is between lower and higher bound values (exclusive).default void
verifyBetweenInclusive(CVerificationQueue verificationQueue, N lowerBound, N higherBound)
Verify that actual value is between lower and higher bound values (Inclusive).default void
verifyBetweenInclusive(CVerificationQueue verificationQueue, N lowerBound, N higherBound, java.lang.String message, java.lang.Object... params)
Verify that actual value is between lower and higher bound values (Inclusive).default void
verifyEqualsP(CVerificationQueue verificationQueue, N expected, N precision)
Verify that actual and expected have the exact same value or their difference is less than precision value.default void
verifyEqualsP(CVerificationQueue verificationQueue, N expected, N precision, java.lang.String message, java.lang.Object... params)
Verify that actual and expected have the exact same value or their difference is less than precision value.default void
verifyGreater(CVerificationQueue verificationQueue, N expected)
Verify that actual has value greater than expected.default void
verifyGreater(CVerificationQueue verificationQueue, N expected, java.lang.String message, java.lang.Object... params)
Verify that actual has value greater than expected.default void
verifyGreaterOrEqual(CVerificationQueue verificationQueue, N expected)
Verify that actual has value greater or equal to expected.default void
verifyGreaterOrEqual(CVerificationQueue verificationQueue, N expected, java.lang.String message, java.lang.Object... params)
Verify that actual has value greater or equal to expected.default void
verifyLess(CVerificationQueue verificationQueue, N expected)
Verify that actual has value less than expected.default void
verifyLess(CVerificationQueue verificationQueue, N expected, java.lang.String message, java.lang.Object... params)
Verify that actual has value less than expected.default void
verifyLessOrEqual(CVerificationQueue verificationQueue, N expected)
Verify that actual has value less or equal than expected.default void
verifyLessOrEqual(CVerificationQueue verificationQueue, N expected, java.lang.String message, java.lang.Object... params)
Verify that actual has value less or equal than expected.default void
verifyNotBetweenExclusive(CVerificationQueue verificationQueue, N lowerBound, N higherBound)
Verify that actual value is NOT between lower and higher bound values (Exclusive).default void
verifyNotBetweenExclusive(CVerificationQueue verificationQueue, N lowerBound, N higherBound, java.lang.String message, java.lang.Object... params)
Verify that actual value is NOT between lower and higher bound values (Exclusive).default void
verifyNotBetweenInclusive(CVerificationQueue verificationQueue, N lowerBound, N higherBound)
Verify that actual value is NOT between lower and higher bound values (Inclusive).default void
verifyNotBetweenInclusive(CVerificationQueue verificationQueue, N lowerBound, N higherBound, java.lang.String message, java.lang.Object... params)
Verify that actual value is NOT between lower and higher bound values (Inclusive).default void
verifyNotEqualsP(CVerificationQueue verificationQueue, N expected, N precision)
Verify that actual and expected have different value greater than precision value.default void
verifyNotEqualsP(CVerificationQueue verificationQueue, N expected, N precision, java.lang.String message, java.lang.Object... params)
Verify that actual and expected have different value greater than precision value.-
Methods inherited from interface org.catools.common.extensions.states.interfaces.CBaseState
getBaseValue
-
Methods inherited from interface org.catools.common.extensions.verify.interfaces.CBaseVerifier
_useWaiter, _verify, _verify, _verify, _verify, _verify, _verify, _verify, _verify, _verify, getDefaultMessage, getDefaultMessage, getVerifyMessagePrefix
-
Methods inherited from interface org.catools.common.extensions.wait.interfaces.CBaseWaiter
getDefaultWaitInSeconds, getDefaultWaitIntervalInMilliSeconds
-
Methods inherited from interface org.catools.common.extensions.verify.interfaces.CObjectVerifier
verifyEquals, verifyEquals, verifyEqualsAny, verifyEqualsAny, verifyEqualsNone, verifyEqualsNone, verifyIsNotNull, verifyIsNotNull, verifyIsNull, verifyIsNull, verifyNotEquals, verifyNotEquals
-
-
-
-
Method Detail
-
_toState
default CNumberState<N> _toState(java.lang.Object e)
- Specified by:
_toState
in interfaceCObjectVerifier<N extends java.lang.Number & java.lang.Comparable<N>,CNumberState<N extends java.lang.Number & java.lang.Comparable<N>>>
-
verifyBetweenExclusive
default void verifyBetweenExclusive(CVerificationQueue verificationQueue, N lowerBound, N higherBound)
Verify that actual value is between lower and higher bound values (exclusive).- Parameters:
verificationQueue
- verification _verify builder for verificationlowerBound
- lower bound inclusivehigherBound
- higher bound inclusive
-
verifyBetweenExclusive
default void verifyBetweenExclusive(CVerificationQueue verificationQueue, N lowerBound, N higherBound, java.lang.String message, java.lang.Object... params)
Verify that actual value is between lower and higher bound values (exclusive).- Parameters:
verificationQueue
- verification _verify builder for verificationlowerBound
- lower bound inclusivehigherBound
- higher bound inclusivemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyBetweenInclusive
default void verifyBetweenInclusive(CVerificationQueue verificationQueue, N lowerBound, N higherBound)
Verify that actual value is between lower and higher bound values (Inclusive).- Parameters:
verificationQueue
- verification _verify builder for verificationlowerBound
- lower bound inclusivehigherBound
- higher bound inclusive
-
verifyBetweenInclusive
default void verifyBetweenInclusive(CVerificationQueue verificationQueue, N lowerBound, N higherBound, java.lang.String message, java.lang.Object... params)
Verify that actual value is between lower and higher bound values (Inclusive).- Parameters:
verificationQueue
- verification _verify builder for verificationlowerBound
- lower bound inclusivehigherBound
- higher bound inclusivemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyEqualsP
default void verifyEqualsP(CVerificationQueue verificationQueue, N expected, N precision)
Verify that actual and expected have the exact same value or their difference is less than precision value.Please note that verification consider as passe if both value is null
- Parameters:
verificationQueue
- verification _verify builder for verificationexpected
- value to compareprecision
- the acceptable precision
-
verifyEqualsP
default void verifyEqualsP(CVerificationQueue verificationQueue, N expected, N precision, java.lang.String message, java.lang.Object... params)
Verify that actual and expected have the exact same value or their difference is less than precision value.Please note that verification consider as passe if both value is null
- Parameters:
verificationQueue
- verification _verify builder for verificationexpected
- value to compareprecision
- the acceptable precisionmessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyGreater
default void verifyGreater(CVerificationQueue verificationQueue, N expected)
Verify that actual has value greater than expected.- Parameters:
verificationQueue
- verification _verify builder for verificationexpected
- value to compare
-
verifyGreater
default void verifyGreater(CVerificationQueue verificationQueue, N expected, java.lang.String message, java.lang.Object... params)
Verify that actual has value greater than expected.- Parameters:
verificationQueue
- verification _verify builder for verificationexpected
- value to comparemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyGreaterOrEqual
default void verifyGreaterOrEqual(CVerificationQueue verificationQueue, N expected)
Verify that actual has value greater or equal to expected.- Parameters:
verificationQueue
- verification _verify builder for verificationexpected
- value to compare
-
verifyGreaterOrEqual
default void verifyGreaterOrEqual(CVerificationQueue verificationQueue, N expected, java.lang.String message, java.lang.Object... params)
Verify that actual has value greater or equal to expected.- Parameters:
verificationQueue
- verification _verify builder for verificationexpected
- value to comparemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyLess
default void verifyLess(CVerificationQueue verificationQueue, N expected)
Verify that actual has value less than expected.- Parameters:
verificationQueue
- verification _verify builder for verificationexpected
- value to compare
-
verifyLess
default void verifyLess(CVerificationQueue verificationQueue, N expected, java.lang.String message, java.lang.Object... params)
Verify that actual has value less than expected.- Parameters:
verificationQueue
- verification _verify builder for verificationexpected
- value to comparemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyLessOrEqual
default void verifyLessOrEqual(CVerificationQueue verificationQueue, N expected)
Verify that actual has value less or equal than expected.- Parameters:
verificationQueue
- verification _verify builder for verificationexpected
- value to compare
-
verifyLessOrEqual
default void verifyLessOrEqual(CVerificationQueue verificationQueue, N expected, java.lang.String message, java.lang.Object... params)
Verify that actual has value less or equal than expected.- Parameters:
verificationQueue
- verification _verify builder for verificationexpected
- value to comparemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyNotBetweenExclusive
default void verifyNotBetweenExclusive(CVerificationQueue verificationQueue, N lowerBound, N higherBound)
Verify that actual value is NOT between lower and higher bound values (Exclusive).- Parameters:
verificationQueue
- verification _verify builder for verificationlowerBound
- lower bound inclusivehigherBound
- higher bound inclusive
-
verifyNotBetweenExclusive
default void verifyNotBetweenExclusive(CVerificationQueue verificationQueue, N lowerBound, N higherBound, java.lang.String message, java.lang.Object... params)
Verify that actual value is NOT between lower and higher bound values (Exclusive).- Parameters:
verificationQueue
- verification _verify builder for verificationlowerBound
- lower bound inclusivehigherBound
- higher bound inclusivemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyNotBetweenInclusive
default void verifyNotBetweenInclusive(CVerificationQueue verificationQueue, N lowerBound, N higherBound)
Verify that actual value is NOT between lower and higher bound values (Inclusive).- Parameters:
verificationQueue
- verification _verify builder for verificationlowerBound
- lower bound inclusivehigherBound
- higher bound inclusive
-
verifyNotBetweenInclusive
default void verifyNotBetweenInclusive(CVerificationQueue verificationQueue, N lowerBound, N higherBound, java.lang.String message, java.lang.Object... params)
Verify that actual value is NOT between lower and higher bound values (Inclusive).- Parameters:
verificationQueue
- verification _verify builder for verificationlowerBound
- lower bound inclusivehigherBound
- higher bound inclusivemessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
verifyNotEqualsP
default void verifyNotEqualsP(CVerificationQueue verificationQueue, N expected, N precision)
Verify that actual and expected have different value greater than precision value.Please note that verification consider as passe if one value is null
- Parameters:
verificationQueue
- verification _verify builder for verificationexpected
- value to compareprecision
- the acceptable precision
-
verifyNotEqualsP
default void verifyNotEqualsP(CVerificationQueue verificationQueue, N expected, N precision, java.lang.String message, java.lang.Object... params)
Verify that actual and expected have different value greater than precision value.Please note that verification consider as passe if one value is null
- Parameters:
verificationQueue
- verification _verify builder for verificationexpected
- value to compareprecision
- the acceptable precisionmessage
- information about the propose of this verificationparams
- parameters in case if message is a formatString.format(java.lang.String, java.lang.Object...)
-
-