Home
last modified time | relevance | path

Searched refs:sut (Results 1 – 7 of 7) sorted by relevance

/test/app_compat/csuite/harness/src/test/java/com/android/csuite/core/
DAppCrawlTesterTest.java82 AppCrawlTester sut = createPreparedTestSubject(); in start_apkNotProvided_throwsException() local
83 sut.setUiAutomatorMode(false); in start_apkNotProvided_throwsException()
85 assertThrows(NullPointerException.class, () -> sut.start()); in start_apkNotProvided_throwsException()
90 AppCrawlTester sut = createPreparedTestSubject(); in start_roboscriptDirectoryProvided_throws() local
91 sut.setUiAutomatorMode(true); in start_roboscriptDirectoryProvided_throws()
95 sut.setRoboscriptFile(roboDir); in start_roboscriptDirectoryProvided_throws()
97 assertThrows(AssertionError.class, () -> sut.start()); in start_roboscriptDirectoryProvided_throws()
102 AppCrawlTester sut = createPreparedTestSubject(); in start_crawlGuidanceDirectoryProvided_throws() local
103 sut.setUiAutomatorMode(true); in start_crawlGuidanceDirectoryProvided_throws()
107 sut.setCrawlGuidanceProtoFile(crawlGuidanceDir); in start_crawlGuidanceDirectoryProvided_throws()
[all …]
DDeviceUtilsTest.java71 DeviceUtils sut = createSubjectUnderTest(); in grantExternalStoragePermissions_commandFailed_doesNotThrow() local
73 sut.grantExternalStoragePermissions(TEST_PACKAGE_NAME); in grantExternalStoragePermissions_commandFailed_doesNotThrow()
84 DeviceUtils sut = createSubjectUnderTest(); in isPackageInstalled_packageIsInstalled_returnsTrue() local
86 boolean res = sut.isPackageInstalled(packageName); in isPackageInstalled_packageIsInstalled_returnsTrue()
96 DeviceUtils sut = createSubjectUnderTest(); in isPackageInstalled_packageIsNotInstalled_returnsFalse() local
98 boolean res = sut.isPackageInstalled(packageName); in isPackageInstalled_packageIsNotInstalled_returnsFalse()
107 DeviceUtils sut = createSubjectUnderTest(); in isPackageInstalled_commandFailed_throws() local
109 assertThrows(DeviceUtilsException.class, () -> sut.isPackageInstalled("package.name")); in isPackageInstalled_commandFailed_throws()
120 DeviceUtils sut = createSubjectUnderTest(); in launchPackage_pmDumpFailedAndPackageDoesNotExist_throws() local
122 assertThrows(DeviceUtilsException.class, () -> sut.launchPackage("package.name")); in launchPackage_pmDumpFailedAndPackageDoesNotExist_throws()
[all …]
DFileBasedTemplateMappingProviderTest.java48 FileBasedTemplateMappingProvider sut = createSubjectUnderTest(filePath); in get_emptyFile_returnsEmptyStream() local
50 Stream<Entry<String, String>> entries = sut.get(); in get_emptyFile_returnsEmptyStream()
57 FileBasedTemplateMappingProvider sut = new FileBasedTemplateMappingProvider(); in get_fileOptionNotSet_returnsEmptyStream() local
59 Stream<Entry<String, String>> entries = sut.get(); in get_fileOptionNotSet_returnsEmptyStream()
69 FileBasedTemplateMappingProvider sut = createSubjectUnderTest(filePath); in get_fileContainsCommentLines_ignoresComments() local
71 Stream<Entry<String, String>> entries = sut.get(); in get_fileContainsCommentLines_ignoresComments()
79 FileBasedTemplateMappingProvider sut = createSubjectUnderTest(filePath); in get_fileContainsEmptyLines_ignoresEmptyLines() local
81 Stream<Entry<String, String>> entries = sut.get(); in get_fileContainsEmptyLines_ignoresEmptyLines()
95 FileBasedTemplateMappingProvider sut = createSubjectUnderTest(filePath); in get_lineContainsTooMuchItems_throwsException() local
97 assertThrows(IllegalArgumentException.class, () -> sut.get()); in get_lineContainsTooMuchItems_throwsException()
[all …]
DTestUtilsTest.java244 TestUtils sut = createSubjectUnderTest(); in collectScreenshot_savesToTestLog() local
249 sut.collectScreenshot(TEST_PACKAGE_NAME); in collectScreenshot_savesToTestLog()
260 TestUtils sut = createSubjectUnderTest(); in saveApks_always_savesOnTestPass() local
263 sut.saveApks( in saveApks_always_savesOnTestPass()
272 TestUtils sut = createSubjectUnderTest(); in saveApks_always_savesOnTestFail() local
275 sut.saveApks( in saveApks_always_savesOnTestFail()
284 TestUtils sut = createSubjectUnderTest(); in saveApks_never_doesNotSaveOnTestPass() local
287 sut.saveApks( in saveApks_never_doesNotSaveOnTestPass()
296 TestUtils sut = createSubjectUnderTest(); in saveApks_never_doesNotSaveOnTestFail() local
299 sut.saveApks( in saveApks_never_doesNotSaveOnTestFail()
[all …]
DApkInstallerTest.java52 ApkInstaller sut = in install_failedToListApks_throwsException() local
55 assertThrows(ApkInstallerException.class, () -> sut.install(root)); in install_failedToListApks_throwsException()
66 ApkInstaller sut = new ApkInstaller("serial", runUtil, apk -> "package.name"); in install_installCommandFailed_throwsException() local
68 assertThrows(ApkInstallerException.class, () -> sut.install(root)); in install_installCommandFailed_throwsException()
79 ApkInstaller sut = new ApkInstaller("serial", runUtil, apk -> "package.name"); in install_installCommandSucceed_doesNotThrow() local
81 sut.install(root); in install_installCommandSucceed_doesNotThrow()
92 ApkInstaller sut = in install_parsePackageNameFailed_throwsException() local
100 assertThrows(ApkInstallerException.class, () -> sut.install(root)); in install_parsePackageNameFailed_throwsException()
114 ApkInstaller sut = new ApkInstaller("serial", runUtil, apk -> "package.name"); in install_obbExists_installObb() local
116 sut.install(root); in install_obbExists_installObb()
DModuleGeneratorTest.java80 ModuleGenerator sut = new GeneratorBuilder().setTestsDir(testsDir).build(); in tearDown_preserveNonGeneratedModules_doesNotDelete() local
81 OptionSetter option = new OptionSetter(sut); in tearDown_preserveNonGeneratedModules_doesNotDelete()
84 sut.tearDown(createTestInfo(), NO_EXCEPTION); in tearDown_preserveNonGeneratedModules_doesNotDelete()
95 ModuleGenerator sut = new GeneratorBuilder().setTestsDir(testsDir).build(); in tearDown_doesNotPreserveNonGeneratedModules_delete() local
96 OptionSetter option = new OptionSetter(sut); in tearDown_doesNotPreserveNonGeneratedModules_delete()
99 sut.tearDown(createTestInfo(), NO_EXCEPTION); in tearDown_doesNotPreserveNonGeneratedModules_delete()
DModuleTemplateTest.java101 ModuleTemplate sut = ModuleTemplate.loadFrom(config); in substitute_templateMapsSpecified_useTemplateMaps() local
103 String content = sut.substitute("module1", Map.of("a", "b")); in substitute_templateMapsSpecified_useTemplateMaps()
119 ModuleTemplate sut = ModuleTemplate.loadFrom(config); in substitute_templateFileIsInADirectory_canFindTheTemplates() local
121 String content = sut.substitute("module1", Map.of("a", "b")); in substitute_templateFileIsInADirectory_canFindTheTemplates()