Author: markt
Date: Tue Aug 7 21:22:51 2018
New Revision: 1837618
URL: http://svn.apache.org/viewvc?rev=1837618&view=rev
Log:
Fix back-port (remove use of Java 8 method)
Modified:
tomcat/tc8.5.x/trunk/test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java
Modified:
tomcat/tc8.5.x/trunk/test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java
URL:
http://svn.apache.org/viewvc/tomcat/tc8.5.x/trunk/test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java?rev=1837618&r1=1837617&r2=1837618&view=diff
==============================================================================
---
tomcat/tc8.5.x/trunk/test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java
(original)
+++
tomcat/tc8.5.x/trunk/test/org/apache/tomcat/websocket/TestWebSocketFrameClient.java
Tue Aug 7 21:22:51 2018
@@ -64,12 +64,15 @@ public class TestWebSocketFrameClient ex
WebSocketContainer wsContainer =
ContainerProvider.getWebSocketContainer();
// BZ 62596
+ final StringBuilder dummyValue = new StringBuilder(4000);
+ for (int i = 0; i < 4000; i++) {
+ dummyValue.append('A');
+ }
ClientEndpointConfig clientEndpointConfig =
ClientEndpointConfig.Builder.create().configurator(new
Configurator() {
@Override
public void beforeRequest(Map<String, List<String>>
headers) {
- headers.put("Dummy", Collections.singletonList(
- String.join("", Collections.nCopies(4000,
"A"))));
+ headers.put("Dummy",
Collections.singletonList(dummyValue.toString()));
super.beforeRequest(headers);
}
}).build();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]