cascading.operation.assertion
Class BaseAssertion<C>
java.lang.Object
cascading.operation.BaseOperation<C>
cascading.operation.assertion.BaseAssertion<C>
- All Implemented Interfaces:
- DeclaresResults, Operation<C>, PlannedOperation<C>, Traceable, Serializable
- Direct Known Subclasses:
- AssertEquals, AssertEqualsAll, AssertGroupBase, AssertNotEquals, AssertNotNull, AssertNull, AssertSizeEquals, AssertSizeLessThan, AssertSizeMoreThan
public abstract class BaseAssertion<C>
- extends BaseOperation<C>
- implements PlannedOperation<C>
Class BaseAssertion is a convenience class for Assertion
implementations. Subclassing
this class is not required, but does provide some convenience functions for signaling assertion failures.
- See Also:
Assertion
,
GroupAssertion
,
ValueAssertion
,
Serialized Form
Fields inherited from interface cascading.operation.Operation |
ANY |
BaseAssertion
protected BaseAssertion()
BaseAssertion
@ConstructorProperties(value="message")
protected BaseAssertion(String message)
BaseAssertion
@ConstructorProperties(value="numArgs")
protected BaseAssertion(int numArgs)
BaseAssertion
@ConstructorProperties(value={"numArgs","message"})
protected BaseAssertion(int numArgs,
String message)
getMessage
public String getMessage()
supportsPlannerLevel
public boolean supportsPlannerLevel(PlannerLevel plannerLevel)
- Specified by:
supportsPlannerLevel
in interface PlannedOperation<C>
fail
protected void fail()
fail
protected void fail(Object... args)
throwFail
public static void throwFail(String message)
- Static method throwFail should be used to throw an
AssertionException
.
- Parameters:
message
- of type String, the message to be thrown
throwFail
public static void throwFail(String message,
Object... args)
- Static method throwFail should be used to throw an
AssertionException
.
- Parameters:
message
- of type String, the message to be thrown as a format stringargs
- of type Object[], the values to be passed into the message format string
equals
public boolean equals(Object object)
- Overrides:
equals
in class BaseOperation<C>
hashCode
public int hashCode()
- Overrides:
hashCode
in class BaseOperation<C>
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.