Skip to content

Commit 6d03ee4

Browse files
committed
work around scala bug #11509
1 parent d2c2c80 commit 6d03ee4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

akka-http-tests/src/test/java/akka/http/javadsl/marshalling/sse/EventStreamMarshallingTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import akka.http.javadsl.testkit.TestRouteResult;
2323
import akka.stream.javadsl.Source;
2424
import akka.util.ByteString;
25+
import akka.util.ByteString$;
2526
import java.util.ArrayList;
2627
import java.util.List;
2728
import org.junit.Test;
@@ -44,7 +45,7 @@ public void testToEventStream() {
4445
final ByteString expectedEntity = events
4546
.stream()
4647
.map(e -> ((akka.http.scaladsl.model.sse.ServerSentEvent) e).encode())
47-
.reduce(ByteString.empty(), ByteString::concat);
48+
.reduce(ByteString$.MODULE$.empty(), ByteString::concat);
4849
final TestRouteResult routeResult = testRoute(route).run(GET("/"));
4950
routeResult.assertMediaType(TEXT_EVENT_STREAM);
5051
routeResult.assertEquals(expectedEntity, routeResult.entityBytes(), "Entity should carry events!");

0 commit comments

Comments
 (0)