In JDBC Provisioning Rules, it is common to add errors / warnings to the provisioning result.
result.setStatus(ProvisioningResult.STATUS_FAILED);
result.addError("Enable not implemented");
Then in the test case it would be ideal to check for the added message.
The RDK doesn't have any way on the ProvisioningResult to get errors or warnings.
I would like to be able to get errors and warnings, then look through the list of Messages for the one added.
assertNotNull(result);
assertEquals("failed", result.getStatus());
assertEquals("Enable not implemented", result.getErrors()[0].getMessage()); // <- guessing, and a bit ugly
I compared what the IIQ Java Doc has and came up with the methods in the title. I understand ISC may be different.
In JDBC Provisioning Rules, it is common to add errors / warnings to the provisioning result.
Then in the test case it would be ideal to check for the added message.
The RDK doesn't have any way on the ProvisioningResult to get errors or warnings.
I would like to be able to get errors and warnings, then look through the list of Messages for the one added.
I compared what the IIQ Java Doc has and came up with the methods in the title. I understand ISC may be different.