Home
last modified time | relevance | path

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

12345678

/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/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.java162 fail("could set working dir on RunUtil.getDefault()"); in testSetWorkingDir_default()
175 fail("could set env var on RunUtil.getDefault()"); in testSetEnvVariable_default()
188 fail("could unset env var on RunUtil.getDefault()"); in testUnsetEnvVariable_default()
245 fail("RunInterruptedException was expected, but not thrown."); in testInterrupt()
263 fail("RunInterruptedException was expected, but not thrown."); in testInterrupt_delayed()
282 fail("RunInterruptedException was expected, but not thrown."); in testInterrupt_multiple()
303 fail("Failed to create output files: " + e.getMessage()); in testRuntimedCmd_withFileOutputStream()
320 fail(e.getMessage()); in testRuntimedCmd_withFileOutputStream()
358 fail("Failed to create output files: " + e.getMessage()); in testRuntimedCmd_notWritable()
375 fail(e.getMessage()); in testRuntimedCmd_notWritable()
[all …]
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()
DGCSBucketUtilFuncTest.java109 Assert.fail(String.format("Could not find file %s in %s [have: %s]", expected, in testDownloadMultiple()
140 Assert.fail("Should throw IOExcepiton."); in testDownloadFile_notExist()
150 Assert.fail("Should throw IOExcepiton."); in testRemoveFile_notExist()
167 Assert.fail("Should throw IOExcepiton."); in testBotoPathCanBeSet()
DDirectedGraphTest.java60 fail("Should have thrown an exception"); in testRemoveUnexistingVertex()
69 fail("Should have thrown an exception"); in testRemoveUnexistingVertex()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationXmlParserTest.java20 import static org.junit.Assert.fail;
131 fail("ConfigurationException not thrown"); in testParse_objectMissingAttr()
144 fail("ConfigurationException not thrown"); in testParse_optionMissingAttr()
191 fail("ConfigurationException not thrown"); in testParse_includeMissing()
203 fail("ConfigurationException not thrown"); in testParse_badTag()
215 fail("ConfigurationException not thrown"); in testParse_xml()
264 fail("An exception should have been thrown."); in testParse_deviceTagNoName()
297 fail("No exception should have been thrown."); in testParse_deviceTagSameName()
323 fail("An exception should have been thrown."); in testParse_deviceTagAndObjectOutside()
351 fail("An exception should have been thrown."); in testParse_withDeviceTag()
[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()
492 fail("Should have thrown an exception."); in testCreateConfigurationFromArgs_templateInclude_multiKey()
507 fail ("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_templateInclude_unspecified()
541 fail ("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_templateInclude_missing()
621 fail ("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_templateInclude_dependent_missing()
644 fail ("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_templateInclude_dependent_nodefault()
664 fail(e.getMessage()); in testCreateConfigurationFromArgs_include_dependent()
696 fail ("ConfigurationException not thrown"); in testCreateConfigurationFromArgs_include_dependent_nodefault()
[all …]
DConfigurationDescriptorTest.java19 import static org.junit.Assert.fail;
57 fail("Should have thrown an exception."); in testRejectCommandLine()
DOptionSetterTest.java271 fail("ConfigurationException not thrown"); in testOptionSetter_noType()
283 fail("ConfigurationException not thrown"); in testOptionSetter_duplicateOptions()
296 fail("ConfigurationException not thrown"); in testOptionSetter_duplicateOptionsUnsupportedType()
374 fail("ConfigurationException not thrown"); in testOptionSetter_sharedOptionsDiffType()
435 fail("ConfigurationException not thrown"); in testOptionSetter_unparamType()
447 fail("ConfigurationException not thrown"); in testOptionSetter_genericType()
471 fail("ConfigurationException not thrown"); in testOptionSetter_badOptionName()
484 fail("ConfigurationException not thrown"); in testIsBooleanOption_unknown()
522 fail("ConfigurationException not thrown"); in testSetOptionValue_unknown()
535 fail("ConfigurationException not thrown"); in testSetOptionValue_unknownType()
[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()
/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/test/connectivity/acts/tests/google/tel/live/
DTelLivePostflightTest.py21 from acts.asserts import fail
64 fail(msg)
84 fail(msg)
96 fail(msg)
/tools/test/connectivity/acts/framework/acts/
Dasserts.py61 fail(my_msg, extras=extras)
95 fail(my_msg, extras=extras)
155 fail(msg, extras)
168 fail(msg, extras)
270 def fail(msg, extras=None): function
/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 …]
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DPushFilePreparer.java83 private void fail(String message, ITestDevice device) throws TargetSetupError { in fail() method in PushFilePreparer
138 fail(String.format("Invalid pushspec: '%s'", Arrays.asList(pair)), device); in setUp()
149 fail(String.format("Local source file '%s' does not exist", pair[0]), device); in setUp()
154 fail(String.format("Failed to push local '%s' to remote '%s'", pair[0], in setUp()
162 fail(String.format("Failed to push local '%s' to remote '%s'", pair[0], in setUp()
/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/util/keystore/
DJSONFileKeyStoreClientTest.java42 fail("Key store should not be available for null file"); in testKeyStoreNullFile()
53 fail("Should have thrown an exception"); in testKeyStoreFetchUnreadableFile()
66 fail("Should have thrown an exception"); in testKeyStoreFetchEmptyFile()
/tools/test/connectivity/acts/framework/tests/libs/ota/ota_runners/
Dota_runner_test.py85 self.fail('Matching build fingerprints did not throw an error!')
112 self.fail('SingleUseOtaRunner threw an exception on the first '
123 self.fail('SingleUseOtaRunner did not throw an exception on the second'
161 self.fail('MultiUseOtaRunner threw an exception on the first '
173 self.fail('MultiUseOtaRunner threw an exception before '
187 self.fail('MultiUseOtaRunner did not throw an exception after running '
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DOtaZipfileBuildProviderTest.java58 fail("Expected to get an IllegalArgumentException when no path was passed"); in testGetBuild_NoPath()
68 fail("Expected to get an BuildRetrievalError when a bad path was passed"); in testGetBuild_BadPath()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/utils/
DCachedSupplierTest.java22 import static org.junit.Assert.fail;
68 fail(); in exceptionThrownBySupplier()
77 fail(); in exceptionThrownBySupplier()
/tools/tradefederation/core/tests/src/com/android/tradefed/sandbox/
DSandboxConfigUtilTest.java20 import static org.junit.Assert.fail;
95 fail("Should have thrown an exception."); in testDumpVersion_failed()
107 fail("Should have thrown an exception."); in testDumpVersion_badClasspath()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DKernelFlashPreparerTest.java156 fail("Expected TargetSetupError"); in testSetup_targetsetuperror()
181 fail("Expected DeviceUnresponsiveException"); in testSetup_fastbooterror()
212 fail("Expected BuildError"); in testSetup_builderror()
243 fail("Expected DeviceUnresponsiveException"); in testSetup_unresponsive()
260 fail("Expected IllegalArgumentException"); in testSetup_invalidbuildinfo()
316 fail("Expected IOException");
345 fail("Expected RuntimeException");
/tools/loganalysis/tests/src/com/android/loganalysis/parser/
DLogcatParserFuncTest.java44 fail(String.format("File not found at %s", LOGCAT_PATH)); in testParse()
53 fail(String.format("IOException: %s", e.toString())); in testParse()
/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()

12345678