Skip to content

Commit

Permalink
test(plc4j/opcua): cleanup tests a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Aug 3, 2023
1 parent 33aa723 commit 1956b23
Show file tree
Hide file tree
Showing 2 changed files with 172 additions and 167 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -792,14 +792,16 @@ public void onDiscoverOpenSecureChannel(ConversationContext<OpcuaAPU> context, O
WriteBufferByteBased buffer = new WriteBufferByteBased(extObject.getLengthInBytes(), org.apache.plc4x.java.spi.generation.ByteOrder.LITTLE_ENDIAN);
extObject.serialize(buffer);

OpcuaOpenRequest openRequest = new OpcuaOpenRequest(FINAL_CHUNK,
OpcuaOpenRequest openRequest = new OpcuaOpenRequest(
FINAL_CHUNK,
0,
SECURITY_POLICY_NONE,
NULL_BYTE_STRING,
NULL_BYTE_STRING,
transactionId,
transactionId,
buffer.getBytes());
buffer.getBytes()
);

Consumer<Integer> requestConsumer = t -> context.sendRequest(new OpcuaAPU(openRequest))
.expectResponse(OpcuaAPU.class, REQUEST_TIMEOUT)
Expand Down Expand Up @@ -1039,14 +1041,16 @@ private void keepAlive() {
WriteBufferByteBased buffer = new WriteBufferByteBased(extObject.getLengthInBytes(), org.apache.plc4x.java.spi.generation.ByteOrder.LITTLE_ENDIAN);
extObject.serialize(buffer);

OpcuaOpenRequest openRequest = new OpcuaOpenRequest(FINAL_CHUNK,
OpcuaOpenRequest openRequest = new OpcuaOpenRequest(
FINAL_CHUNK,
0,
new PascalString(this.securityPolicy),
this.publicCertificate,
this.thumbprint,
transactionId,
transactionId,
buffer.getBytes());
buffer.getBytes()
);

final OpcuaAPU apu;

Expand Down
Loading

0 comments on commit 1956b23

Please sign in to comment.