Skip to content

Commit

Permalink
Fix NoSuchMethodError: 'scala.collection.Seq scala.collection.mutable…
Browse files Browse the repository at this point in the history
….Map.toSeq()
  • Loading branch information
heyams committed Oct 3, 2024
1 parent f6792ac commit 8e4c0f6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
import play.api.libs.ws.StandaloneWSResponse;
import play.api.libs.ws.ahc.StandaloneAhcWSClient;
import scala.Function1;
import scala.collection.JavaConverters;
import scala.concurrent.Await;
import scala.concurrent.ExecutionContext;
import scala.concurrent.Future;
import scala.concurrent.duration.Duration;
import scala.jdk.javaapi.CollectionConverters;
import scala.util.Try;

public class PlayScalaStreamedWsClientBaseTest extends PlayWsClientBaseTest<StandaloneWSRequest> {
Expand Down Expand Up @@ -59,7 +59,7 @@ public StandaloneWSRequest buildRequest(String method, URI uri, Map<String, Stri
.url(uri.toURL().toString())
.withMethod(method)
.withFollowRedirects(true)
.withHttpHeaders(JavaConverters.mapAsScalaMap(headers).toSeq());
.withHttpHeaders(CollectionConverters.asScala(headers).toList());
}

@Override
Expand Down

0 comments on commit 8e4c0f6

Please sign in to comment.