File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
plc4j/utils/test-utils/src/main/java/org/apache/plc4x/test/manual Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 2727import org .apache .plc4x .java .api .types .PlcResponseCode ;
2828import org .apache .plc4x .java .api .value .PlcValue ;
2929import org .apache .plc4x .java .spi .values .PlcList ;
30+ import org .apache .plc4x .java .spi .values .PlcRawByteArray ;
3031import org .apache .plc4x .java .spi .values .PlcStruct ;
3132import org .apache .plc4x .java .spi .values .PlcValues ;
3233import org .junit .jupiter .api .Assertions ;
@@ -111,6 +112,10 @@ public void run() throws Exception {
111112 } else {
112113 if (testCase .expectedReadValue instanceof PlcStruct ) {
113114 Assertions .assertEquals (testCase .expectedReadValue .toString (), readResponse .getPlcValue (tagName ).toString (), tagName );
115+ } else if (testCase .expectedReadValue instanceof PlcRawByteArray ) {
116+ byte [] expectedRawByteArray = ((PlcRawByteArray ) testCase .expectedReadValue ).getRaw ();
117+ byte [] readRawByteArray = ((PlcRawByteArray ) readResponse .getPlcValue (tagName )).getRaw ();
118+ Assertions .assertArrayEquals (expectedRawByteArray , readRawByteArray );
114119 } else if (testCase .expectedReadValue instanceof PlcValue ) {
115120 Assertions .assertEquals (
116121 ((PlcValue ) testCase .expectedReadValue ).getObject (), readResponse .getPlcValue (tagName ).getObject (), tagName );
You can’t perform that action at this time.
0 commit comments