Package org.jboss.as.model.test
Interface FailedOperationTransformationConfig.PathAddressConfig
-
- All Known Implementing Classes:
FailedOperationTransformationConfig.AttributesPathAddressConfig,FailedOperationTransformationConfig.ChainedConfig,FailedOperationTransformationConfig.NewAttributesConfig,FailedOperationTransformationConfig.RejectExpressionsConfig
- Enclosing class:
- FailedOperationTransformationConfig
public static interface FailedOperationTransformationConfig.PathAddressConfigConfiguration of how to deal with rejected operations transformations for a PathAddress. SeeModelTestUtils.checkFailedTransformedBootOperations(ModelTestKernelServices, org.jboss.as.controller.ModelVersion, List, FailedOperationTransformationConfig)for the mechanics of how it is used
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleancanCorrectMore(org.jboss.dmr.ModelNode operation)Whether something can be corrected in the operation to make it pass.org.jboss.dmr.ModelNodecorrectOperation(org.jboss.dmr.ModelNode operation)Correct the operation, only called ifcanCorrectMore(ModelNode)returnedtrueIt is preferable to correct one attribute at a time.org.jboss.dmr.ModelNodecorrectWriteAttributeOperation(org.jboss.dmr.ModelNode operation)Correct the operation.List<org.jboss.dmr.ModelNode>createWriteAttributeOperations(org.jboss.dmr.ModelNode operation)Creates write attribute operations for the add operationsbooleanexpectDiscarded(org.jboss.dmr.ModelNode operation)Whether the operation is expected to be discardedbooleanexpectFailed(org.jboss.dmr.ModelNode operation)Whether it is expected that the following operation should failbooleanexpectFailedWriteAttributeOperation(org.jboss.dmr.ModelNode operation)Whether it is expected that the following write attribute operation should faildefault voidoperationDone(org.jboss.dmr.ModelNode operation)Called by the framework when the operation has been all fixed up.
-
-
-
Method Detail
-
expectFailed
boolean expectFailed(org.jboss.dmr.ModelNode operation)
Whether it is expected that the following operation should fail- Parameters:
operation- the operation to check- Returns:
trueif expected to fail
-
canCorrectMore
boolean canCorrectMore(org.jboss.dmr.ModelNode operation)
Whether something can be corrected in the operation to make it pass. It is preferable to correct one attribute at a time.- Parameters:
operation- the operation to check- Returns:
trueif expected to fail,falseotherwise
-
correctOperation
org.jboss.dmr.ModelNode correctOperation(org.jboss.dmr.ModelNode operation)
Correct the operation, only called ifcanCorrectMore(ModelNode)returnedtrueIt is preferable to correct one attribute at a time.- Parameters:
operation- the operation to correct- Returns:
- the corrected operation
-
createWriteAttributeOperations
List<org.jboss.dmr.ModelNode> createWriteAttributeOperations(org.jboss.dmr.ModelNode operation)
Creates write attribute operations for the add operations
-
expectFailedWriteAttributeOperation
boolean expectFailedWriteAttributeOperation(org.jboss.dmr.ModelNode operation)
Whether it is expected that the following write attribute operation should fail- Parameters:
operation- the 'add' operation to correct- Returns:
trueif expected to fail
-
correctWriteAttributeOperation
org.jboss.dmr.ModelNode correctWriteAttributeOperation(org.jboss.dmr.ModelNode operation)
Correct the operation. This only deals with one attribute, and the framework will only call this once if it failed andcorrectWriteAttributeOperation(ModelNode)returnedtrue, so make sure to do everything to correct thevalueattribute.- Parameters:
operation- the 'write-attribute' operation to correct- Returns:
- the corrected operation
-
expectDiscarded
boolean expectDiscarded(org.jboss.dmr.ModelNode operation)
Whether the operation is expected to be discarded- Parameters:
operation- the operation to check- Returns:
trueif expected to fail
-
operationDone
default void operationDone(org.jboss.dmr.ModelNode operation)
Called by the framework when the operation has been all fixed up.- Parameters:
operation- the operation
-
-