Merge pull request #5154 from eclipse/jetty-10.0.x-SurefireUpdateWebSocketFailure
Fix WebSocketServerExamplesTest to work after maven surefire update
This commit is contained in:
commit
471a06dc37
|
@ -51,7 +51,7 @@
|
|||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<argLine>
|
||||
@{argLine} ${jetty.surefire.argLine} --add-exports org.eclipse.jetty.websocket.javax.server/org.eclipse.jetty.websocket.javax.server.examples=org.eclipse.jetty.websocket.javax.common --add-reads org.eclipse.jetty.websocket.javax.server=org.eclipse.jetty.security --add-reads org.eclipse.jetty.websocket.javax.common=org.eclipse.jetty.websocket.javax.server
|
||||
@{argLine} ${jetty.surefire.argLine} --add-reads org.eclipse.jetty.websocket.javax.server=org.eclipse.jetty.security --add-reads org.eclipse.jetty.websocket.javax.common=org.eclipse.jetty.websocket.javax.server
|
||||
</argLine>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
// ========================================================================
|
||||
//
|
||||
|
||||
package org.eclipse.jetty.websocket.javax.server.examples;
|
||||
package org.eclipse.jetty.websocket.javax.tests.server.examples;
|
||||
|
||||
import javax.servlet.http.HttpSession;
|
||||
import javax.websocket.HandshakeResponse;
|
|
@ -16,7 +16,7 @@
|
|||
// ========================================================================
|
||||
//
|
||||
|
||||
package org.eclipse.jetty.websocket.javax.server.examples;
|
||||
package org.eclipse.jetty.websocket.javax.tests.server.examples;
|
||||
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpSession;
|
|
@ -16,7 +16,7 @@
|
|||
// ========================================================================
|
||||
//
|
||||
|
||||
package org.eclipse.jetty.websocket.javax.server.examples;
|
||||
package org.eclipse.jetty.websocket.javax.tests.server.examples;
|
||||
|
||||
import java.security.Principal;
|
||||
import javax.websocket.HandshakeResponse;
|
|
@ -16,7 +16,7 @@
|
|||
// ========================================================================
|
||||
//
|
||||
|
||||
package org.eclipse.jetty.websocket.javax.server.examples;
|
||||
package org.eclipse.jetty.websocket.javax.tests.server.examples;
|
||||
|
||||
import javax.websocket.OnMessage;
|
||||
import javax.websocket.server.ServerEndpoint;
|
|
@ -16,7 +16,7 @@
|
|||
// ========================================================================
|
||||
//
|
||||
|
||||
package org.eclipse.jetty.websocket.javax.server.examples;
|
||||
package org.eclipse.jetty.websocket.javax.tests.server.examples;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Reader;
|
|
@ -16,7 +16,7 @@
|
|||
// ========================================================================
|
||||
//
|
||||
|
||||
package org.eclipse.jetty.websocket.javax.server.examples;
|
||||
package org.eclipse.jetty.websocket.javax.tests.server.examples;
|
||||
|
||||
import java.net.URI;
|
||||
import java.util.concurrent.ArrayBlockingQueue;
|
|
@ -26,6 +26,9 @@ import java.util.ArrayList;
|
|||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class InvokerUtils
|
||||
{
|
||||
public static class Arg
|
||||
|
@ -135,6 +138,7 @@ public class InvokerUtils
|
|||
}
|
||||
|
||||
public static final ParamIdentifier PARAM_IDENTITY = new ParamIdentity();
|
||||
private static final Logger LOG = LoggerFactory.getLogger(InvokerUtils.class);
|
||||
|
||||
/**
|
||||
* Bind optional arguments to provided method handle
|
||||
|
@ -425,6 +429,8 @@ public class InvokerUtils
|
|||
{
|
||||
if (!throwOnFailure)
|
||||
{
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug("Unable to obtain MethodHandle for " + method, e);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -44,7 +44,7 @@
|
|||
<jetty.surefire.argLine>-Dfile.encoding=UTF-8 -Duser.language=en -Duser.region=US -showversion -Xmx2g -Xms2g -Xlog:gc:stderr:time,level,tags</jetty.surefire.argLine>
|
||||
|
||||
<!-- some maven plugins versions -->
|
||||
<maven.surefire.version>3.0.0-M4</maven.surefire.version>
|
||||
<maven.surefire.version>3.0.0-M5</maven.surefire.version>
|
||||
<maven.compiler.plugin.version>3.8.1</maven.compiler.plugin.version>
|
||||
<maven.dependency.plugin.version>3.1.2</maven.dependency.plugin.version>
|
||||
<maven.resources.plugin.version>3.2.0</maven.resources.plugin.version>
|
||||
|
|
Loading…
Reference in New Issue