Home
last modified time | relevance | path

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

12345678910>>...12

/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationFactoryTest.java131 fail( in testLoadAllConfigs()
325 fail("did not throw ConfigurationException"); in testCreateConfigurationFromArgs_missing()
349 fail("did not throw ConfigurationException"); in testCreateConfigurationFromArgs_empty()
374 fail("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_unprocessedArgs()
531 fail("Should have thrown an exception."); in testCreateConfigurationFromArgs_repeatedTemplate()
553 fail("Should have thrown an exception."); in testCreateConfigurationFromArgs_templateInclude_multiKey()
568 fail ("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_templateInclude_unspecified()
602 fail ("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_templateInclude_missing()
682 fail ("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_templateInclude_dependent_missing()
705 fail ("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_templateInclude_dependent_nodefault()
[all …]
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 …]
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 …]
DOptionSetterTest.java279 fail("ConfigurationException not thrown"); in testOptionSetter_noType()
291 fail("ConfigurationException not thrown"); in testOptionSetter_duplicateOptions()
304 fail("ConfigurationException not thrown"); in testOptionSetter_duplicateOptionsUnsupportedType()
382 fail("ConfigurationException not thrown"); in testOptionSetter_sharedOptionsDiffType()
443 fail("ConfigurationException not thrown"); in testOptionSetter_unparamType()
455 fail("ConfigurationException not thrown"); in testOptionSetter_genericType()
479 fail("ConfigurationException not thrown"); in testOptionSetter_badOptionName()
492 fail("ConfigurationException not thrown"); in testIsBooleanOption_unknown()
530 fail("ConfigurationException not thrown"); in testSetOptionValue_unknown()
543 fail("ConfigurationException not thrown"); in testSetOptionValue_unknownType()
[all …]
DConfigurationTest.java162 fail("IllegalStateException not thrown"); in testGetConfigurationObject_typeIsList()
179 fail("IllegalStateException not thrown"); in testGetConfigurationObject_forList()
193 fail("setConfigurationObject did not throw ConfigurationException"); in testSetConfigurationObject_wrongtype()
217 fail("setConfigurationObject did not throw ConfigurationException"); in testSetConfigurationObjectList_wrongtype()
375 fail("ConfigurationException is not thrown for a map option without retrievable key"); in testInjectParsedMapOptionValueNoKey()
392 fail("ConfigurationException is not thrown for a map option with ambiguous key"); in testInjectParsedMapOptionValueAmbiguousKey()
484 fail("Should have thrown an exception."); in testValidateOptions_nonDisabledObject()
513 fail("Should have thrown an exception."); in testValidateOptionsShardException()
533 fail("Should have thrown an exception."); in testValidateOptionsShardIndexException()
557 fail("Should have thrown an exception."); in testValidateOptionsShardIndexAboveShardCount()
/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/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/tradefederation/core/tests/src/com/android/tradefed/device/
DNativeDeviceTest.java24 import static org.junit.Assert.fail;
170 fail("installPackage should have thrown an exception"); in testInstallPackages_exception()
183 fail("uninstallPackageForUser should have thrown an exception"); in testUninstallPackages_exception()
197 fail("installPackage should have thrown an exception"); in testInstallPackagesBool_exception()
211 fail("installPackageForUser should have thrown an exception"); in testInstallPackagesForUser_exception()
225 fail("installPackageForUser should have thrown an exception"); in testInstallPackagesForUserWithPermission_exception()
236 fail("getInstalledPackageNames should have thrown an exception"); in testGetInstalledPackageNames_exception()
250 fail("getActiveApexes should have thrown an exception"); in testGetActiveApexes_exception()
261 fail("getScreenshot should have thrown an exception"); in testGetScreenshot_exception()
558 fail("getCurrentUser should have thrown an exception."); in testGetCurrentUser_exception()
[all …]
DTestDeviceTest.java372 fail(String.format("DeviceNotAvailableException not thrown; productType was '%s'", in testGetProductType_fastbootFail()
404 fail("DeviceNotAvailableException not thrown"); in testGetProductType_adbFail()
497 fail(); in testRecoverDevice_ThrowException()
548 fail("DeviceNotAvailableException not thrown"); in testExecuteShellCommand_recoveryFail()
740 fail("DeviceUnresponsiveException not thrown"); in testExecuteShellCommand_recoveryAttempts()
906 fail("DeviceNotAvailableException not thrown"); in testRunInstrumentationTests_recoveryFails()
939 fail("UnsupportedOperationException not thrown"); in testExecuteFastbootCommand_nofastboot()
952 fail("UnsupportedOperationException not thrown"); in testExecuteLongFastbootCommand_nofastboot()
1061 fail("encryptUserData() did not throw UnsupportedOperationException"); in testEncryptionUnsupported()
1067 fail("decryptUserData() did not throw UnsupportedOperationException"); in testEncryptionUnsupported()
[all …]
DWaitDeviceRecoveryTest.java19 import static org.junit.Assert.fail;
105 fail("DeviceNotAvailableException not thrown"); in testRecoverDevice_unavailable()
174 fail("DeviceNotAvailableException not thrown"); in testRecoverDevice_unavailable_recovery_fail()
204 fail("DeviceNotAvailableException not thrown"); in testRecoverDevice_unavailable_fastboot()
230 fail("DeviceUnresponsiveException not thrown"); in testRecoverDevice_unresponsive()
372 fail("DeviceNotAvailableException not thrown"); in testRecoverDeviceBootloader_unavailable_failure()
394 fail("DeviceNotAvailableException not thrown"); in testCheckMinBatteryLevel_unreadable()
416 fail("DeviceNotAvailableException not thrown"); in testCheckMinBatteryLevel_belowLevel()
/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/util/
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 …]
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()
/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/test/connectivity/acts/framework/acts/test_utils/wifi/
Dwifi_test_utils.py734 asserts.fail("Failed to remove network %s." % n)
796 asserts.fail("Wi-Fi results did not become available within 60s.")
816 asserts.fail(
941 asserts.fail(msg)
970 asserts.fail("Didn't receive wifi tethering starting confirmation")
989 asserts.fail(msg)
1139 asserts.fail("Failed to start connection process to %s" %
1357 asserts.fail("Failed to start connection process to %s on %s" %
1433 asserts.fail("Failed to connect to network with id %d on %s" %
1591 asserts.fail("Failed to connect to %s" % expected_ssid)
[all …]
/tools/apksig/src/test/java/com/android/apksig/
DApkSignerTest.java20 import static org.junit.Assert.fail;
636 fail(); in testV1SigningRejectsInvalidZipEntryNames()
642 fail(); in testV1SigningRejectsInvalidZipEntryNames()
648 fail(); in testV1SigningRejectsInvalidZipEntryNames()
686 fail(); in testDebuggableApk()
700 fail(); in testDebuggableApk()
739 fail("The signing should have failed due to the oldest signer in the lineage not being" in testSigningWithLineageRequiresOldestSignerForV1AndV2()
750 fail("The signing should have failed due to the oldest signer in the lineage not being" in testSigningWithLineageRequiresOldestSignerForV1AndV2()
771 fail("The signing should have failed due to the oldest signer in the lineage not being" in testSigningWithLineageRequiresOldestSignerForV1AndV2()
947 fail(tmp + " differs from " + expectedOutResourceName); in assertGolden()
[all …]
DApkVerifierTest.java20 import static org.junit.Assert.fail;
741 fail("ApkFormatException should've been thrown"); in testEmptyApk()
747 fail("ApkFormatException should've been thrown"); in testEmptyApk()
753 fail("ApkFormatException should've been thrown"); in testEmptyApk()
759 fail("ApkFormatException should've been thrown"); in testEmptyApk()
1096 fail(apkId + " did not verify: " + msg); in assertVerified()
1110 fail("APK verification succeeded instead of failing with " + expectedIssue); in assertVerificationFailure()
1164 fail("APK failed verification for the wrong reason" in assertVerificationFailure()
/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/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/acts/test_utils/wifi/aware/
Daware_test_utils.py65 asserts.fail(event_name)
99 asserts.fail(event_name)
117 asserts.fail(event_name, extras=event)
149 asserts.fail(event_name, extras=event)
170 asserts.fail('%sEvent queue not empty' % prefix)
292 fail = False
296 fail = True
301 asserts.assert_false(fail, 'Forbidden callbacks observed', extras=cb_data)
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DRemoteAndroidVirtualDeviceTest.java21 import static org.junit.Assert.fail;
192 fail("A TargetSetupError should have been thrown"); in testExceptionFromParser()
223 fail("Should have thrown an exception."); in testWaitForTunnelOnline_notOnline()
240 fail("Should have thrown an exception."); in testWaitForTunnelOnline_tunnelTerminated()
316 fail("Should have thrown an exception."); in testPreInvocationSetup_fails()
387 fail("Should have thrown an exception"); in testLaunchGce_bootFail()
441 fail("Should have thrown an exception"); in testLaunchGce_nullPort()
763 fail("Should have thrown an exception."); in testDeviceBoot_offline()
/tools/metalava/src/test/java/com/android/tools/metalava/
DDriverTest.kt52 import org.junit.Assert.fail in <lambda>()
153 fail("Printed newlines with nothing else") in <lambda>()
445 fail( in <lambda>()
451 fail( in <lambda>()
457 fail( in <lambda>()
463 fail( in <lambda>()
1396fail("Couldn't find $extraAnnotationsDir: Is the pwd set to the root of the metalava source code?") in <lambda>()
1397fail("Couldn't find $extraAnnotationsDir: Is the pwd set to the root of an Android source tree?") in <lambda>()
1408 fail("Couldn't compile stub file -- compilation problems") in <lambda>()
1476fail("Failed to run $executable (${e.message}): not verifying this API on the old doclava engine") in <lambda>()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DHostTestTest.java797 fail("IllegalArgumentException not thrown"); in testRun_missingClass()
811 fail("IllegalArgumentException not thrown"); in testRun_invalidClass()
825 fail("IllegalArgumentException not thrown"); in testRun_notTestClass()
838 fail("IllegalArgumentException not thrown"); in testRun_privateClass()
852 fail("IllegalArgumentException not thrown"); in testRun_noConstructorClass()
898 fail("IllegalArgumentException not thrown"); in testRun_multipleClassAndMethodName()
937 fail("expected IllegalArgumentException not thrown"); in testRun_missingDevice()
1191 fail("HostTest run() should have thrown an exception."); in testRun_testcaseCollectMode_IRemotedevice()
1335 fail("Should have thrown an exception."); in testRun_junit4style_multiException_dnae()
1752 fail("Should have thrown an exception"); in testSplit_noClass()
[all …]
/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan/
DSoftApTest.py203 asserts.fail('Failed to connect to SoftAP.')
324 asserts.fail('Device %s could not ping dest ip %s' %
359 asserts.fail(
369 asserts.fail(
459 asserts.fail('SoftAp reconnect test passed on %s/%s runs.' %
956 asserts.fail(
987 asserts.fail(
1123 asserts.fail(

12345678910>>...12