public static interface FailedOperationTransformationConfig.PathAddressConfig
ModelTestUtils.checkFailedTransformedBootOperations(ModelTestKernelServices, org.jboss.as.controller.ModelVersion, List, FailedOperationTransformationConfig)
for the mechanics of how it is used| Modifier and Type | Method and Description |
|---|---|
boolean |
canCorrectMore(org.jboss.dmr.ModelNode operation)
Whether something can be corrected in the operation to make it pass.
|
org.jboss.dmr.ModelNode |
correctOperation(org.jboss.dmr.ModelNode operation)
Correct the operation, only called if
canCorrectMore(ModelNode) returned true
It is preferable to correct one attribute at a time. |
org.jboss.dmr.ModelNode |
correctWriteAttributeOperation(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 operations
|
boolean |
expectDiscarded(org.jboss.dmr.ModelNode operation)
Whether the operation is expected to be discarded
|
boolean |
expectFailed(org.jboss.dmr.ModelNode operation)
Whether it is expected that the following operation should fail
|
boolean |
expectFailedWriteAttributeOperation(org.jboss.dmr.ModelNode operation)
Whether it is expected that the following write attribute operation should fail
|
default void |
operationDone(org.jboss.dmr.ModelNode operation)
Called by the framework when the operation has been all fixed up.
|
boolean expectFailed(org.jboss.dmr.ModelNode operation)
operation - the operation to checktrue if expected to failboolean canCorrectMore(org.jboss.dmr.ModelNode operation)
operation - the operation to checktrue if expected to fail, false otherwiseorg.jboss.dmr.ModelNode correctOperation(org.jboss.dmr.ModelNode operation)
canCorrectMore(ModelNode) returned true
It is preferable to correct one attribute at a time.operation - the operation to correctList<org.jboss.dmr.ModelNode> createWriteAttributeOperations(org.jboss.dmr.ModelNode operation)
boolean expectFailedWriteAttributeOperation(org.jboss.dmr.ModelNode operation)
operation - the 'add' operation to correcttrue if expected to failorg.jboss.dmr.ModelNode correctWriteAttributeOperation(org.jboss.dmr.ModelNode operation)
correctWriteAttributeOperation(ModelNode)
returned true, so make sure to do everything to correct the value attribute.operation - the 'write-attribute' operation to correctboolean expectDiscarded(org.jboss.dmr.ModelNode operation)
operation - the operation to checktrue if expected to faildefault void operationDone(org.jboss.dmr.ModelNode operation)
operation - the operationCopyright © 2020 JBoss by Red Hat. All rights reserved.