Class OptionalMethodSupport
java.lang.Object
org.soliscode.test.OptionalMethodSupport
- All Implemented Interfaces:
SupportedMethods
- Direct Known Subclasses:
AbstractBreakable
,AbstractTest
A utility class that provides an implementation for the
SupportedMethods
interface.- Since:
- 1.0
- Author:
- evanbergstrom
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
OptionalMethodSupport
(@NotNull OptionalMethodSupport other) -
Method Summary
Modifier and TypeMethodDescriptionvoid
doesNotSupportMethod
(@NotNull OptionalMethod method) Specifies that the class does not support the method passed as an argument.boolean
supportsMethod
(@NotNull OptionalMethod method) Used to determine if this object supports an optional method.protected @NotNull Collection
<OptionalMethod> Returns a collection if the methods that are not supported by the class being tested.
-
Constructor Details
-
OptionalMethodSupport
protected OptionalMethodSupport() -
OptionalMethodSupport
-
-
Method Details
-
supportsMethod
Description copied from interface:SupportedMethods
Used to determine if this object supports an optional method.- Specified by:
supportsMethod
in interfaceSupportedMethods
- Parameters:
method
- The identifier for the method.- Returns:
- 'true' if the method is supported.
false
if it is not.
-
doesNotSupportMethod
Specifies that the class does not support the method passed as an argument.- Parameters:
method
- the method that is not supported.
-
unsupportedMethods
Returns a collection if the methods that are not supported by the class being tested.- Returns:
- a collection of unsupported methods.
-