Home
last modified time | relevance | path

Searched refs:AdditionalAnswers (Results 1 – 20 of 20) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingWithExtraAnswersTest.java9 import org.mockito.AdditionalAnswers;
30 … when(mock.objectReturningMethodNoArgs()).thenAnswer(AdditionalAnswers.returnsElementsOf(list)); in shouldWorkAsStandardMockito()
45 … when(mock.objectReturningMethodNoArgs()).thenAnswer(AdditionalAnswers.returnsElementsOf(list)); in shouldReturnNullIfNecessary()
57 AdditionalAnswers.returnsElementsOf(null); in shouldScreamWhenNullPassed()
DStubbingWithAdditionalAnswersTest.java9 import static org.mockito.AdditionalAnswers.answer;
10 import static org.mockito.AdditionalAnswers.answerVoid;
11 import static org.mockito.AdditionalAnswers.returnsArgAt;
12 import static org.mockito.AdditionalAnswers.returnsFirstArg;
13 import static org.mockito.AdditionalAnswers.returnsLastArg;
14 import static org.mockito.AdditionalAnswers.returnsSecondArg;
15 import static org.mockito.AdditionalAnswers.answersWithDelay;
DStubbingWithDelegateVarArgsTest.java10 import static org.mockito.AdditionalAnswers.delegatesTo;
DStubbingWithDelegateTest.java20 import static org.mockito.AdditionalAnswers.delegatesTo;
/external/mockito/src/test/java/org/mockitousage/strictness/
DStrictnessPerStubbingTest.java12 import org.mockito.AdditionalAnswers;
206 lenient().doAnswer(AdditionalAnswers.returnsFirstArg()).when(mock).simpleMethod("1"); in doAnswer_syntax()
/external/grpc-grpc-java/examples/example-kotlin/src/test/kotlin/io/grpc/examples/helloworld/
DHelloWorldClientTest.kt20 import org.mockito.AdditionalAnswers.delegatesTo
/external/grpc-grpc-java/examples/src/test/java/io/grpc/examples/helloworld/
DHelloWorldClientTest.java20 import static org.mockito.AdditionalAnswers.delegatesTo;
/external/grpc-grpc-java/examples/src/test/java/io/grpc/examples/header/
DHeaderClientInterceptorTest.java21 import static org.mockito.AdditionalAnswers.delegatesTo;
DHeaderServerInterceptorTest.java21 import static org.mockito.AdditionalAnswers.delegatesTo;
/external/mockito/src/main/java/org/mockito/
DAdditionalAnswers.java40 public class AdditionalAnswers { class
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DAbstractServerStreamTest.java21 import static org.mockito.AdditionalAnswers.delegatesTo;
DAbstractClientStreamTest.java27 import static org.mockito.AdditionalAnswers.delegatesTo;
DServerImplTest.java30 import static org.mockito.AdditionalAnswers.delegatesTo;
DRetriableStreamTest.java29 import static org.mockito.AdditionalAnswers.delegatesTo;
/external/grpc-grpc-java/testing/src/test/java/io/grpc/testing/
DGrpcCleanupRuleTest.java22 import static org.mockito.AdditionalAnswers.delegatesTo;
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DServerInterceptorsTest.java23 import static org.mockito.AdditionalAnswers.delegatesTo;
DClientInterceptorsTest.java26 import static org.mockito.AdditionalAnswers.delegatesTo;
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/
DNettyHandlerTestBase.java22 import static org.mockito.AdditionalAnswers.delegatesTo;
DNettyServerHandlerTest.java38 import static org.mockito.AdditionalAnswers.delegatesTo;
/external/grpc-grpc-java/grpclb/src/test/java/io/grpc/grpclb/
DGrpclbLoadBalancerTest.java32 import static org.mockito.AdditionalAnswers.delegatesTo;