Home
last modified time | relevance | path

Searched refs:fail (Results 1 – 25 of 264) sorted by relevance

1234567891011

/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DZFileReadOnlyTest.java21 import static org.junit.Assert.fail;
39 fail(); in cannotCreateRoFileOnNonExistingFile()
60 fail(); in cannotUpdateInRoMode()
72 fail(); in cannotAddFilesInRoMode()
85 fail(); in cannotAddRecursivelyInRoMode()
97 fail(); in cannotReplaceFilesInRoMode()
111 fail(); in cannotDeleteFilesInRoMode()
124 fail(); in cannotMergeInRoMode()
137 fail(); in cannotTouchInRoMode()
149 fail(); in cannotRealignInRoMode()
[all …]
/tools/ndkports/src/test/kotlin/com/android/ndkports/
DResultTest.kt21 import kotlin.test.fail
31 fail() in onFailure executes block on failure()
37 result.onFailure { fail() } in onFailure does not execute block on success()
53 fail() in onSuccess executes block on success()
59 result.onSuccess { fail() } in onSuccess does not execute block on failure()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DByteArrayListTest.java155 fail("IndexOutOfBoundsException not thrown"); in testRetrieve()
201 fail("IllegalArgumentException not thrown"); in testLimits_setSize()
212 fail("IllegalArgumentException not thrown"); in testLimits_ensureCapacity()
223 fail("IndexOutOfBoundsException not thrown"); in testLimits_get()
231 fail("IndexOutOfBoundsException not thrown"); in testLimits_get()
240 fail("IndexOutOfBoundsException not thrown"); in testLimits_set()
248 fail("IndexOutOfBoundsException not thrown"); in testLimits_set()
257 fail("IllegalArgumentException not thrown"); in testLimits_constructor()
266 fail("IllegalArgumentException not thrown"); in testLimits_constructor()
275 fail("IllegalArgumentException not thrown"); in testLimits_constructor()
DRunUtilTest.java22 import static org.junit.Assert.fail;
164 fail("RunInterruptedException was expected, but not thrown."); in testRunTimed_interrupted()
201 fail("could set working dir on RunUtil.getDefault()"); in testSetWorkingDir_default()
215 fail("could set env var on RunUtil.getDefault()"); in testSetEnvVariable_default()
229 fail("could unset env var on RunUtil.getDefault()"); in testUnsetEnvVariable_default()
285 fail("RunInterruptedException was expected, but not thrown."); in testInterrupt()
304 fail("RunInterruptedException was expected, but not thrown."); in testInterrupt_delayed()
321 fail("RunInterruptedException was expected, but not thrown."); in testInterrupt_multiple()
343 fail("Failed to create output files: " + e.getMessage()); in testRuntimedCmd_withFileOutputStream()
360 fail(e.getMessage()); in testRuntimedCmd_withFileOutputStream()
[all …]
DSerializationUtilTest.java20 import static org.junit.Assert.fail;
100 fail("Should have thrown an exception."); in testDeserialize_noFile()
118 fail("Should have thrown an exception."); in testSerialize_Deserialize_corrupted()
135 fail("Should have thrown an exception."); in testSerialized_notSerializable()
DQuotationAwareTokenizerTest.java33 fail(String.format("Expected and observed arrays are different lengths: expected %s " + in verify()
134 fail("IllegalArgumentException not thrown."); in testTokenizeLine_endOnQuote()
148 fail("IllegalArgumentException not thrown."); in testTokenizeLine_endWithEscape()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationXmlParserTest.java20 import static org.junit.Assert.fail;
85 fail("Should have thrown an exception."); in testParse_interleaved()
156 fail("ConfigurationException not thrown"); in testParse_objectMissingAttr()
169 fail("ConfigurationException not thrown"); in testParse_optionMissingAttr()
222 fail("ConfigurationException not thrown"); in testParse_includeMissing()
234 fail("ConfigurationException not thrown"); in testParse_badTag()
246 fail("ConfigurationException not thrown"); in testParse_xml()
295 fail("An exception should have been thrown."); in testParse_deviceTagNoName()
350 fail("An exception should have been thrown."); in testParse_deviceTagAndObjectOutside()
378 fail("An exception should have been thrown."); in testParse_withDeviceTag()
[all …]
DConfigurationFactoryTest.java128 fail( in testLoadAllConfigs()
324 fail("did not throw ConfigurationException"); in testCreateConfigurationFromArgs_missing()
348 fail("did not throw ConfigurationException"); in testCreateConfigurationFromArgs_empty()
373 fail("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_unprocessedArgs()
530 fail("Should have thrown an exception."); in testCreateConfigurationFromArgs_repeatedTemplate()
552 fail("Should have thrown an exception."); in testCreateConfigurationFromArgs_templateInclude_multiKey()
567 fail ("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_templateInclude_unspecified()
601 fail ("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_templateInclude_missing()
681 fail ("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_templateInclude_dependent_missing()
704 fail ("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_templateInclude_dependent_nodefault()
[all …]
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/importers/ftrace/
DEventTestHelpers.kt23 import kotlin.test.fail
27 line.asSlice()) ?: fail("Failed to parseEvent event '${line}'") in parseEvent()
33 … ?: fail("Details expected ${T::class.simpleName}, got ${event.details::class.simpleName}") in detailsFor()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DValidateSuiteConfigHelperTest.java19 import static org.junit.Assert.fail;
65 fail("Should have thrown an exception."); in testNotRunningAsSuite_buildProvider()
85 fail("Should have thrown an exception."); in testNotRunningAsSuite_MultiDevice_buildProvider()
119 fail("Should have thrown an exception."); in testNotRunningAsSuite_resultReporter()
135 fail("Should have thrown an exception."); in testNotRunningAsSuite_multi_resultReporter()
159 fail("Should have thrown an exception."); in testMetricCollectors()
195 fail("Should have thrown an exception."); in testModuleController_fail()
/tools/test/connectivity/acts/framework/tests/libs/
Dversion_selector_test.py135 self.fail('Placing the @staticmethod decorator after the '
149 self.fail('Placing the @classmethod decorator after the '
165 self.fail('Overwriting a function that already exists without a '
183 self.fail('Using two different versioning decorators to version a '
200 self.fail('Decorated functions with overlapping version ranges '
213 self.fail(
/tools/test/graphicsbenchmark/performance_tests/hostside/test/com/android/game/qualification/metric/
DGameQualificationScheduledMetricCollectorTest.java19 import static org.junit.Assert.fail;
41 fail(e.getMessage()); in checkConcurrency()
58 fail(e.getMessage()); in checkConcurrency()
/tools/test/connectivity/acts/tests/google/tel/live/
DTelLivePostflightTest.py20 from acts.asserts import fail
62 fail(msg)
82 fail(msg)
94 fail(msg)
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/importers/
DDummyImportFeedback.kt19 import org.junit.Assert.fail
33 fail(warning) in reportImportWarning()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DGceAvdInfoTest.java22 import static org.junit.Assert.fail;
176 fail("A TargetSetupError should have been thrown."); in testMultipleGceJsonParsing()
187 fail("A TargetSetupError should have been thrown."); in testInvalidJsonParsing()
207 fail("A TargetSetupError should have been thrown."); in testMissingGceJsonParsing()
260 fail("A TargetSetupError should have been thrown."); in testValidGceJsonParsingFailQuota()
310 fail("A TargetSetupError should have been thrown."); in testParseJson_fail_error()
/tools/loganalysis/tests/src/com/android/loganalysis/util/config/
DArgsOptionParserTest.java247 fail("ConfigurationException not thrown when updating an IMMUTABLE option"); in testOptionUpdateRule_immutable()
258 fail("ConfigurationException not thrown when updating an IMMUTABLE option"); in testOptionUpdateRule_immutable()
302 fail("ConfigurationException not thrown when assigning a global option to an @Option " + in testNonGlobalOptionSource_global()
310 fail("ConfigurationException not thrown when assigning a global option to an @Option " + in testNonGlobalOptionSource_global()
365 fail("ConfigurationException not thrown"); in testParseMapArg_mismatchKeyType()
385 fail("ConfigurationException not thrown"); in testParseMapArg_mismatchValueType()
403 fail("ConfigurationException not thrown"); in testParseMapArg_missingKey()
420 fail("ConfigurationException not thrown"); in testParseMapArg_missingValue()
529 fail("ConfigurationException not thrown"); in testParse_missingValue()
543 fail("ConfigurationException not thrown"); in testParse_optionNotPresent()
[all …]
DOptionSetterTest.java217 fail("ConfigurationException not thrown"); in testOptionSetter_noType()
229 fail("ConfigurationException not thrown"); in testOptionSetter_duplicateOptions()
307 fail("ConfigurationException not thrown"); in testOptionSetter_sharedOptionsDiffType()
345 fail("ConfigurationException not thrown"); in testOptionSetter_unparamType()
357 fail("ConfigurationException not thrown"); in testOptionSetter_genericType()
381 fail("ConfigurationException not thrown"); in testOptionSetter_badOptionName()
394 fail("ConfigurationException not thrown"); in testIsBooleanOption_unknown()
432 fail("ConfigurationException not thrown"); in testSetOptionValue_unknown()
445 fail("ConfigurationException not thrown"); in testSetOptionValue_unknownType()
458 fail("ConfigurationException not thrown"); in testSetOptionValue_unparameterizedType()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DPerfettoPreparer.java57 fail("Failed to find the local binary perfetto file", null, device); in setUp()
59 fail("Failed to push the binary perfetto file", null, device); in setUp()
68 private void fail(String message, Throwable cause, ITestDevice device) throws TargetSetupError { in fail() method in PerfettoPreparer
/tools/test/connectivity/acts/tests/google/wifi/
DWifiDppTest.py125 asserts.fail("Must specify wifi_psk_network and wifi_sae_network for DPP R2 tests")
262 asserts.fail("gen_uri: Failed to generate a URI. Command used: %s" % cmd)
265 asserts.fail("gen_uri: Helper device not responding correctly, may need to restart it."
289 asserts.fail("get_uri: Failed to read URI. Command used: %s" % cmd)
332 asserts.fail("start_responder: Must specify net_role sta or ap")
396 asserts.fail(
404 asserts.fail(
427 asserts.fail("start_responder: Must specify net_role sta or ap")
437 asserts.fail("start_responder_enrollee: Failure. Command used: %s" % cmd)
451 asserts.fail("stop_responder: Failed to stop responder")
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/result/error/
DErrorIdentifierTest.java18 import static org.junit.Assert.fail;
47 fail( in testUniqueErrors()
59 fail( in testUniqueErrors()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/keystore/
DJSONFileKeyStoreClientTest.java23 import static org.junit.Assert.fail;
50 fail("Key store should not be available for null file"); in testKeyStoreNullFile()
64 fail("Should have thrown an exception"); in testKeyStoreFetchUnreadableFile()
78 fail("Should have thrown an exception"); in testKeyStoreFetchEmptyFile()
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
DAvrcpBaseTest.py72 asserts.fail('Not able to connect to hands-free device')
105 asserts.fail('{} Event Not received'.format(EVENT_PLAY_RECEIVED))
114 asserts.fail('{} Event Not received'.format(EVENT_PAUSE_RECEIVED))
123 asserts.fail('{} Event Not '
133 asserts.fail('{} Event Not '
/tools/tradefederation/core/python-lib/helloWorld/
Dtest_hello_world.py33 self.fail('should have been skipped')
37 self.fail('failed')
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DGkiDeviceFlashPreparerTest.java19 import static org.junit.Assert.fail;
136 fail("TargetSetupError is expected"); in testValidateGkiBootImg_NoBuildInfoFiles()
151 fail("TargetSetupError is expected"); in testValidateGkiBootImg_NoRamdiskRecoveryImg()
168 fail("TargetSetupError is expected"); in testValidateGkiBootImg_NoOtatoolsZip()
190 fail("TargetSetupError is expected"); in testValidateGkiBootImg_NoMkbootimgInOtatoolsZip()
232 fail("TargetSetupError is expected"); in testValidateGkiBootImg_FailToGenerateBootImg()
245 fail("TargetSetupError is expected"); in testSetUp_NoGkiBootImg()
267 fail("TargetSetupError is expected"); in testSetUp_NoMkbootimgInOtatoolsZip()
347 fail("Expect to get TargetSetupError from setUp"); in testSetUp_GkiFlashFailure()
380 fail("Expect to get DeviceNotAvailableException from setUp"); in testSetUp_BootFailure()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandInterrupterTest.java21 import static org.junit.Assert.fail;
77 fail("RunInterruptedException was expected"); in testInterrupt()
99 fail("RunInterruptedException was expected"); in testInterrupt_blocked()
118 fail("RunInterruptedException was expected"); in testInterrupt_clearsFlag()

1234567891011