mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-19 05:30:43 +00:00
Convert QRecord errors and warnings to new QStatusMessage type hierarchy.
This commit is contained in:
@ -365,7 +365,7 @@ public class RDBMSUpdateActionTest extends RDBMSActionTest
|
||||
updateInput.setRecords(records);
|
||||
UpdateOutput updateOutput = new UpdateAction().execute(updateInput);
|
||||
assertFalse(updateOutput.getRecords().get(0).getErrors().isEmpty());
|
||||
assertEquals("Missing value in primary key field", updateOutput.getRecords().get(0).getErrors().get(0));
|
||||
assertEquals("Missing value in primary key field", updateOutput.getRecords().get(0).getErrors().get(0).getMessage());
|
||||
}
|
||||
|
||||
{
|
||||
@ -377,7 +377,7 @@ public class RDBMSUpdateActionTest extends RDBMSActionTest
|
||||
updateInput.setRecords(records);
|
||||
UpdateOutput updateOutput = new UpdateAction().execute(updateInput);
|
||||
assertFalse(updateOutput.getRecords().get(0).getErrors().isEmpty());
|
||||
assertEquals("Missing value in primary key field", updateOutput.getRecords().get(0).getErrors().get(0));
|
||||
assertEquals("Missing value in primary key field", updateOutput.getRecords().get(0).getErrors().get(0).getMessage());
|
||||
}
|
||||
|
||||
{
|
||||
@ -393,7 +393,7 @@ public class RDBMSUpdateActionTest extends RDBMSActionTest
|
||||
UpdateOutput updateOutput = new UpdateAction().execute(updateInput);
|
||||
|
||||
assertFalse(updateOutput.getRecords().get(0).getErrors().isEmpty());
|
||||
assertEquals("Missing value in primary key field", updateOutput.getRecords().get(0).getErrors().get(0));
|
||||
assertEquals("Missing value in primary key field", updateOutput.getRecords().get(0).getErrors().get(0).getMessage());
|
||||
|
||||
assertTrue(updateOutput.getRecords().get(1).getErrors().isEmpty());
|
||||
|
||||
|
Reference in New Issue
Block a user