greyp9 commented on code in PR #10743:
URL: https://github.com/apache/nifi/pull/10743#discussion_r2677612625
##########
nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestListenUDP.java:
##########
@@ -136,13 +137,15 @@ public void testBatchingSingleSender() throws
IOException, InterruptedException
public void testBatchingWithDifferentSenders() {
final String sender1 = "sender1";
final String sender2 = "sender2";
+ final String senderPort1 = "senderPort1";
+ final String senderPort2 = "senderPort2";
final byte[] message = "test message".getBytes(StandardCharsets.UTF_8);
final List<StandardEvent<DatagramChannel>> mockEvents = new
ArrayList<>();
- mockEvents.add(new StandardEvent<>(sender1, message, responder));
- mockEvents.add(new StandardEvent<>(sender1, message, responder));
- mockEvents.add(new StandardEvent<>(sender2, message, responder));
- mockEvents.add(new StandardEvent<>(sender2, message, responder));
+ mockEvents.add(new StandardEvent<>(sender1, senderPort1, message,
responder));
Review Comment:
Now that I'm looking at this again, we may want to use the three arg ctor
here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]