From 3b2b950a33dd879a3931a9b7db61686c6b983d4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Dinis=20Ferreira?= Date: Fri, 4 Sep 2026 21:05:39 +0200 Subject: [PATCH] fix: accumulate all rows in CoreSwtbotTools.tableItems The loop reassigned the list each iteration, so a table with N rows returned only the last row. Accumulate instead, matching the javadoc and the sibling treeItems helper. Empty tables now return an empty list rather than null. --- .../com/avaloq/tools/ddk/test/ui/swtbot/CoreSwtbotTools.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.avaloq.tools.ddk.test.ui/src/com/avaloq/tools/ddk/test/ui/swtbot/CoreSwtbotTools.java b/com.avaloq.tools.ddk.test.ui/src/com/avaloq/tools/ddk/test/ui/swtbot/CoreSwtbotTools.java index 21e04fe65..f06858ce8 100644 --- a/com.avaloq.tools.ddk.test.ui/src/com/avaloq/tools/ddk/test/ui/swtbot/CoreSwtbotTools.java +++ b/com.avaloq.tools.ddk.test.ui/src/com/avaloq/tools/ddk/test/ui/swtbot/CoreSwtbotTools.java @@ -346,7 +346,7 @@ public static List tableItems(final SWTWorkbenchBot bot, final waitForTableItem(bot, table); List items = new ArrayList(); for (int i = 0; i < table.rowCount(); i++) { - items = new ArrayList(Arrays.asList(table.getTableItem(i))); + items.add(table.getTableItem(i)); } return items; }