{
TransactionResultsType results = tr.getTransactionResults();
assertEquals(2, results.getAction().size());
{
ActionType action1 = (ActionType) results.getAction().get(0);
assertEquals("locator.1", action1.getLocator());
assertNull(action1.getCode());
assertEquals("success", action1.getMessage());
}
{
ActionType action2 = (ActionType) results.getAction().get(1);
assertEquals("locator.2", action2.getLocator());
assertEquals("errorCode", action2.getCode());
assertEquals("failure", action2.getMessage());
}
}
{
InsertResultsType insertResults = tr.getInsertResults();
assertEquals(2, insertResults.getFeature().size());