/platform_testing/libraries/flag-helpers/junit/test/src/android/platform/test/flag/junit/ |
D | DeviceFlagsValueProviderTest.java | 19 import static org.junit.Assert.assertThrows; 47 assertThrows( in getBoolean_classNotFound_throwException() 54 assertThrows( in getBoolean_noSuchMethod_throwException() 66 assertThrows( in getBoolean_notBooleanFlag_throwException() 75 assertThrows( in getBoolean_aconfigFlagWithNameSpace_throwException() 84 assertThrows( in getBoolean_fromNotExistLegacyFlag_throwException() 91 assertThrows( in getBoolean_fromLegacyNonBooleanFlag_throwException()
|
D | SetFlagsRuleTest.java | 20 import static org.junit.Assert.assertThrows; 93 assertThrows( in invalidFlagName_throwException() 98 assertThrows( in invalidFlagName_throwException() 107 assertThrows( in skipReadOnlyOptimizedFlag() 112 assertThrows( in skipReadOnlyOptimizedFlag() 117 assertThrows( in skipReadOnlyOptimizedFlag() 122 assertThrows( in skipReadOnlyOptimizedFlag()
|
/platform_testing/libraries/motion/tests/src/platform/test/motion/golden/ |
D | TimeSeriesTest.kt | 21 import org.junit.Assert.assertThrows 34 assertThrows(IllegalArgumentException::class.java) { TimeSeries(frameIds, properties) } in moreDataPointsThanFrames_throws() 42 assertThrows(IllegalArgumentException::class.java) { TimeSeries(frameIds, properties) } in lessDataPointsThanFrames_throws()
|
D | JsonGoldenSerializerTest.kt | 24 import org.junit.Assert.assertThrows 139 assertThrows(JSONException::class.java) { in serialize_featureWithMultipleTypesPerDataPoint_throws() 151 assertThrows(JSONException::class.java) { in serialize_featureWithUnknownDataPoints_throws()
|
/platform_testing/libraries/motion/tests/src/platform/test/motion/truth/ |
D | TimeSeriesSubjectTest.kt | 37 with(assertThrows { assertThat(TimeSeries(listOf(), emptyList())).isEqualTo("foo") }) { in <lambda>() 56 with(assertThrows { assertThat(actual).isEqualTo(expected) }) { in <lambda>() 72 with(assertThrows { assertThat(actual).isEqualTo(expected) }) { in <lambda>() 88 with(assertThrows { assertThat(actual).isEqualTo(expected) }) { in <lambda>() 111 with(assertThrows { assertThat(actual).isEqualTo(expected) }) { in <lambda>() 130 with(assertThrows { assertThat(actual).isEqualTo(expected) }) { in <lambda>() 150 with(assertThrows { assertThat(actual).isEqualTo(expected) }) { in <lambda>() 177 private inline fun assertThrows(body: () -> Unit): TruthFailureSubject { in <lambda>() method in platform.test.motion.truth.TimeSeriesSubjectTest
|
D | RecordedMotionSubjectTest.kt | 72 assertThrows { motionRule.assertThat(recordedMotion).timeSeriesMatchesGolden("foo") } in <lambda>() 107 assertThrows { motionRule.assertThat(recordedMotion).timeSeriesMatchesGolden("foo") } in <lambda>() 134 Assert.assertThrows(AssertionError::class.java) { in <lambda>() 142 private inline fun assertThrows(body: () -> Unit): TruthFailureSubject { in <lambda>() method in platform.test.motion.truth.RecordedMotionSubjectTest
|
/platform_testing/libraries/flicker/test/src/android/tools/flicker/surfaceflinger/ |
D | LayerTraceSubjectTest.kt | 21 import android.tools.utils.assertThrows 30 val error = assertThrows<AssertionError> { LayersTraceSubject(trace, reader).isEmpty() } in exceptionContainsDebugInfo()
|
/platform_testing/libraries/flicker/test/src/android/tools/flicker/datastore/ |
D | DataStoreTest.kt | 23 import android.tools.utils.assertThrows 47 assertThrows<IllegalArgumentException> { in throwsErrorAddElementTwice() 66 val failure = assertThrows<IllegalStateException> { DataStore.getResult(TEST_SCENARIO) } in getsElementThrowErrorDoesNotExist() 81 assertThrows<IllegalStateException> { in replacesElementThrowErrorDoesNotExist()
|
D | CachedResultWriterTest.kt | 24 import android.tools.utils.assertThrows 49 assertThrows<IllegalArgumentException> { in writeToStoreFailsWhenWriteTwice()
|
/platform_testing/libraries/flicker/test/src/android/tools/flicker/assertions/ |
D | SubjectsParserTest.kt | 24 import android.tools.utils.assertThrows 38 assertThrows<FileNotFoundException> { in failFileNotFound()
|
/platform_testing/libraries/flicker/test/src/android/tools/flicker/legacy/runner/ |
D | TraceMonitorRuleTest.kt | 25 import android.tools.utils.assertThrows 75 assertThrows<IllegalStateException> { in executesWithStartFailure() 87 assertThrows<IllegalStateException> { in executesStartFailureMonitor2() 99 assertThrows<IllegalStateException> { in executesWithStopFailure() 111 assertThrows<IllegalStateException> { in executesStopFailureMonitor2()
|
D | TransitionExecutionRuleTest.kt | 32 import android.tools.utils.assertThrows 90 assertThrows<IllegalStateException> { in throwsTransitionFailure() 101 assertThrows<IllegalArgumentException> { in throwsTransitionFailureEmptyTransitions() 112 assertThrows<AssertionError> { in throwsAssertionFailure() 155 assertThrows<IllegalArgumentException> { in throwErrorCreateInvalidTagWithSpace() 166 assertThrows<IllegalArgumentException> { in throwErrorCreateInvalidTagDuplicate() 177 assertThrows<IllegalArgumentException> { in throwErrorCreateInvalidTagWithUnderscore()
|
D | SetupTeardownRuleTest.kt | 26 import android.tools.utils.assertThrows 63 assertThrows<IllegalStateException> { in throwsSetupFailureAndExecutesTeardown() 75 assertThrows<IllegalStateException> { in throwsTeardownFailure()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/ |
D | TraceTest.kt | 23 import android.tools.utils.assertThrows 41 assertThrows<Throwable> { trace.getEntryExactlyAt(Timestamps.from(6, 6, 6)) } in getEntryExactlyAtTest() 62 Truth.assertThat(assertThrows<Throwable> { trace.getEntryAt(Timestamps.from(1, 1, 1)) }) in getEntryAtTest()
|
/platform_testing/libraries/motion/tests/src/platform/test/motion/ |
D | MotionTestRuleTest.kt | 28 import org.junit.Assert.assertThrows 61 assertThrows(GoldenNotFoundException::class.java) { in readGoldenTimeSeries_withUnavailableGolden_throwsGoldenNotFoundException() 69 assertThrows(JSONException::class.java) { in readGoldenTimeSeries_withInvalidJsonFile_throwsJSONException() 177 assertThrows(IllegalArgumentException::class.java) { in writeGeneratedTimeSeries_withInvalidIdentifier_throws()
|
/platform_testing/libraries/flag-helpers/junit/test/src/android/platform/test/flag/util/ |
D | FlagTest.java | 22 import static org.junit.Assert.assertThrows; 45 assertThrows( in createFlag_aconfigFlagHasNoPackageName_throwException()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/io/ |
D | ResultReaderTest.kt | 24 import android.tools.utils.assertThrows 49 assertThrows<FileNotFoundException> { in failFileNotFound()
|
D | BaseResultReaderTestParseTrace.kt | 29 import android.tools.utils.assertThrows in <lambda>() 112 assertThrows<IllegalArgumentException> { in <lambda>()
|
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/ |
D | OatDumpCollectorTest.java | 20 import static org.junit.Assert.assertThrows; 118 assertThrows(AssertionError.class, () -> collector.setUp()); in testFailsIfProcessNotSpecified() 127 assertThrows(AssertionError.class, () -> collector.setUp()); in testFailsIfOutputDirNotSpecified()
|
/platform_testing/libraries/flag-helpers/junit/test/src/android/platform/test/flag/junit/host/ |
D | HostFlagsValueProviderTest.java | 20 import static org.junit.Assert.assertThrows; 98 assertThrows( in getBoolean_flagNotExist_throwException() 105 assertThrows( in getBoolean_flagNotBoolean_throwException()
|
/platform_testing/libraries/motion/tests/src/platform/test/motion/view/ |
D | AnimationSamplingTest.kt | 23 import org.junit.Assert.assertThrows 51 assertThrows(IllegalArgumentException::class.java) { in evenlySampled_1_atStartAndEnd_throws()
|
/platform_testing/libraries/collectors-helper/generic/test/src/com/android/helpers/tests/ |
D | GenericExecutableCollectorHelperTest.java | 21 import static org.junit.Assert.assertThrows; 75 assertThrows( in testBadInputDir() 84 assertThrows( in testEmptyDir()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/perfetto/ |
D | ArgsTest.kt | 20 import android.tools.utils.assertThrows in <lambda>() 45 assertThrows<ClassCastException> { args.getChild("int")?.getString() } in <lambda>()
|
/platform_testing/libraries/flicker/test/src/android/tools/flicker/subject/surfaceflinger/ |
D | LayerTraceEntrySubjectTest.kt | 32 import android.tools.utils.assertThrows 57 assertThrows<AssertionError> { in exceptionContainsDebugInfo() 267 assertThrows<AssertionError> { subject.isInvisible(component) } in canUseOrComponentMatcher_visibility_allVisible() 319 assertThrows<AssertionError> { subject.contains(component) } in canUseOrComponentMatcher_contains_withNoneExists() 351 assertThrows<AssertionError> { subject.notContains(component) } in canUseOrComponentMatcher_contains_withBothExists()
|
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/ |
D | ThermalHelperTest.java | 21 import static org.junit.Assert.assertThrows; 269 assertThrows( 280 assertThrows( 291 assertThrows(
|