jbertram commented on code in PR #6004:
URL: https://github.com/apache/activemq-artemis/pull/6004#discussion_r2461046924


##########
artemis-web/src/test/java/org/apache/activemq/cli/test/WebServerComponentTest.java:
##########
@@ -880,6 +882,48 @@ public void testServerDeterministicWebappName() throws 
Exception {
       assertFalse(webServerComponent.isStarted());
    }
 
+   @Test
+   public void testIsolationOfSessions() throws Exception {
+      BindingDTO bindingDTO1 = new BindingDTO();
+      bindingDTO1.uri = "http://localhost:0";;
+      bindingDTO1.apps = new ArrayList<>();
+      bindingDTO1.apps.add(createSimpleAppDTO("app1"));
+      bindingDTO1.apps.add(createSimpleAppDTO("app2"));
+
+      BindingDTO bindingDTO2 = new BindingDTO();
+      bindingDTO2.uri = "http://localhost:0";;
+      bindingDTO2.apps = new ArrayList<>();
+      bindingDTO2.apps.add(createSimpleAppDTO("app1"));
+      bindingDTO2.apps.add(createSimpleAppDTO("app2"));
+
+      WebServerDTO webServerDTO = new WebServerDTO();
+      webServerDTO.setBindings(Arrays.asList(bindingDTO1, bindingDTO2));

Review Comment:
   This is a nit-pick so feel free to ignore, but `List.of` is a bit more 
readable than `Arrays.asList` in my opinion.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to