Home
last modified time | relevance | path

Searched refs:forClass (Results 1 – 25 of 77) 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 …]
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()
245 ArgumentCaptor<MetadataApplier> applierCaptor = ArgumentCaptor.forClass(null); in applyMetadata_delayed()
267 ArgumentCaptor<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()
DAbstractClientStreamTest.java333 ArgumentCaptor<Status> statusCaptor = ArgumentCaptor.forClass(Status.class); in rstStreamClosesStream()
350 ArgumentCaptor<Status> statusCaptor = ArgumentCaptor.forClass(Status.class); in trailerOkWithTruncatedMessage()
368 ArgumentCaptor<Status> statusCaptor = ArgumentCaptor.forClass(Status.class); in trailerNotOkWithTruncatedMessage()
393 ArgumentCaptor<byte[]> payloadCaptor = ArgumentCaptor.forClass(byte[].class); in getRequest()
436 ArgumentCaptor<Metadata> headersCaptor = ArgumentCaptor.forClass(Metadata.class); in deadlineTimeoutPopulatedToHeaders()
/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()
DHealthStatusManagerTest.java87 ArgumentCaptor<StatusException> exception = ArgumentCaptor.forClass(StatusException.class); in checkStatusNotFound()
108 ArgumentCaptor<StatusException> exception = ArgumentCaptor.forClass(StatusException.class); in notFoundForClearedStatus()
/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/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()
DNettyServerHandlerTest.java299 ArgumentCaptor<Status> statusCap = ArgumentCaptor.forClass(Status.class); in clientCancelShouldForwardToStreamListener()
325 ArgumentCaptor<Status> captor = ArgumentCaptor.forClass(Status.class); in streamErrorShouldNotCloseChannel()
360 ArgumentCaptor<Status> captor = ArgumentCaptor.forClass(Status.class); in channelInactiveShouldCloseStreams()
370 ArgumentCaptor<Http2Settings> captor = ArgumentCaptor.forClass(Http2Settings.class); in shouldAdvertiseMaxConcurrentStreams()
382 ArgumentCaptor<Http2Settings> captor = ArgumentCaptor.forClass(Http2Settings.class); in shouldAdvertiseMaxHeaderListSize()
499 ArgumentCaptor.forClass(NettyServerStream.class); in headersSupportExtensionContentType()
500 ArgumentCaptor<String> methodCaptor = ArgumentCaptor.forClass(String.class); in headersSupportExtensionContentType()
1043 ArgumentCaptor.forClass(NettyServerStream.class); in createStream()
1044 ArgumentCaptor<String> methodCaptor = ArgumentCaptor.forClass(String.class); in createStream()
/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()
132 return calculatedSyntaxModelForNode(ConcreteSyntaxModel.forClass(node.getClass()), node); in calculatedSyntaxModelForNode()
276 …return calculatedSyntaxModelAfterPropertyChange(ConcreteSyntaxModel.forClass(node.getClass()), nod… in calculatedSyntaxModelAfterPropertyChange()
304 CsmElement csm = ConcreteSyntaxModel.forClass(container.getClass()); in calculatedSyntaxModelAfterListAddition()
315 CsmElement csm = ConcreteSyntaxModel.forClass(container.getClass()); in calculatedSyntaxModelAfterListRemoval()
/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/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/
DTypeNames.java39 public static TypeName forClass(Class<?> clazz) { in forClass() method in TypeNames
41 return PrimitiveName.forClass(clazz); in forClass()
45 return new ArrayTypeName(forClass(clazz.getComponentType())); in forClass()
/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/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()
DRouteGuideClientTest.java158 ArgumentCaptor<Throwable> errorCaptor = ArgumentCaptor.forClass(Throwable.class); in getFeature_error()
234 ArgumentCaptor<Throwable> errorCaptor = ArgumentCaptor.forClass(Throwable.class); in listFeatures_error()
348 ArgumentCaptor<Throwable> errorCaptor = ArgumentCaptor.forClass(Throwable.class); in recordRoute_serverError()
514 ArgumentCaptor<Throwable> errorCaptor = ArgumentCaptor.forClass(Throwable.class); in routeChat_errorResponse()
/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/javaparser/javaparser-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/
DLexicalDifferenceCalculatorTest.java35 CsmElement element = ConcreteSyntaxModel.forClass(cu.getClass()); in compilationUnitExampleOriginal()
45 CsmElement element = ConcreteSyntaxModel.forClass(cu.getClass()); in compilationUnitExampleWithPackageSet()
58 CsmElement element = ConcreteSyntaxModel.forClass(annotationDeclaration.getClass()); in annotationDeclarationModifiersExampleOriginal()
89 CsmElement element = ConcreteSyntaxModel.forClass(annotationDeclaration.getClass()); in annotationDeclarationModifiersExampleModified()
122 CsmElement element = ConcreteSyntaxModel.forClass(annotationDeclaration.getClass()); in annotationDeclarationNameExampleModified()
155 CsmElement element = ConcreteSyntaxModel.forClass(annotationDeclaration.getClass()); in annotationDeclaratioJavadocExampleOriginal()
188 CsmElement element = ConcreteSyntaxModel.forClass(annotationDeclaration.getClass()); in annotationDeclaratioJavadocExampleAddingJavadoc()
243 ConcreteSyntaxModel.forClass(BlockStmt.class), in csmModelAfterAddingStatementToEmptyBlock()
/external/cldr/tools/java/org/unicode/cldr/tool/
DOption.java234 public Options(Class<?> forClass) { in Options() argument
235 this(forClass.getSimpleName() + ": " + getCLDRToolDescription(forClass)); in Options()
441 private static String getCLDRToolDescription(Class<?> forClass) { in getCLDRToolDescription() argument
442 CLDRTool cldrTool = forClass.getAnnotation(CLDRTool.class); in getCLDRToolDescription()
/external/volley/src/test/java/com/android/volley/
DCacheDispatcherTest.java122 ArgumentCaptor<Runnable> runnable = ArgumentCaptor.forClass(Runnable.class); in softExpiredCacheHit()
194 ArgumentCaptor<Runnable> runnable = ArgumentCaptor.forClass(Runnable.class); in duplicateSoftExpiredCacheHit_failedRequest()
223 ArgumentCaptor<Runnable> runnable = ArgumentCaptor.forClass(Runnable.class); in duplicateSoftExpiredCacheHit_successfulRequest()
DNetworkDispatcherTest.java69 ArgumentCaptor<Response> response = ArgumentCaptor.forClass(Response.class); in successPostsResponse()
142 ArgumentCaptor<Cache.Entry> entry = ArgumentCaptor.forClass(Cache.Entry.class); in shouldCacheTrue()

1234