You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2026/06/12 09:53:48 UTC

(plc4x) branch develop updated: fix: Fixed an issue in the PlcValuesTest

This is an automated email from the ASF dual-hosted git repository.

chrisdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new 0284d24709 fix: Fixed an issue in the PlcValuesTest
0284d24709 is described below

commit 0284d24709fd612525c4fd3e508fdc3f14c48b90
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Fri Jun 12 11:53:38 2026 +0200

    fix: Fixed an issue in the PlcValuesTest
    
    (For some reason, the test passes locally in the IDE and in Maven, but fails on the CI devices ... however the reason is actually correct to fail)
---
 .../src/test/java/org/apache/plc4x/java/spi/values/PlcValuesTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plc4j/spi/values/src/test/java/org/apache/plc4x/java/spi/values/PlcValuesTest.java b/plc4j/spi/values/src/test/java/org/apache/plc4x/java/spi/values/PlcValuesTest.java
index 72baa81abd..b83dfd7b71 100644
--- a/plc4j/spi/values/src/test/java/org/apache/plc4x/java/spi/values/PlcValuesTest.java
+++ b/plc4j/spi/values/src/test/java/org/apache/plc4x/java/spi/values/PlcValuesTest.java
@@ -188,14 +188,14 @@ class PlcValuesTest {
         List<String> stringList = Arrays.asList("a", "b", "c");
         // PlcValues.of() maps "List" -> "PlcLIST" (uppercase)
         // But the actual class is "PlcList" (camelCase)
-        assertThrows(NoClassDefFoundError.class, () -> PlcValues.of((Object) stringList));
+        assertThrows(PlcIncompatibleDatatypeException.class, () -> PlcValues.of((Object) stringList));
     }
 
     @Test
     void testOfArray() {
         Object[] array = new Object[]{1, 2, 3};
         // PlcValues.of() converts array to List and tries "PlcLIST" (uppercase)
-        assertThrows(NoClassDefFoundError.class, () -> PlcValues.of(array));
+        assertThrows(PlcIncompatibleDatatypeException.class, () -> PlcValues.of(array));
     }
 
     @Test