Home
last modified time | relevance | path

Searched refs:forClass (Results 1 – 25 of 86) sorted by relevance

1234

/external/mockito/src/test/java/org/mockitousage/matchers/
DCapturingArgumentsTest.java66 ArgumentCaptor<Person> argument = ArgumentCaptor.forClass(Person.class); in should_allow_assertions_on_captured_argument()
79 ArgumentCaptor<Person> argument = ArgumentCaptor.forClass(Person.class); in should_allow_assertions_on_all_captured_arguments()
93 ArgumentCaptor<Person> argument = ArgumentCaptor.forClass(Person.class); in should_allow_assertions_on_last_argument()
106 ArgumentCaptor<Person> person = ArgumentCaptor.forClass(Person.class); in should_print_captor_matcher()
121 ArgumentCaptor<Person> argument = ArgumentCaptor.forClass(Person.class); in should_allow_assertions_on_captured_null()
135 ArgumentCaptor<List<Person>> argument = ArgumentCaptor.forClass(List.class); in should_allow_construction_of_captor_for_parameterized_type_in_a_convenient_way()
142 ArgumentCaptor<List<?>> argument = ArgumentCaptor.forClass(ArrayList.class); in should_allow_construction_of_captor_for_a_more_specific_type()
149 ArgumentCaptor<Person> argument = ArgumentCaptor.forClass(Person.class); in should_allow_capturing_for_stubbing()
162 ArgumentCaptor<String> argument = ArgumentCaptor.forClass(String.class); in should_capture_when_stubbing_only_when_entire_invocation_matches()
175 ArgumentCaptor<Person> argument = ArgumentCaptor.forClass(Person.class); in should_say_something_smart_when_misused()
[all …]
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DRetriableStreamTest.java230 ArgumentCaptor.forClass(ClientStreamListener.class); in retry_everythingDrained()
275 ArgumentCaptor.forClass(ClientStreamListener.class); in retry_everythingDrained()
322 ArgumentCaptor.forClass(ClientStreamListener.class); in retry_everythingDrained()
350 ArgumentCaptor.forClass(ClientStreamListener.class); in headersRead_cancel()
371 ArgumentCaptor.forClass(ClientStreamListener.class); in retry_headersRead_cancel()
382 ArgumentCaptor.forClass(ClientStreamListener.class); in retry_headersRead_cancel()
406 ArgumentCaptor.forClass(ClientStreamListener.class); in headersRead_closed()
430 ArgumentCaptor.forClass(ClientStreamListener.class); in retry_headersRead_closed()
440 ArgumentCaptor.forClass(ClientStreamListener.class); in retry_headersRead_closed()
467 ArgumentCaptor.forClass(ClientStreamListener.class); in cancel_closed()
[all …]
DKeepAliveManagerTest.java73 ArgumentCaptor<Long> delayCaptor = ArgumentCaptor.forClass(Long.class); in sendKeepAlivePings()
74 ArgumentCaptor<Runnable> sendPingCaptor = ArgumentCaptor.forClass(Runnable.class); in sendKeepAlivePings()
114 ArgumentCaptor<Runnable> sendPingCaptor = ArgumentCaptor.forClass(Runnable.class); in keepAlivePingDelayedByIncomingData()
128 ArgumentCaptor<Long> delayCaptor = ArgumentCaptor.forClass(Long.class); in keepAlivePingDelayedByIncomingData()
153 ArgumentCaptor.forClass(ClientTransport.PingCallback.class); in clientKeepAlivePinger_pingFailure()
171 ArgumentCaptor<Runnable> sendPingCaptor = ArgumentCaptor.forClass(Runnable.class); in onTransportTerminationCancelsShutdownFuture()
193 ArgumentCaptor<Runnable> sendPingCaptor = ArgumentCaptor.forClass(Runnable.class); in keepAlivePingTimesOut()
205 ArgumentCaptor<Runnable> shutdownCaptor = ArgumentCaptor.forClass(Runnable.class); in keepAlivePingTimesOut()
231 ArgumentCaptor<Runnable> sendPingCaptor = ArgumentCaptor.forClass(Runnable.class); in transportGoesIdle()
257 ArgumentCaptor<Runnable> runnableCaptor = ArgumentCaptor.forClass(Runnable.class); in transportGoesIdle_doesntCauseIdleWhenEnabled()
[all …]
DCallCredentials2ApplyingTest.java129 ArgumentCaptor<RequestInfo> infoCaptor = ArgumentCaptor.forClass(null); in parameterPropagation_base()
150 ArgumentCaptor<RequestInfo> infoCaptor = ArgumentCaptor.forClass(null); in parameterPropagation_transportSetSecurityLevel()
171 ArgumentCaptor<RequestInfo> infoCaptor = ArgumentCaptor.forClass(null); in parameterPropagation_callOptionsSetAuthority()
247 ArgumentCaptor<MetadataApplier> applierCaptor = ArgumentCaptor.forClass(null); in applyMetadata_delayed()
269 ArgumentCaptor<MetadataApplier> applierCaptor = ArgumentCaptor.forClass(null); in fail_delayed()
DCallCredentialsApplyingTest.java128 ArgumentCaptor<Attributes> attrsCaptor = ArgumentCaptor.forClass(null); in parameterPropagation_base()
148 ArgumentCaptor<Attributes> attrsCaptor = ArgumentCaptor.forClass(null); in parameterPropagation_overrideByTransport()
170 ArgumentCaptor<Attributes> attrsCaptor = ArgumentCaptor.forClass(null); in parameterPropagation_overrideByCallOptions()
248 ArgumentCaptor<CallCredentials.MetadataApplier> applierCaptor = ArgumentCaptor.forClass(null); in applyMetadata_delayed()
270 ArgumentCaptor<CallCredentials.MetadataApplier> applierCaptor = ArgumentCaptor.forClass(null); in fail_delayed()
DManagedChannelImplIdlenessTest.java259 ArgumentCaptor<Helper> helperCaptor = ArgumentCaptor.forClass(null); in realTransportsHoldsOffIdleness()
301 ArgumentCaptor<Helper> helperCaptor = ArgumentCaptor.forClass(null); in updateSubchannelAddresses_newAddressConnects()
321 ArgumentCaptor<Helper> helperCaptor = ArgumentCaptor.forClass(null); in updateSubchannelAddresses_existingAddressDoesNotConnect()
345 ArgumentCaptor<Helper> helperCaptor = ArgumentCaptor.forClass(null); in oobTransportDoesNotAffectIdleness()
391 ArgumentCaptor<Helper> helperCaptor = ArgumentCaptor.forClass(null); in updateOobChannelAddresses_newAddressConnects()
411 ArgumentCaptor<Helper> helperCaptor = ArgumentCaptor.forClass(null); in updateOobChannelAddresses_existingAddressDoesNotConnect()
/external/grpc-grpc-java/cronet/src/test/java/io/grpc/cronet/
DCronetClientStreamTest.java151 ArgumentCaptor.forClass(BidirectionalStream.Callback.class); in write()
231 ArgumentCaptor.forClass(BidirectionalStream.Callback.class); in read()
244 ArgumentCaptor<Metadata> metadataCaptor = ArgumentCaptor.forClass(Metadata.class); in read()
277 ArgumentCaptor.forClass(BidirectionalStream.Callback.class); in streamSucceeded()
291 ArgumentCaptor<ByteBuffer> bufferCaptor = ArgumentCaptor.forClass(ByteBuffer.class); in streamSucceeded()
324 ArgumentCaptor<Metadata> trailerCaptor = ArgumentCaptor.forClass(Metadata.class); in streamSucceeded()
325 ArgumentCaptor<Status> statusCaptor = ArgumentCaptor.forClass(Status.class); in streamSucceeded()
343 ArgumentCaptor.forClass(BidirectionalStream.Callback.class); in streamSucceededWithGrpcError()
369 ArgumentCaptor<Status> statusCaptor = ArgumentCaptor.forClass(Status.class); in streamSucceededWithGrpcError()
381 ArgumentCaptor.forClass(BidirectionalStream.Callback.class); in streamFailed()
[all …]
/external/grpc-grpc-java/services/src/test/java/io/grpc/services/
DChannelzServiceTest.java151 = ArgumentCaptor.forClass(GetTopChannelsResponse.class); in getTopChannelHelper()
164 = ArgumentCaptor.forClass(GetChannelResponse.class); in getChannelHelper()
174 ArgumentCaptor<Exception> exceptionCaptor = ArgumentCaptor.forClass(Exception.class); in assertChannelNotFound()
185 = ArgumentCaptor.forClass(GetSubchannelResponse.class); in getSubchannelHelper()
195 ArgumentCaptor<Exception> exceptionCaptor = ArgumentCaptor.forClass(Exception.class); in assertSubchannelNotFound()
206 = ArgumentCaptor.forClass(GetServersResponse.class); in getServersHelper()
218 ArgumentCaptor<Exception> exceptionCaptor = ArgumentCaptor.forClass(Exception.class); in assertSocketNotFound()
229 = ArgumentCaptor.forClass(GetSocketResponse.class); in getSocketHelper()
/external/volley/src/test/java/com/android/volley/cronet/
DCronetHttpStackTest.java96 ArgumentCaptor<String> curlCommandCaptor = ArgumentCaptor.forClass(String.class); in curlLogging_simpleTextRequest()
117 ArgumentCaptor<String> curlCommandCaptor = ArgumentCaptor.forClass(String.class); in curlLogging_rewrittenUrl()
145 ArgumentCaptor<String> curlCommandCaptor = ArgumentCaptor.forClass(String.class); in curlLogging_headers_withoutTokens()
179 ArgumentCaptor<String> curlCommandCaptor = ArgumentCaptor.forClass(String.class); in curlLogging_headers_withTokens()
219 ArgumentCaptor<String> curlCommandCaptor = ArgumentCaptor.forClass(String.class); in curlLogging_textRequest()
259 ArgumentCaptor<String> curlCommandCaptor = ArgumentCaptor.forClass(String.class); in curlLogging_gzipTextRequest()
295 ArgumentCaptor<String> curlCommandCaptor = ArgumentCaptor.forClass(String.class); in curlLogging_binaryRequest()
330 ArgumentCaptor<String> curlCommandCaptor = ArgumentCaptor.forClass(String.class); in curlLogging_largeRequest()
/external/caliper/caliper/src/test/java/com/google/caliper/runner/
DBenchmarkClassTest.java40 BenchmarkClass.forClass(MyBenchmark.class).beforeExperimentMethods()); in beforeMeasurementMethods_AnnotatedBenchmark()
48 BenchmarkClass.forClass(MyBenchmark.class).afterExperimentMethods()); in afterMeasurementMethods_AnnotatedBenchmark()
53 BenchmarkClass.forClass(MalformedBenhcmark.class); in forClass_inheritenceThrows()
DExperimentingRunnerModuleTest.java73 BenchmarkClass.forClass(TestBenchmark.class), in provideInstrumentations_noNames()
87 BenchmarkClass.forClass(TestBenchmark.class), in provideInstrumentations_withNames()
97 BenchmarkClass.forClass(TestBenchmark.class), in provideInstrumentations_withNames()
106 BenchmarkClass.forClass(TestBenchmark.class), in provideInstrumentations_withInvalidName()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/analytics/
DDefaultPlaybackSessionManagerTest.java82 ArgumentCaptor<String> sessionId = ArgumentCaptor.forClass(String.class); in updateSessions_withMediaPeriodId_createsNewSession()
104 ArgumentCaptor<String> sessionId = ArgumentCaptor.forClass(String.class); in updateSessions_ofSameWindow_withMediaPeriodId_afterWithoutMediaPeriodId_doesNotCreateNewSession()
128 ArgumentCaptor<String> contentSessionId = ArgumentCaptor.forClass(String.class); in updateSessions_ofSameWindow_withAd_afterWithoutMediaPeriodId_createsNewSession()
129 ArgumentCaptor<String> adSessionId = ArgumentCaptor.forClass(String.class); in updateSessions_ofSameWindow_withAd_afterWithoutMediaPeriodId_createsNewSession()
153 ArgumentCaptor<String> sessionId = ArgumentCaptor.forClass(String.class); in updateSessions_ofSameWindow_withoutMediaPeriodId_afterMediaPeriodId_doesNotCreateNewSession()
177 ArgumentCaptor<String> sessionId = ArgumentCaptor.forClass(String.class); in updateSessions_ofSameWindow_withoutMediaPeriodId_afterAd_doesNotCreateNewSession()
201 ArgumentCaptor<String> sessionId = ArgumentCaptor.forClass(String.class); in updateSessions_withOtherMediaPeriodId_ofSameWindow_doesNotCreateNewSession()
230 ArgumentCaptor<String> contentSessionId = ArgumentCaptor.forClass(String.class); in updateSessions_withAd_ofSameWindow_createsNewSession()
231 ArgumentCaptor<String> adSessionId = ArgumentCaptor.forClass(String.class); in updateSessions_withAd_ofSameWindow_createsNewSession()
254 ArgumentCaptor<String> sessionId1 = ArgumentCaptor.forClass(String.class); in updateSessions_ofOtherWindow_createsNewSession()
[all …]
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/
DNettyClientStreamTest.java152 ArgumentCaptor.forClass(CancelClientStreamCommand.class); in cancelShouldSendCommand()
163 ArgumentCaptor.forClass(CancelClientStreamCommand.class); in deadlineExceededCancelShouldSendCommand()
269 .forClass(CancelClientStreamCommand.class); in inboundTrailersBeforeHalfCloseSendsRstStream()
291 ArgumentCaptor<Status> captor = ArgumentCaptor.forClass(Status.class); in inboundStatusShouldSetStatus()
316 ArgumentCaptor<Status> captor = ArgumentCaptor.forClass(Status.class); in invalidInboundHeadersCancelStream()
317 ArgumentCaptor<Metadata> metadataCaptor = ArgumentCaptor.forClass(Metadata.class); in invalidInboundHeadersCancelStream()
335 ArgumentCaptor<Status> captor = ArgumentCaptor.forClass(Status.class); in invalidInboundContentTypeShouldCancelStream()
336 ArgumentCaptor<Metadata> metadataCaptor = ArgumentCaptor.forClass(Metadata.class); in invalidInboundContentTypeShouldCancelStream()
348 ArgumentCaptor<Status> captor = ArgumentCaptor.forClass(Status.class); in nonGrpcResponseShouldSetStatus()
403 ArgumentCaptor<Status> captor = ArgumentCaptor.forClass(Status.class); in dataFrameWithEosShouldDeframeAndThenFail()
[all …]
DNettyServerStreamTest.java110 ArgumentCaptor.forClass(SendResponseHeadersCommand.class); in writeMessageShouldSendResponse()
136 ArgumentCaptor.forClass(SendResponseHeadersCommand.class); in writeHeadersShouldSendHeaders()
156 ArgumentCaptor.forClass(SendResponseHeadersCommand.class); in closeBeforeClientHalfCloseShouldSucceed()
184 ArgumentCaptor.forClass(SendResponseHeadersCommand.class); in closeWithErrorBeforeClientHalfCloseShouldSucceed()
218 ArgumentCaptor.forClass(SendResponseHeadersCommand.class); in closeAfterClientHalfCloseShouldSucceed()
263 ArgumentCaptor.forClass(SendResponseHeadersCommand.class); in emptyFramerShouldSendNoPayload()
/external/dexmaker/dexmaker-mockito-inline-extended-tests/src/main/java/com/android/dx/mockito/inline/extended/tests/
DVerifyStatic.java48 ArgumentCaptor<String> echoCaptor = ArgumentCaptor.forClass(String.class); in verifyMockedStringMethod()
64 ArgumentCaptor<String> yumCaptor = ArgumentCaptor.forClass(String.class); in verifyMockedVoidMethod()
81 ArgumentCaptor<String> yumCaptor = ArgumentCaptor.forClass(String.class); in verifyWithTwoMocks()
84 ArgumentCaptor<String> echoCaptor = ArgumentCaptor.forClass(String.class); in verifyWithTwoMocks()
100 ArgumentCaptor<String> echoCaptor = ArgumentCaptor.forClass(String.class); in verifySpiedStringMethod()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/
DLexicalDifferenceCalculator.java91 CsmElement element = ConcreteSyntaxModel.forClass(container.getClass()); in calculateListRemovalDifference()
99 CsmElement element = ConcreteSyntaxModel.forClass(container.getClass()); in calculateListAdditionDifference()
107 CsmElement element = ConcreteSyntaxModel.forClass(container.getClass()); in calculateListReplacementDifference()
117 CsmElement element = ConcreteSyntaxModel.forClass(observedNode.getClass()); in calculatePropertyChange()
133 return calculatedSyntaxModelForNode(ConcreteSyntaxModel.forClass(node.getClass()), node); in calculatedSyntaxModelForNode()
279 …return calculatedSyntaxModelAfterPropertyChange(ConcreteSyntaxModel.forClass(node.getClass()), nod… in calculatedSyntaxModelAfterPropertyChange()
307 CsmElement csm = ConcreteSyntaxModel.forClass(container.getClass()); in calculatedSyntaxModelAfterListAddition()
318 CsmElement csm = ConcreteSyntaxModel.forClass(container.getClass()); in calculatedSyntaxModelAfterListRemoval()
/external/mockito/src/test/java/org/mockitousage/bugs/
DArgumentCaptorDontCapturePreviouslyVerifiedTest.java22 ArgumentCaptor<String> argument = ArgumentCaptor.forClass(String.class); in previous_verified_invocation_should_still_capture_args()
28 argument = ArgumentCaptor.forClass(String.class); in previous_verified_invocation_should_still_capture_args()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/module/
DSimpleKeyDeserializers.java37 public SimpleKeyDeserializers addDeserializer(Class<?> forClass, KeyDeserializer deser) in addDeserializer() argument
42 _classMappings.put(new ClassKey(forClass), deser); in addDeserializer()
DSimpleDeserializers.java50 public <T> void addDeserializer(Class<T> forClass, JsonDeserializer<? extends T> deser) in addDeserializer() argument
52 ClassKey key = new ClassKey(forClass); in addDeserializer()
58 if (forClass == Enum.class) { in addDeserializer()
/external/webrtc/sdk/android/tests/src/org/webrtc/
DHardwareVideoEncoderTest.java191 ArgumentCaptor<Integer> indexCaptor = ArgumentCaptor.forClass(Integer.class); in testEncodeByteBuffer()
192 ArgumentCaptor<Integer> offsetCaptor = ArgumentCaptor.forClass(Integer.class); in testEncodeByteBuffer()
193 ArgumentCaptor<Integer> sizeCaptor = ArgumentCaptor.forClass(Integer.class); in testEncodeByteBuffer()
226 ArgumentCaptor<EncodedImage> videoFrameCaptor = ArgumentCaptor.forClass(EncodedImage.class); in testDeliversOutputData()
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/
DDefaultTextClassifierServiceTest.java121 ArgumentCaptor<TextClassification> captor = ArgumentCaptor.forClass(TextClassification.class); in classifyText_success()
143 ArgumentCaptor<TextSelection> captor = ArgumentCaptor.forClass(TextSelection.class); in suggestSelection_success()
158 ArgumentCaptor<TextLinks> captor = ArgumentCaptor.forClass(TextLinks.class); in generateLinks_success()
178 ArgumentCaptor<TextLanguage> captor = ArgumentCaptor.forClass(TextLanguage.class); in detectLanguage_success()
200 ArgumentCaptor<ConversationActions> captor = ArgumentCaptor.forClass(ConversationActions.class); in suggestConversationActions_success()
/external/grpc-grpc-java/examples/src/test/java/io/grpc/examples/routeguide/
DRouteGuideServerTest.java184 ArgumentCaptor<RouteSummary> routeSummaryCaptor = ArgumentCaptor.forClass(RouteSummary.class); in recordRoute()
233 ArgumentCaptor<RouteNote> routeNoteCaptor = ArgumentCaptor.forClass(RouteNote.class); in routeChat()
240 routeNoteCaptor = ArgumentCaptor.forClass(RouteNote.class); in routeChat()
247 routeNoteCaptor = ArgumentCaptor.forClass(RouteNote.class); in routeChat()
258 routeNoteCaptor = ArgumentCaptor.forClass(RouteNote.class); in routeChat()
/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/stock/
DProxyBuilderTest.java459 ProxyBuilder.forClass(TwoConstructors.class) in testWithoutInvocationHandler_ThrowsIllegalArgumentException()
716 HasMultipleConstructors a = ProxyBuilder.forClass(HasMultipleConstructors.class) in testCachingWithMultipleConstructors()
722 HasMultipleConstructors b = ProxyBuilder.forClass(HasMultipleConstructors.class) in testCachingWithMultipleConstructors()
730 HasMultipleConstructors c = ProxyBuilder.forClass(HasMultipleConstructors.class) in testCachingWithMultipleConstructors()
1031 return ProxyBuilder.forClass(clazz) in proxyFor()
1107 TestOrderingClass proxy = ProxyBuilder.forClass(TestOrderingClass.class) in doTestOrderClassWithDexMakerCaching()
1170 ConcreteClassA proxyA = ProxyBuilder.forClass(ConcreteClassA.class) in testTwoClassesWithIdenticalMethodSignatures_DexMakerCaching()
1179 ConcreteClassB proxyB = ProxyBuilder.forClass(ConcreteClassB.class) in testTwoClassesWithIdenticalMethodSignatures_DexMakerCaching()
1233 PartiallyFinalClass proxy = ProxyBuilder.forClass(PartiallyFinalClass.class)
1248 Class<?> c1 = ProxyBuilder.forClass(SimpleClass.class)
[all …]
/external/cldr/tools/java/org/unicode/cldr/tool/
DOption.java235 public Options(Class<?> forClass) { in Options() argument
236 this(forClass.getSimpleName() + ": " + getCLDRToolDescription(forClass)); in Options()
442 private static String getCLDRToolDescription(Class<?> forClass) { in getCLDRToolDescription() argument
443 CLDRTool cldrTool = forClass.getAnnotation(CLDRTool.class); in getCLDRToolDescription()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/
DLexicalDifferenceCalculatorTest.java39 CsmElement element = ConcreteSyntaxModel.forClass(cu.getClass()); in compilationUnitExampleOriginal()
49 CsmElement element = ConcreteSyntaxModel.forClass(cu.getClass()); in compilationUnitExampleWithPackageSet()
62 CsmElement element = ConcreteSyntaxModel.forClass(annotationDeclaration.getClass()); in annotationDeclarationModifiersExampleOriginal()
93 CsmElement element = ConcreteSyntaxModel.forClass(annotationDeclaration.getClass()); in annotationDeclarationModifiersExampleModified()
126 CsmElement element = ConcreteSyntaxModel.forClass(annotationDeclaration.getClass()); in annotationDeclarationNameExampleModified()
159 CsmElement element = ConcreteSyntaxModel.forClass(annotationDeclaration.getClass()); in annotationDeclarationJavadocExampleOriginal()
192 CsmElement element = ConcreteSyntaxModel.forClass(annotationDeclaration.getClass()); in annotationDeclarationJavadocExampleAddingJavadoc()
247 ConcreteSyntaxModel.forClass(BlockStmt.class), in csmModelAfterAddingStatementToEmptyBlock()

1234