/external/truth/core/src/test/java/com/google/common/truth/ |
D | ThrowableSubjectTest.java | 68 .hasCauseThat() in hasCauseThat_message() 76 .hasCauseThat() in hasCauseThat_instanceOf() 82 assertThat(new Exception("foobar")).hasCauseThat().isNull(); in hasCauseThat_null() 88 expectFailureWhenTestingThat(actual).hasCauseThat().hasMessageThat().isEqualTo("message"); in hasCauseThat_message_failure() 96 expectFailureWhenTestingThat(actual).hasCauseThat().isInstanceOf(RuntimeException.class); in hasCauseThat_instanceOf_failure() 104 expectFailureWhenTestingThat(actual).hasCauseThat().hasCauseThat().isNull(); in hasCauseThat_tooDeep_failure() 117 .hasCauseThat() in hasCauseThat_deepNull_failure() 118 .hasCauseThat() in hasCauseThat_deepNull_failure()
|
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/ |
D | FuturesGetCheckedTest.java | 67 assertThat(expected).hasCauseThat().isInstanceOf(InterruptedException.class); in testGetCheckedUntimed_interrupted() 89 assertThat(expected).hasCauseThat().isEqualTo(CHECKED_EXCEPTION); in testGetCheckedUntimed_ExecutionExceptionChecked() 99 assertThat(expected).hasCauseThat().isEqualTo(UNCHECKED_EXCEPTION); in testGetCheckedUntimed_ExecutionExceptionUnchecked() 108 assertThat(expected).hasCauseThat().isEqualTo(ERROR); in testGetCheckedUntimed_ExecutionExceptionError() 117 assertThat(expected).hasCauseThat().isEqualTo(OTHER_THROWABLE); in testGetCheckedUntimed_ExecutionExceptionOtherThrowable() 163 assertThat(expected).hasCauseThat().isSameInstanceAs(CHECKED_EXCEPTION); in testGetCheckedUntimed_withGoodAndBadExceptionConstructor() 181 assertThat(expected).hasCauseThat().isInstanceOf(InterruptedException.class); in testGetCheckedTimed_interrupted() 203 assertThat(expected).hasCauseThat().isEqualTo(CHECKED_EXCEPTION); in testGetCheckedTimed_ExecutionExceptionChecked() 212 assertThat(expected).hasCauseThat().isEqualTo(UNCHECKED_EXCEPTION); in testGetCheckedTimed_ExecutionExceptionUnchecked() 221 assertThat(expected).hasCauseThat().isEqualTo(ERROR); in testGetCheckedTimed_ExecutionExceptionError() [all …]
|
D | AbstractServiceTest.java | 374 assertThat(exception.get()).hasCauseThat().isEqualTo(EXCEPTION); in testAwaitTerminated_FailedService() 456 assertThat(e).hasCauseThat().hasMessageThat().isEqualTo("1"); in testManualServiceFailureIdempotence() 551 assertThat(e).hasCauseThat().isEqualTo(EXCEPTION); in testFailingServiceStartAndWait() 566 assertThat(e).hasCauseThat().isEqualTo(EXCEPTION); in testFailingServiceStopAndWait_stopFailing() 583 assertThat(e).hasCauseThat().isEqualTo(EXCEPTION); in testFailingServiceStopAndWait_runFailing() 598 assertThat(e).hasCauseThat().isEqualTo(service.exception); in testThrowingServiceStartAndWait() 613 assertThat(e).hasCauseThat().isEqualTo(service.exception); in testThrowingServiceStopAndWait_stopThrowing() 630 assertThat(e).hasCauseThat().isEqualTo(service.exception); in testThrowingServiceStopAndWait_runThrowing() 654 assertThat(e).hasCauseThat().isEqualTo(EXCEPTION); in testFailureCause_throwsIfNotFailed() 861 assertThat(expected).hasCauseThat().isNull(); in stopping() [all …]
|
D | AbstractIdleServiceTest.java | 70 assertThat(e).hasCauseThat().isSameInstanceAs(exception); in testStart_failed() 89 assertThat(e).hasCauseThat().isSameInstanceAs(exception); in testStop_failed() 119 assertThat(e).hasCauseThat().isSameInstanceAs(exception); in testStart_failed() 166 assertThat(e).hasCauseThat().isSameInstanceAs(exception); in testStop_failed()
|
D | AbstractExecutionThreadServiceTest.java | 182 assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("kaboom!"); in testServiceThrowOnStartUp() 220 assertThat(expected).hasCauseThat().isEqualTo(service.failureCause()); in testServiceThrowOnRun() 221 assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("kaboom!"); in testServiceThrowOnRun() 237 assertThat(expected).hasCauseThat().isEqualTo(service.failureCause()); in testServiceThrowOnRunAndThenAgainOnShutDown() 238 assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("kaboom!"); in testServiceThrowOnRunAndThenAgainOnShutDown()
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | FuturesGetCheckedTest.java | 67 assertThat(expected).hasCauseThat().isInstanceOf(InterruptedException.class); in testGetCheckedUntimed_interrupted() 89 assertThat(expected).hasCauseThat().isEqualTo(CHECKED_EXCEPTION); in testGetCheckedUntimed_ExecutionExceptionChecked() 99 assertThat(expected).hasCauseThat().isEqualTo(UNCHECKED_EXCEPTION); in testGetCheckedUntimed_ExecutionExceptionUnchecked() 108 assertThat(expected).hasCauseThat().isEqualTo(ERROR); in testGetCheckedUntimed_ExecutionExceptionError() 117 assertThat(expected).hasCauseThat().isEqualTo(OTHER_THROWABLE); in testGetCheckedUntimed_ExecutionExceptionOtherThrowable() 163 assertThat(expected).hasCauseThat().isSameInstanceAs(CHECKED_EXCEPTION); in testGetCheckedUntimed_withGoodAndBadExceptionConstructor() 181 assertThat(expected).hasCauseThat().isInstanceOf(InterruptedException.class); in testGetCheckedTimed_interrupted() 203 assertThat(expected).hasCauseThat().isEqualTo(CHECKED_EXCEPTION); in testGetCheckedTimed_ExecutionExceptionChecked() 212 assertThat(expected).hasCauseThat().isEqualTo(UNCHECKED_EXCEPTION); in testGetCheckedTimed_ExecutionExceptionUnchecked() 221 assertThat(expected).hasCauseThat().isEqualTo(ERROR); in testGetCheckedTimed_ExecutionExceptionError() [all …]
|
D | AbstractServiceTest.java | 374 assertThat(exception.get()).hasCauseThat().isEqualTo(EXCEPTION); in testAwaitTerminated_FailedService() 456 assertThat(e).hasCauseThat().hasMessageThat().isEqualTo("1"); in testManualServiceFailureIdempotence() 551 assertThat(e).hasCauseThat().isEqualTo(EXCEPTION); in testFailingServiceStartAndWait() 566 assertThat(e).hasCauseThat().isEqualTo(EXCEPTION); in testFailingServiceStopAndWait_stopFailing() 583 assertThat(e).hasCauseThat().isEqualTo(EXCEPTION); in testFailingServiceStopAndWait_runFailing() 598 assertThat(e).hasCauseThat().isEqualTo(service.exception); in testThrowingServiceStartAndWait() 613 assertThat(e).hasCauseThat().isEqualTo(service.exception); in testThrowingServiceStopAndWait_stopThrowing() 630 assertThat(e).hasCauseThat().isEqualTo(service.exception); in testThrowingServiceStopAndWait_runThrowing() 654 assertThat(e).hasCauseThat().isEqualTo(EXCEPTION); in testFailureCause_throwsIfNotFailed() 861 assertThat(expected).hasCauseThat().isNull(); in stopping() [all …]
|
D | AbstractIdleServiceTest.java | 70 assertThat(e).hasCauseThat().isSameInstanceAs(exception); in testStart_failed() 89 assertThat(e).hasCauseThat().isSameInstanceAs(exception); in testStop_failed() 119 assertThat(e).hasCauseThat().isSameInstanceAs(exception); in testStart_failed() 166 assertThat(e).hasCauseThat().isSameInstanceAs(exception); in testStop_failed()
|
D | AbstractExecutionThreadServiceTest.java | 182 assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("kaboom!"); in testServiceThrowOnStartUp() 220 assertThat(expected).hasCauseThat().isEqualTo(service.failureCause()); in testServiceThrowOnRun() 221 assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("kaboom!"); in testServiceThrowOnRun() 237 assertThat(expected).hasCauseThat().isEqualTo(service.failureCause()); in testServiceThrowOnRunAndThenAgainOnShutDown() 238 assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("kaboom!"); in testServiceThrowOnRunAndThenAgainOnShutDown()
|
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/robotests/ |
D | CrossProfileTypeProfileTest.java | 262 assertThat(expected).hasCauseThat().isInstanceOf(CustomRuntimeException.class); in personal_synchronous_runningOnWork_throwsException_exceptionIsWrapped() 275 assertThat(expected).hasCauseThat().isInstanceOf(CustomRuntimeException.class); in work_synchronous_runningOnPersonal_throwsException_exceptionIsWrapped() 288 assertThat(expected).hasCauseThat().isInstanceOf(CustomRuntimeException.class); in primary_synchronous_runningOnSecondaryProfile_throwsException_exceptionIsWrapped() 301 assertThat(expected).hasCauseThat().isInstanceOf(CustomRuntimeException.class); in secondary_synchronous_runningOnPrimaryProfile_throwsException_exceptionIsWrapped() 353 assertThat(expected).hasCauseThat().isInstanceOf(CustomRuntimeException.class); in personal_async_runningOnWork_throwsException_exceptionIsWrapped() 368 assertThat(expected).hasCauseThat().isInstanceOf(CustomRuntimeException.class); in work_async_runningOnPersonal_throwsException_exceptionIsWrapped() 383 assertThat(expected).hasCauseThat().isInstanceOf(CustomRuntimeException.class); in primary_async_runningOnSecondaryProfile_throwsException_exceptionIsWrapped() 398 assertThat(expected).hasCauseThat().isInstanceOf(CustomRuntimeException.class); in secondary_async_runningOnPrimaryProfile_throwsException_exceptionIsWrapped() 464 assertThat(expected).hasCauseThat().isInstanceOf(CustomRuntimeException.class); in personal_future_runningOnWork_throwsException_wrapsInProfileRuntimeException() 476 assertThat(expected).hasCauseThat().isInstanceOf(CustomRuntimeException.class); in work_future_runningOnPersonal_throwsException_exceptionIsWrapped() [all …]
|
/external/downloader/src/test/java/com/google/android/downloader/ |
D | CronetUrlEngineTest.java | 121 assertThat(exception).hasCauseThat().isInstanceOf(RequestException.class); in executeRequest_fileUrl_requestFails() 122 assertThat(exception).hasCauseThat().hasCauseThat().isInstanceOf(NetworkException.class); in executeRequest_fileUrl_requestFails() 124 .hasCauseThat() in executeRequest_fileUrl_requestFails() 125 .hasCauseThat() in executeRequest_fileUrl_requestFails()
|
D | MockWebServerUrlEngineTestHelper.java | 224 assertThat(exception).hasCauseThat().isInstanceOf(RequestException.class); in executeRequest_closeBeforeWrite_failsAborted() 237 assertThat(exception).hasCauseThat().isInstanceOf(RequestException.class); in executeRequest_serverError_failsInternalError() 258 assertThat(exception).hasCauseThat().isInstanceOf(RequestException.class); in executeRequest_networkError_failsInternalError() 281 assertThat(exception).hasCauseThat().isInstanceOf(RequestException.class); in executeRequest_writeError_failsInternalError() 283 assertThat(requestException).hasCauseThat().isInstanceOf(IOException.class); in executeRequest_writeError_failsInternalError() 284 assertThat(requestException).hasCauseThat().hasMessageThat().isEqualTo(errorMessage); in executeRequest_writeError_failsInternalError() 315 assertThat(exception).hasCauseThat().isInstanceOf(RequestException.class); in executeRequest_invalidUrl_failsInvalidArgument()
|
/external/pigweed/pw_rpc/java/test/dev/pigweed/pw_rpc/ |
D | FutureCallTest.java | 78 assertThat(exception).hasCauseThat().isInstanceOf(RpcError.class); in unaryFuture_serverError_setsException() 94 assertThat(exception).hasCauseThat().isInstanceOf(RpcError.class); in unaryFuture_cancelOnCall_cancelsTheCallAndFuture() 110 assertThat(exception).hasCauseThat().isInstanceOf(RpcError.class); in unaryFuture_cancelOnFuture_cancelsTheCallAndFuture() 129 assertThat(exception).hasCauseThat().isInstanceOf(RpcError.class); in unaryFuture_cancelOnFutureSendFails_cancelsTheCallAndFuture() 148 assertThat(exception).hasCauseThat().isInstanceOf(IllegalStateException.class); in unaryFuture_multipleResponses_setsException() 175 assertThat(exception).hasCauseThat().isInstanceOf(ChannelOutputException.class); in unaryFuture_exceptionDuringStart() 210 assertThat(exception).hasCauseThat().isInstanceOf(RpcError.class); in bidirectionalStreamingFuture_serverError_setsException()
|
/external/pigweed/pw_transfer/java/test/dev/pigweed/pw_transfer/ |
D | TransferClientTest.java | 130 assertThat(thrown).hasCauseThat().isInstanceOf(TransferError.class); in legacy_read_failedPreconditionError_abortsAfterInitialPacket() 152 assertThat(thrown).hasCauseThat().isInstanceOf(TransferError.class); in legacy_read_failedPreconditionErrorMaxRetriesTimes_aborts() 372 assertThat(thrown).hasCauseThat().isInstanceOf(TransferError.class); in legacy_read_multipleWithSameId_atSameTime_failsWithAlreadyExistsError() 384 assertThat(thrown).hasCauseThat().isInstanceOf(TransferError.class); in legacy_read_sendErrorOnFirstPacket_fails() 385 assertThat(thrown).hasCauseThat().hasCauseThat().isSameInstanceAs(exception); in legacy_read_sendErrorOnFirstPacket_fails() 401 assertThat(thrown).hasCauseThat().isInstanceOf(TransferError.class); in legacy_read_sendErrorOnLaterPacket_aborts() 402 assertThat(thrown).hasCauseThat().hasCauseThat().isSameInstanceAs(exception); in legacy_read_sendErrorOnLaterPacket_aborts() 424 assertThat(thrown).hasCauseThat().isInstanceOf(TransferError.class); in legacy_read_transferProtocolError_aborts() 485 assertThat(thrown).hasCauseThat().isInstanceOf(TransferError.class); in legacy_write_platformTransferDisabled_aborted() 528 assertThat(thrown).hasCauseThat().isInstanceOf(TransferError.class); in legacy_write_failedPreconditionError_abortsAfterInitialPacket() [all …]
|
/external/guava/android/guava-tests/test/com/google/common/cache/ |
D | AbstractLoadingCacheTest.java | 58 assertThat(expected).hasCauseThat().isEqualTo(cause); in testGetUnchecked_checked() 90 assertThat(expected).hasCauseThat().isEqualTo(cause); in testGetUnchecked_unchecked() 122 assertThat(expected).hasCauseThat().isEqualTo(cause); in testGetUnchecked_error() 154 assertThat(expected).hasCauseThat().isEqualTo(cause); in testGetUnchecked_otherThrowable()
|
D | CacheLoadingTest.java | 94 assertThat(popLoggedThrowable()).hasCauseThat().isSameInstanceAs(t); in checkLoggedCause() 892 assertThat(expected).hasCauseThat().isSameInstanceAs(e); in testLoadError() 904 assertThat(expected).hasCauseThat().isSameInstanceAs(e); in testLoadError() 932 assertThat(expected).hasCauseThat().isSameInstanceAs(callableError); in testLoadError() 944 assertThat(expected).hasCauseThat().isSameInstanceAs(e); in testLoadError() 1125 assertThat(expected).hasCauseThat().isSameInstanceAs(e); in testBulkLoadError() 1148 assertThat(expected).hasCauseThat().isSameInstanceAs(e); in testLoadCheckedException() 1160 assertThat(expected).hasCauseThat().isSameInstanceAs(e); in testLoadCheckedException() 1181 assertThat(expected).hasCauseThat().isSameInstanceAs(callableException); in testLoadCheckedException() 1193 assertThat(expected).hasCauseThat().isSameInstanceAs(e); in testLoadCheckedException() [all …]
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | AbstractLoadingCacheTest.java | 58 assertThat(expected).hasCauseThat().isEqualTo(cause); in testGetUnchecked_checked() 90 assertThat(expected).hasCauseThat().isEqualTo(cause); in testGetUnchecked_unchecked() 122 assertThat(expected).hasCauseThat().isEqualTo(cause); in testGetUnchecked_error() 154 assertThat(expected).hasCauseThat().isEqualTo(cause); in testGetUnchecked_otherThrowable()
|
D | CacheLoadingTest.java | 94 assertThat(popLoggedThrowable()).hasCauseThat().isSameInstanceAs(t); in checkLoggedCause() 892 assertThat(expected).hasCauseThat().isSameInstanceAs(e); in testLoadError() 904 assertThat(expected).hasCauseThat().isSameInstanceAs(e); in testLoadError() 932 assertThat(expected).hasCauseThat().isSameInstanceAs(callableError); in testLoadError() 944 assertThat(expected).hasCauseThat().isSameInstanceAs(e); in testLoadError() 1125 assertThat(expected).hasCauseThat().isSameInstanceAs(e); in testBulkLoadError() 1148 assertThat(expected).hasCauseThat().isSameInstanceAs(e); in testLoadCheckedException() 1160 assertThat(expected).hasCauseThat().isSameInstanceAs(e); in testLoadCheckedException() 1181 assertThat(expected).hasCauseThat().isSameInstanceAs(callableException); in testLoadCheckedException() 1193 assertThat(expected).hasCauseThat().isSameInstanceAs(e); in testLoadCheckedException() [all …]
|
/external/dagger2/javatests/dagger/functional/producers/badexecutor/ |
D | BadExecutorTest.java | 63 assertThat(e).hasCauseThat().isInstanceOf(RejectedExecutionException.class); in rejectNoArgMethod() 73 assertThat(e).hasCauseThat().isInstanceOf(RejectedExecutionException.class); in rejectSingleArgMethod() 83 assertThat(e).hasCauseThat().isInstanceOf(RejectedExecutionException.class); in rejectSingleArgFromComponentDepMethod()
|
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/testing/ |
D | FakeCrossProfileTypeTest.java | 437 assertThat(expected).hasCauseThat().isInstanceOf(CustomRuntimeException.class); in other_synchronous_throwsRuntimeException_exceptionIsWrapped() 448 assertThat(expected).hasCauseThat().isInstanceOf(CustomError.class); in other_synchronous_throwsError_exceptionIsWrapped() 480 assertThat(expected).hasCauseThat().isInstanceOf(CustomRuntimeException.class); in other_async_throwsRuntimeException_exceptionIsWrapped() 493 assertThat(expected).hasCauseThat().isInstanceOf(CustomError.class); in other_async_throwsError_errorIsWrapped() 519 assertThat(expected).hasCauseThat().isInstanceOf(CustomRuntimeException.class); in other_future_throwsRuntimeException_exceptionIsWrapped() 529 assertThat(expected).hasCauseThat().isInstanceOf(CustomError.class); in other_future_throwsError_errorIsWrapped() 542 assertThat(expected).hasCauseThat().isInstanceOf(CustomRuntimeException.class); in both_synchronous_throwsRuntimeException_exceptionIsThrown() 555 assertThat(expected).hasCauseThat().isInstanceOf(CustomError.class); in both_synchronous_throwsError_errorIsThrown() 570 assertThat(expected).hasCauseThat().isInstanceOf(CustomRuntimeException.class); in both_async_throwsRuntimeException_exceptionIsThrown() 585 assertThat(expected).hasCauseThat().isInstanceOf(CustomError.class); in both_async_throwsError_errorIsThrown() [all …]
|
/external/dagger2/javatests/dagger/producers/internal/ |
D | ProducersTest.java | 53 .hasCauseThat() in createFutureProduced_failure() 73 .hasCauseThat() in createFutureProduced_cancelDoesNotPropagateForwards() 101 assertThat(e).hasCauseThat().hasMessageThat().isEqualTo("monkey"); in createFutureSingletonSet_failure() 127 assertThat(e).hasCauseThat().hasMessageThat().isEqualTo("gorilla"); in allAsSet_failure()
|
D | SetProducerTest.java | 59 assertThat(e).hasCauseThat().isInstanceOf(NullPointerException.class); in delegateNpe() 74 assertThat(e).hasCauseThat().isInstanceOf(NullPointerException.class); in delegateSetNpe() 91 assertThat(e).hasCauseThat().isInstanceOf(NullPointerException.class); in delegateElementNpe()
|
D | SetOfProducedProducerTest.java | 77 .hasCauseThat() in delegateNpe() 91 .hasCauseThat() in delegateSetNpe() 106 .hasCauseThat() in delegateElementNpe() 122 .hasCauseThat() in oneOfDelegateElementNpe()
|
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/downloader/ |
D | ModelDownloaderImplTest.java | 85 assertThat(t).hasCauseThat().isInstanceOf(ModelDownloadException.class); in downloadManifest_failToBind() 123 assertThat(t).hasCauseThat().isInstanceOf(ModelDownloadException.class); in downloadManifest_failToDownload() 146 assertThat(t).hasCauseThat().isInstanceOf(ModelDownloadException.class); in downloadManifest_failToParse() 186 assertThat(t).hasCauseThat().isInstanceOf(ModelDownloadException.class); in downloadModel_failToBind() 226 assertThat(t).hasCauseThat().isInstanceOf(ModelDownloadException.class); in downloadModel_failToDownload() 249 assertThat(t).hasCauseThat().isInstanceOf(ModelDownloadException.class); in downloadModel_failToValidate()
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/transformer/src/androidTest/java/com/google/android/exoplayer2/transformer/ |
D | FrameEditorTest.java | 67 assertThat(exception).hasCauseThat().isInstanceOf(UnsupportedOperationException.class); in create_withUnsupportedPixelWidthHeightRatio_throwsException() 68 assertThat(exception).hasCauseThat().hasMessageThat().contains("pixelWidthHeightRatio"); in create_withUnsupportedPixelWidthHeightRatio_throwsException()
|