CE-564 - Adding support for override warehouse and carrier service.

This commit is contained in:
t-samples
2023-08-03 11:43:06 -05:00
parent be30422c18
commit f7c8513845

View File

@ -39,6 +39,7 @@ import com.kingsrook.qqq.backend.core.exceptions.QException;
import com.kingsrook.qqq.backend.core.model.actions.tables.count.CountInput;
import com.kingsrook.qqq.backend.core.model.actions.tables.count.CountOutput;
import com.kingsrook.qqq.backend.core.model.actions.tables.delete.DeleteInput;
import com.kingsrook.qqq.backend.core.model.actions.tables.delete.DeleteOutput;
import com.kingsrook.qqq.backend.core.model.actions.tables.get.GetInput;
import com.kingsrook.qqq.backend.core.model.actions.tables.get.GetOutput;
import com.kingsrook.qqq.backend.core.model.actions.tables.insert.InsertInput;
@ -422,6 +423,25 @@ class BaseAPIActionUtilTest extends BaseTest
/*******************************************************************************
**
*******************************************************************************/
@Test
void testDelete() throws QException
{
mockApiUtilsHelper.enqueueMockResponse("");
mockApiUtilsHelper.enqueueMockResponse(new QHttpResponse().withStatusCode(204).withContent(null));
DeleteInput deleteInput = new DeleteInput();
deleteInput.setTableName(TestUtils.MOCK_TABLE_NAME);
deleteInput.setPrimaryKeys(List.of(1));
DeleteOutput deleteOutput = new DeleteAction().execute(deleteInput);
// not sure what to assert in here...
}
/*******************************************************************************
**
*******************************************************************************/