BAEL-5283: fix unit test failed
This commit is contained in:
parent
0947c71710
commit
47adb0759d
|
@ -36,7 +36,7 @@ public class LambdaSerializationUnitTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenSerializableConsumer_whenNoCapturing_thenSerializationSuccess() throws IOException, ClassNotFoundException {
|
public void givenSerializableConsumer_whenNoCapturing_thenSerializationSuccess() throws IOException, ClassNotFoundException {
|
||||||
SerializableConsumer<String> obj = System.out::println;
|
SerializableConsumer<String> obj = message -> System.out.println(message);
|
||||||
writeAndReadObject(obj, SerializableConsumer.class);
|
writeAndReadObject(obj, SerializableConsumer.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue