Answers for "spring mock Streamble of object"

0

spring mock Streamble of object

Answer<Stream> answer = new Answer<Stream>() {
    public Stream answer(InvocationOnMock invocation) throws Throwable {
        return Stream.of("A", "B");
    }
};


when(mock.streamMethod()).thenAnswer(answer);
Posted by: Guest on July-30-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language