mvn test -Djava.net.preferIPv4Stack=true -Dtest=NettyUDPMulticastAsyncTestPlease note that using the JUnit {@link BeforeClass} annotation together withthe corresponding {@link System#setProperty(String,String) Java API} to setthe {@code java.net.preferIPv4Stack} system property would not work here asat that moment it would be too late to set this system property. On the other hand setting such a system property through the surefire-plugin would cause side effect by the other tests of this component.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|