// Fail after the commit or rollback was called
throw new IllegalStateException();
}
};
final ModelNode result = new ModelNode();
final RemoteProxyController proxyController = setupProxyHandlers(controller);
final CommitProxyOperationControl commitControl = new CommitProxyOperationControl() {
@Override
public void operationCompleted(ModelNode response) {
super.operationCompleted(response);
result.set(response);
}
};
proxyController.execute(node, null, commitControl, null);
commitControl.tx.commit();
// Needs to call operation-completed
Assert.assertEquals(2, commitControl.txCompletionStatus.get());
Assert.assertTrue(result.isDefined());
Assert.assertEquals("failed", result.get("outcome").asString());