You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/02/16 14:04:20 UTC
[GitHub] [camel-quarkus] aldettinger commented on a change in pull request #3555: Improve available port discovery in tests
aldettinger commented on a change in pull request #3555:
URL: https://github.com/apache/camel-quarkus/pull/3555#discussion_r808010570
##########
File path: integration-tests-support/test-support/src/main/java/org/apache/camel/quarkus/test/AvailablePortFinder.java
##########
@@ -103,4 +124,19 @@ private static boolean isQuarkusReservedPort(int port) {
}
return false;
}
+
+ private static String getCallerClassName() {
+ return StackWalker.getInstance(StackWalker.Option.RETAIN_CLASS_REFERENCE)
+ .walk(s -> s.map(StackWalker.StackFrame::getClassName)
+ .filter(className -> !className.equals(AvailablePortFinder.class.getName()))
Review comment:
Filtering on className should be enough then.
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org