0

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?

oberlies
  • 11,503
  • 4
  • 63
  • 110
Andrej
  • 558
  • 6
  • 14
  • Create bug at https://bugs.eclipse.org/bugs/show_bug.cgi?id=413510 – Andrej Jul 23 '13 at 11:30
  • Unlike maven-surefire, tycho-surefire starts an OSGi runtime. Do the custom protocol handlers work in an OSGi runtime? Google seems to know a lot about this... – oberlies Jul 29 '13 at 09:48

0 Answers0