Home
last modified time | relevance | path

Searched refs:assertThrows (Results 1 – 25 of 39) sorted by relevance

12

/platform_testing/libraries/flag-helpers/junit/test/src/android/platform/test/flag/junit/
DDeviceFlagsValueProviderTest.java19 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()
DSetFlagsRuleTest.java20 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/
DTimeSeriesTest.kt21 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()
DJsonGoldenSerializerTest.kt24 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/
DTimeSeriesSubjectTest.kt37 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
DRecordedMotionSubjectTest.kt72 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/
DLayerTraceSubjectTest.kt21 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/
DDataStoreTest.kt23 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()
DCachedResultWriterTest.kt24 import android.tools.utils.assertThrows
49 assertThrows<IllegalArgumentException> { in writeToStoreFailsWhenWriteTwice()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/assertions/
DSubjectsParserTest.kt24 import android.tools.utils.assertThrows
38 assertThrows<FileNotFoundException> { in failFileNotFound()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/legacy/runner/
DTraceMonitorRuleTest.kt25 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()
DTransitionExecutionRuleTest.kt32 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()
DSetupTeardownRuleTest.kt26 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/
DTraceTest.kt23 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/
DMotionTestRuleTest.kt28 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/
DFlagTest.java22 import static org.junit.Assert.assertThrows;
45 assertThrows( in createFlag_aconfigFlagHasNoPackageName_throwException()
/platform_testing/libraries/flicker/utils/test/src/android/tools/io/
DResultReaderTest.kt24 import android.tools.utils.assertThrows
49 assertThrows<FileNotFoundException> { in failFileNotFound()
DBaseResultReaderTestParseTrace.kt29 import android.tools.utils.assertThrows in <lambda>()
112 assertThrows<IllegalArgumentException> { in <lambda>()
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DOatDumpCollectorTest.java20 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/
DHostFlagsValueProviderTest.java20 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/
DAnimationSamplingTest.kt23 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/
DGenericExecutableCollectorHelperTest.java21 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/
DArgsTest.kt20 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/
DLayerTraceEntrySubjectTest.kt32 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/
DThermalHelperTest.java21 import static org.junit.Assert.assertThrows;
269 assertThrows(
280 assertThrows(
291 assertThrows(

12