I have the task of testing some code that eventually calls javafx.application.HostServices.showDocument(...) with a URL that will open the web browser in production.

During the test runs I don't want the browser to be opened but instead have some custom code be executed.

Unfortunately HostServices ist final, so I cannot overwrite it. Is there another way to install "my own" host services?


Best regards,

Robert

Reply via email to