I have experience some difficulties to run JUnit test that needs to use custom URL handler declared as src/sun/net/www/protocol/exotic/Handler.java

Tycho's surefire does some different execution of tests that result in failed tested. The exception is obvious: java.net.MalformedURLException: unknown protocol

I tried to figure out who is responsible for it. And I found out that if I create a simple Maven project with one test class and one custom handler than Maven surefire works fine since version 2.4. Before it was failing too. So I guess that Maven Tycho is using an old implementation.

Do you have any idea how to enable custom protocols in JUnit tests run by Maven Tycho?

0

There are 0 answers