Tibor17 commented on a change in pull request #300: URL: https://github.com/apache/maven-surefire/pull/300#discussion_r436304747
########## File path: surefire-booter/src/test/java/org/apache/maven/surefire/booter/ForkedBooterMockTest.java ########## @@ -385,4 +472,26 @@ public Object answer( InvocationOnMock invocation ) } ).when( ShutdownHookUtils.class, "addShutDownHook", any( Thread.class ) ); invokeMethod( booter, "flushEventChannelOnExit" ); } + + @Test + public void shouldParseUUID() throws Exception + { + SurefireMasterProcessChannelProcessorFactory factory = new SurefireMasterProcessChannelProcessorFactory(); + UUID uuid = UUID.randomUUID(); + URI uri = new URI( "tcp://127.0.0.1:12345?auth=" + uuid ); + UUID parsed = invokeMethod( factory, "parseAuth", uri ); + assertThat( parsed ) + .isEqualTo( uuid ); + } + + @Test + public void shouldNotParseUUID() throws Exception + { + SurefireMasterProcessChannelProcessorFactory factory = new SurefireMasterProcessChannelProcessorFactory(); + UUID uuid = UUID.randomUUID(); + URI uri = new URI( "tcp://127.0.0.1:12345?xxx=" + uuid ); Review comment: I will fix it here too. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org