From 8131dcc6448e68067e899f4877d8089f974a7b7d Mon Sep 17 00:00:00 2001 From: Darin Kelkhoff Date: Wed, 8 Mar 2023 10:48:09 -0600 Subject: [PATCH] Updated messages thrown by some non-findable joins --- .../backend/module/rdbms/actions/RDBMSQueryActionTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qqq-backend-module-rdbms/src/test/java/com/kingsrook/qqq/backend/module/rdbms/actions/RDBMSQueryActionTest.java b/qqq-backend-module-rdbms/src/test/java/com/kingsrook/qqq/backend/module/rdbms/actions/RDBMSQueryActionTest.java index 66b14d64..3a1df7c8 100644 --- a/qqq-backend-module-rdbms/src/test/java/com/kingsrook/qqq/backend/module/rdbms/actions/RDBMSQueryActionTest.java +++ b/qqq-backend-module-rdbms/src/test/java/com/kingsrook/qqq/backend/module/rdbms/actions/RDBMSQueryActionTest.java @@ -946,7 +946,8 @@ public class RDBMSQueryActionTest extends RDBMSActionTest new QueryJoin("shipToPerson", TestUtils.TABLE_NAME_PERSONAL_ID_CARD).withAlias("shipToIdCard").withSelect(true) )); assertThatThrownBy(() -> new QueryAction().execute(queryInput)) - .hasRootCauseMessage("Could not find a table or alias [personTable] in query. May need to be more specific setting up QueryJoins."); + .rootCause() + .hasMessageContaining("Could not find a join between tables [order][personalIdCard]"); //////////////////////////////////////////////////////////////////////////////////////////////////////////// // ensure we throw if either of the ambiguous joins from person to id-card doesn't specify its left-table // @@ -958,7 +959,8 @@ public class RDBMSQueryActionTest extends RDBMSActionTest new QueryJoin(TestUtils.TABLE_NAME_PERSONAL_ID_CARD).withAlias("shipToIdCard").withSelect(true) )); assertThatThrownBy(() -> new QueryAction().execute(queryInput)) - .hasRootCauseMessage("Could not find a table or alias [personTable] in query. May need to be more specific setting up QueryJoins."); + .rootCause() + .hasMessageContaining("Could not find a join between tables [order][personalIdCard]"); //////////////////////////////////////////////////////////////////////// // ensure we throw if we have a bogus alias name given as a left-side //