Home
last modified time | relevance | path

Searched refs:fail (Results 1 – 25 of 252) 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/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()
328 fail("No exception should have been thrown."); in testParse_deviceTagSameName()
354 fail("An exception should have been thrown."); in testParse_deviceTagAndObjectOutside()
[all …]
DConfigurationFactoryTest.java277 fail("did not throw ConfigurationException"); in testCreateConfigurationFromArgs_missing()
301 fail("did not throw ConfigurationException"); in testCreateConfigurationFromArgs_empty()
326 fail("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_unprocessedArgs()
483 fail("Should have thrown an exception."); in testCreateConfigurationFromArgs_repeatedTemplate()
505 fail("Should have thrown an exception."); in testCreateConfigurationFromArgs_templateInclude_multiKey()
520 fail ("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_templateInclude_unspecified()
554 fail ("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_templateInclude_missing()
634 fail ("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_templateInclude_dependent_missing()
657 fail ("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_templateInclude_dependent_nodefault()
677 fail(e.getMessage()); in testCreateConfigurationFromArgs_include_dependent()
[all …]
DOptionSetterTest.java275 fail("ConfigurationException not thrown"); in testOptionSetter_noType()
287 fail("ConfigurationException not thrown"); in testOptionSetter_duplicateOptions()
300 fail("ConfigurationException not thrown"); in testOptionSetter_duplicateOptionsUnsupportedType()
378 fail("ConfigurationException not thrown"); in testOptionSetter_sharedOptionsDiffType()
439 fail("ConfigurationException not thrown"); in testOptionSetter_unparamType()
451 fail("ConfigurationException not thrown"); in testOptionSetter_genericType()
475 fail("ConfigurationException not thrown"); in testOptionSetter_badOptionName()
488 fail("ConfigurationException not thrown"); in testIsBooleanOption_unknown()
526 fail("ConfigurationException not thrown"); in testSetOptionValue_unknown()
539 fail("ConfigurationException not thrown"); in testSetOptionValue_unknownType()
[all …]
DArgsOptionParserTest.java265 fail("ConfigurationException not thrown when updating an IMMUTABLE option"); in testOptionUpdateRule_immutable()
276 fail("ConfigurationException not thrown when updating an IMMUTABLE option"); in testOptionUpdateRule_immutable()
320 fail("ConfigurationException not thrown when assigning a global option to an @Option " + in testNonGlobalOptionSource_global()
328 fail("ConfigurationException not thrown when assigning a global option to an @Option " + in testNonGlobalOptionSource_global()
400 fail("ConfigurationException not thrown"); in testParseMapArg_mismatchKeyType()
420 fail("ConfigurationException not thrown"); in testParseMapArg_mismatchValueType()
438 fail("ConfigurationException not thrown"); in testParseMapArg_missingKey()
455 fail("ConfigurationException not thrown"); in testParseMapArg_missingValue()
564 fail("ConfigurationException not thrown"); in testParse_missingValue()
578 fail("ConfigurationException not thrown"); in testParse_optionNotPresent()
[all …]
DOptionCopierTest.java21 import static org.junit.Assert.fail;
205 fail("ConfigurationException not thrown"); in testCopyOptions_wrongType()
218 fail("ConfigurationException not thrown"); in testCopyOptions_collectionToPrimitive()
232 fail("ConfigurationException not thrown"); in testCopyOptions_primitiveToCollection_null()
269 fail("ConfigurationException not thrown"); in testCopyOptions_primitiveToCollection_differentPrimitive()
285 fail("ConfigurationException not thrown"); in testCopyOptions_nullCollection()
DConfigurationTest.java141 fail("IllegalStateException not thrown"); in testGetConfigurationObject_typeIsList()
158 fail("IllegalStateException not thrown"); in testGetConfigurationObject_forList()
172 fail("setConfigurationObject did not throw ConfigurationException"); in testSetConfigurationObject_wrongtype()
196 fail("setConfigurationObject did not throw ConfigurationException"); in testSetConfigurationObjectList_wrongtype()
352 fail("ConfigurationException is not thrown for a map option without retrievable key"); in testInjectParsedMapOptionValueNoKey()
369 fail("ConfigurationException is not thrown for a map option with ambiguous key"); in testInjectParsedMapOptionValueAmbiguousKey()
584 fail("Should have thrown an exception."); in testValidateOptionsShardException()
604 fail("Should have thrown an exception."); in testValidateOptionsShardIndexException()
628 fail("Should have thrown an exception."); in testValidateOptionsShardIndexAboveShardCount()
/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;
161 fail("RunInterruptedException was expected, but not thrown."); in testRunTimed_interrupted()
198 fail("could set working dir on RunUtil.getDefault()"); in testSetWorkingDir_default()
212 fail("could set env var on RunUtil.getDefault()"); in testSetEnvVariable_default()
226 fail("could unset env var on RunUtil.getDefault()"); in testUnsetEnvVariable_default()
282 fail("RunInterruptedException was expected, but not thrown."); in testInterrupt()
301 fail("RunInterruptedException was expected, but not thrown."); in testInterrupt_delayed()
318 fail("RunInterruptedException was expected, but not thrown."); in testInterrupt_multiple()
340 fail("Failed to create output files: " + e.getMessage()); in testRuntimedCmd_withFileOutputStream()
357 fail(e.getMessage()); in testRuntimedCmd_withFileOutputStream()
[all …]
/tools/test/connectivity/acts/tests/google/wifi/
DWifiDppTest.py189 asserts.fail("gen_uri: Failed to generate a URI. Command used: %s" % cmd)
192 asserts.fail("gen_uri: Helper device not responding correctly, may need to restart it."
216 asserts.fail("get_uri: Failed to read URI. Command used: %s" % cmd)
235 asserts.fail("del_uri: Failed to delete URI. Command used: %s" % cmd)
259 asserts.fail("start_responder: Must specify net_role sta or ap")
316 asserts.fail(
324 asserts.fail(
347 asserts.fail("start_responder: Must specify net_role sta or ap")
357 asserts.fail("start_responder_enrollee: Failure. Command used: %s" % cmd)
369 asserts.fail("stop_responder: Failed to stop responder")
[all …]
/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/tests/src/com/android/tradefed/testtype/suite/
DValidateSuiteConfigHelperTest.java19 import static org.junit.Assert.fail;
73 fail("Should have thrown an exception."); in testNotRunningAsSuite_buildProvider()
93 fail("Should have thrown an exception."); in testNotRunningAsSuite_MultiDevice_buildProvider()
127 fail("Should have thrown an exception."); in testNotRunningAsSuite_resultReporter()
143 fail("Should have thrown an exception."); in testNotRunningAsSuite_multi_resultReporter()
168 fail("Should have thrown an exception."); in testTargetPrep_badPreparer()
185 fail("Should have thrown an exception."); in testTargetPrep_badMultiPreparer()
224 fail("Should have thrown an exception."); in testMetricCollectors()
260 fail("Should have thrown an exception."); in testModuleController_fail()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DPerfettoPreparer.java79 fail("Failed to find the local binary perfetto file", null, device); in setUp()
81 fail("Failed to push the binary perfetto file", null, device); in setUp()
88 fail("Failed to read the perfetto text file", e, device); in setUp()
94 fail("Failed to parse the perfetto text config file", e, device); in setUp()
105 fail("Failed to push the perfetto file", null, device); in setUp()
108 fail("Failed to write the perfetto binary file", e, device); in setUp()
119 private void fail(String message, Throwable cause, ITestDevice device) throws TargetSetupError { in fail() method in PerfettoPreparer
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DNativeDeviceTest.java24 import static org.junit.Assert.fail;
161 fail("installPackage should have thrown an Unsupported exception, not dnae"); in testInstallPackages_exception()
163 fail("installPackage should have thrown an exception"); in testInstallPackages_exception()
176 fail("uninstallPackage should have thrown an Unsupported exception, not dnae"); in testUninstallPackages_exception()
178 fail("uninstallPackageForUser should have thrown an exception"); in testUninstallPackages_exception()
192 fail("installPackage should have thrown an Unsupported exception, not dnae"); in testInstallPackagesBool_exception()
194 fail("installPackage should have thrown an exception"); in testInstallPackagesBool_exception()
208 fail("installPackageForUser should have thrown an Unsupported exception, not dnae"); in testInstallPackagesForUser_exception()
210 fail("installPackageForUser should have thrown an exception"); in testInstallPackagesForUser_exception()
224 fail("installPackageForUser should have thrown an Unsupported exception, not dnae"); in testInstallPackagesForUserWithPermission_exception()
[all …]
DTestDeviceTest.java367 fail(String.format("DeviceNotAvailableException not thrown; productType was '%s'", in testGetProductType_fastbootFail()
398 fail("DeviceNotAvailableException not thrown"); in testGetProductType_adbFail()
483 fail(); in testRecoverDevice_ThrowException()
534 fail("DeviceNotAvailableException not thrown"); in testExecuteShellCommand_recoveryFail()
726 fail("DeviceUnresponsiveException not thrown"); in testExecuteShellCommand_recoveryAttempts()
892 fail("DeviceNotAvailableException not thrown"); in testRunInstrumentationTests_recoveryFails()
925 fail("UnsupportedOperationException not thrown"); in testExecuteFastbootCommand_nofastboot()
938 fail("UnsupportedOperationException not thrown"); in testExecuteLongFastbootCommand_nofastboot()
1047 fail("encryptUserData() did not throw UnsupportedOperationException"); in testEncryptionUnsupported()
1053 fail("decryptUserData() did not throw UnsupportedOperationException"); in testEncryptionUnsupported()
[all …]
/tools/test/connectivity/acts/framework/tests/config/
Dentries_test.py30 self.fail('Entry %s has an invalid cli_flags argument. This '
34 self.fail('Entry %s has an invalid cli_flags argument. '
42 self.fail('Entry %s must define the help kwarg.' % entry)
48 self.fail('Entry %s defines env_var_name %s, but does not '
65 self.fail('The following acts_config_keys are used at least '
/tools/test/connectivity/acts/framework/tests/libs/
Dversion_selector_test.py130 self.fail('Placing the @staticmethod decorator after the '
143 self.fail('Placing the @classmethod decorator after the '
158 self.fail('Overwriting a function that already exists without a '
175 self.fail('Using two different versioning decorators to version a '
191 self.fail('Decorated functions with overlapping version ranges '
203 self.fail('If the min_version level is higher than the max_version '
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DGceAvdInfoTest.java22 import static org.junit.Assert.fail;
170 fail("A TargetSetupError should have been thrown."); in testMultipleGceJsonParsing()
181 fail("A TargetSetupError should have been thrown."); in testInvalidJsonParsing()
201 fail("A TargetSetupError should have been thrown."); in testMissingGceJsonParsing()
254 fail("A TargetSetupError should have been thrown."); in testValidGceJsonParsingFailQuota()
304 fail("A TargetSetupError should have been thrown."); in testParseJson_fail_error()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandFileParserTest.java136 fail("ConfigurationException not thrown"); in testParseFile_endOnQuote()
150 fail("ConfigurationException not thrown"); in testRun_endWithEscape()
213 fail("ConfigurationException not thrown"); in testUndefinedMacro()
227 fail("ConfigurationException not thrown"); in testUndefinedMacro_defSyntaxError()
297 fail("ConfigurationException not thrown"); in testLongMacroSyntaxError_eof()
470 fail(String.format("Received unexpected request for contents of file %s", in testMacroParserInclude_parentDir()
505 fail(String.format("Received unexpected request for contents of file %s", in testMacroParserInclude_absoluteInclude()
536 fail(String.format("Received unexpected request for contents of file %s", in testMacroParserInclude_noParentDir()
/tools/apksig/src/test/java/com/android/apksig/
DApkSignerTest.java20 import static org.junit.Assert.fail;
622 fail(); in testV1SigningRejectsInvalidZipEntryNames()
628 fail(); in testV1SigningRejectsInvalidZipEntryNames()
634 fail(); in testV1SigningRejectsInvalidZipEntryNames()
672 fail(); in testDebuggableApk()
686 fail(); in testDebuggableApk()
725 fail("The signing should have failed due to the oldest signer in the lineage not being" in testSigningWithLineageRequiresOldestSignerForV1AndV2()
736 fail("The signing should have failed due to the oldest signer in the lineage not being" in testSigningWithLineageRequiresOldestSignerForV1AndV2()
757 fail("The signing should have failed due to the oldest signer in the lineage not being" in testSigningWithLineageRequiresOldestSignerForV1AndV2()
856 fail(tmp + " differs from " + expectedOutResourceName); in assertGolden()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/net/
DHttpHelperTest.java21 import static org.junit.Assert.fail;
123 fail("DataSizeException not thrown"); in testDoGet_datasize()
163 fail("DataSizeException not thrown"); in testDoGetWithRetry_datasize()
185 fail("IOException not thrown"); in testDoGetWithRetry_ioexception()
247 fail("DataSizeException not thrown"); in testDoPostWithRetry_datasize()
270 fail("IOException not thrown"); in testDoPostWithRetry_ioexception()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DAppSetupTest.java19 import static org.junit.Assert.fail;
86 fail("Should have thrown an exception."); in testSetup_notIAppBuildInfo()
108 fail("Should have thrown an exception."); in testSetup_failToInstall()
133 fail("Should have thrown an exception."); in testSetup_aaptCannotParse()
165 fail("Should have thrown an exception."); in testSetup_noPackageName()
197 fail("Should have thrown an exception."); in testSetup_checkMinSdk_failParsing()
339 fail("Should have thrown an exception."); in testSetup_uninstallAll_fails()
/tools/test/connectivity/acts/framework/tests/libs/ota/ota_runners/
Dota_runner_test.py94 self.fail('Matching build fingerprints did not throw an error!')
141 self.fail('SingleUseOtaRunner threw an exception on the first '
152 self.fail('SingleUseOtaRunner did not throw an exception on the second'
190 self.fail('MultiUseOtaRunner threw an exception on the first '
202 self.fail('MultiUseOtaRunner threw an exception before '
216 self.fail('MultiUseOtaRunner did not throw an exception after running '
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
DAvrcpBaseTest.py71 asserts.fail('Not able to connect to hands-free device')
104 asserts.fail('{} Event Not received'.format(EVENT_PLAY_RECEIVED))
113 asserts.fail('{} Event Not received'.format(EVENT_PAUSE_RECEIVED))
122 asserts.fail('{} Event Not '
132 asserts.fail('{} Event Not '

1234567891011