Package step.artefacts.handlers.asserts
Class AbstractOperatorHandler
java.lang.Object
step.artefacts.handlers.asserts.AbstractOperatorHandler
- All Implemented Interfaces:
AssertOperatorHandler
- Direct Known Subclasses:
BeginsWithOperatorHandler
,ContainsOperatorHandler
,EndsWithOperatorHandler
,EqualsOperatorHandler
,GreaterThanOperatorHandler
,GreaterThanOrEqualsOperatorHandler
,IsNullOperatorHandler
,LessThanOperatorHandler
,LessThanOrEqualsOperatorHandler
,MatchesOperatorHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
compareNumeric
(Object actual, Object expectedValue) protected Object
protected boolean
isAnyNumeric
(Object value) protected boolean
boolean
isExpectedValueSupported
(Object expectedValue) protected boolean
protected boolean
protected boolean
protected String
not
(boolean negate) protected Class<?>
resolveTargetClass
(Object actual, Object expectedValue) Resolve the target class to which both actual and expected values can be convertedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface step.artefacts.handlers.asserts.AssertOperatorHandler
apply, isActualValueSupported
-
Constructor Details
-
AbstractOperatorHandler
public AbstractOperatorHandler()
-
-
Method Details
-
isExpectedValueSupported
- Specified by:
isExpectedValueSupported
in interfaceAssertOperatorHandler
-
not
-
isNumber
-
isBoolean
-
isString
-
isNull
-
isAnyNumeric
-
compareNumeric
-
resolveTargetClass
Resolve the target class to which both actual and expected values can be converted -
convert
-