Home
last modified time | relevance | path

Searched refs:Statement (Results 1 – 25 of 89) sorted by relevance

1234

/platform_testing/libraries/health/options/tests/src/android/platform/test/options/
DTestOptionTest.java25 import org.junit.runners.model.Statement;
74 Statement testStatement = in testSuppliedValue_valid()
75 new Statement() { in testSuppliedValue_valid()
81 Statement withOption = option.apply(testStatement, Description.EMPTY); in testSuppliedValue_valid()
92 Statement testStatement = in testSuppliedValue_invalid()
93 new Statement() { in testSuppliedValue_invalid()
99 Statement withOption = option.apply(testStatement, Description.EMPTY); in testSuppliedValue_invalid()
109 Statement testStatement = in testRequiredValueAbsent_explicit()
110 new Statement() { in testRequiredValueAbsent_explicit()
116 Statement withOption = option.apply(testStatement, Description.EMPTY); in testRequiredValueAbsent_explicit()
[all …]
DBooleanOptionTest.java23 import org.junit.runners.model.Statement;
53 Statement testStatement = in testParsing_true()
54 new Statement() { in testParsing_true()
60 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_true()
69 Statement testStatement = in testParsing_false()
70 new Statement() { in testParsing_false()
76 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_false()
DLongOptionTest.java25 import org.junit.runners.model.Statement;
59 Statement testStatement = in testParsing_valid()
60 new Statement() { in testParsing_valid()
66 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_valid()
77 Statement testStatement = in testParsing_invalid()
78 new Statement() { in testParsing_invalid()
84 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_invalid()
DIntegerOptionTest.java25 import org.junit.runners.model.Statement;
59 Statement testStatement = in testParsing_valid()
60 new Statement() { in testParsing_valid()
66 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_valid()
77 Statement testStatement = in testParsing_invalid()
78 new Statement() { in testParsing_invalid()
84 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_invalid()
DDoubleOptionTest.java25 import org.junit.runners.model.Statement;
59 Statement testStatement = in testParsing_valid()
60 new Statement() { in testParsing_valid()
66 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_valid()
77 Statement testStatement = in testParsing_invalid()
78 new Statement() { in testParsing_invalid()
84 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_invalid()
DStringOptionTest.java23 import org.junit.runners.model.Statement;
54 Statement testStatement = in testRetrieval()
55 new Statement() { in testRetrieval()
61 Statement withOption = option.apply(testStatement, Description.EMPTY); in testRetrieval()
/platform_testing/libraries/health/runners/microbenchmark/src/android/platform/test/microbenchmark/
DFunctional.java34 import org.junit.runners.model.Statement;
72 private Statement artifactSaver(Statement statement, Stream<FrameworkMethod> methods) { in artifactSaver()
73 return new Statement() { in artifactSaver()
91 private Statement withTrace(String name, Statement statement) {
92 return new Statement() {
121 protected Statement withBefores(FrameworkMethod method, Object target, Statement s) {
127 final Statement statement = befores.isEmpty() ? s : new RunBefores(s, befores, target);
134 protected Statement withAfters(FrameworkMethod method, Object target, Statement s) {
140 final Statement statement = super.withAfters(method, target, s);
147 protected Statement methodBlock(FrameworkMethod method) {
[all …]
/platform_testing/libraries/flicker/utils/test/src/android/tools/rules/
DInitializeCrossPlatformRule.kt21 import org.junit.runners.model.Statement
24 override fun apply(base: Statement?, description: Description?): Statement { in apply()
25 return object : Statement() { in apply()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DHardwareRenderingRule.kt21 import org.junit.runners.model.Statement
31 override fun apply(base: Statement, description: Description): Statement { in apply()
32 return object : Statement() { in apply()
DTimeZoneRule.kt22 import org.junit.runners.model.Statement
31 override fun apply(base: Statement, description: Description): Statement { in apply()
32 return object : Statement() { in apply()
DFontsRule.kt26 import org.junit.runners.model.Statement
36 override fun apply(base: Statement, description: Description): Statement { in apply()
37 return object : Statement() { in apply()
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DGarbageCollectRuleTest.java30 import org.junit.runners.model.Statement;
45 Statement testStatement = new Statement() { in testNoGcBeforeTest()
63 Statement testStatement = in testCallsGcBeforeTest()
64 new Statement() { in testCallsGcBeforeTest()
87 Statement testStatement = new Statement() { in testCallsGcBeforeAndAfterTest()
109 Statement testStatement = new Statement() { in testCallsGcOnlyBeforeTest()
130 Statement testStatement = in testExtendWaitTime()
131 new Statement() { in testExtendWaitTime()
DDynamicRuleChainTest.java29 import org.junit.runners.model.Statement;
46 private static final Statement PASSING_STATEMENT =
47 new Statement() {
54 private static final Statement FAILING_STATEMENT =
55 new Statement() {
74 Statement applied = chain.apply(PASSING_STATEMENT, DESCRIPTION); in testAppliesRuleBySimpleClassNameForRulesInKnownPackage()
82 Statement applied = chain.apply(FAILING_STATEMENT, DESCRIPTION); in testRuleCallbacks()
94 Statement applied = chain.apply(PASSING_STATEMENT, DESCRIPTION); in testAppliesRuleByFullyQualifiedClassName()
125 Statement applied = chain.apply(PASSING_STATEMENT, DESCRIPTION); in testMultipleRulesAreAppliedInCorrectOrder()
156 Statement applied = chain.apply(PASSING_STATEMENT, DESCRIPTION); in testSupportsDuplicateSimpleRuleNames()
[all …]
DUnlockScreenRuleTest.java33 import org.junit.runners.model.Statement;
44 Statement testStatement = in testScreenOff()
45 new Statement() { in testScreenOff()
60 Statement testStatement = in testScreenLocked()
61 new Statement() { in testScreenLocked()
76 Statement testStatement = in testScreenOn()
77 new Statement() { in testScreenOn()
DNotificationPressureRuleTest.java27 import org.junit.runners.model.Statement;
44 Statement testStatement = in testPostNotifications_withoutPackage()
45 new Statement() { in testPostNotifications_withoutPackage()
69 Statement testStatement = in testPostNotifications_withPackage()
70 new Statement() { in testPostNotifications_withPackage()
DPressHomeRuleTest.java30 import org.junit.runners.model.Statement;
48 Statement testStatement = new Statement() { in testPressHomeEnabled()
70 Statement testStatement = new Statement() { in testPressHomeDisabled()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DSkipOnAospRule.java24 import org.junit.runners.model.Statement;
29 public Statement apply(Statement base, Description description) { in apply()
34 return new Statement() { in apply()
DRepeatTestRule.java24 import org.junit.runners.model.Statement;
36 private static class RepeatTestStatement extends Statement {
37 private final Statement mStatement;
40 RepeatTestStatement(Statement statement, int repeatCount) { in RepeatTestStatement()
62 public Statement apply(@NonNull Statement base, @NonNull Description description) { in apply()
DPortraitLandscapeRule.kt8 import org.junit.runners.model.Statement
19 override fun apply(base: Statement, description: Description): Statement = in apply()
20 object : Statement() { in apply()
35 private fun Statement.runInOrientation(orientation: Orientation) { in Statement() method
DPresubmitBranchRule.java24 import org.junit.runners.model.Statement;
42 public Statement apply(Statement base, Description description) { in apply()
51 return new Statement() { in apply()
/platform_testing/libraries/flag-helpers/junit/src_base/android/platform/test/flag/junit/
DCheckFlagsRule.java21 import org.junit.runners.model.Statement;
40 public Statement apply(Statement base, Description description) { in apply()
41 return new Statement() { in apply()
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/
DLongevityClassRunner.java39 import org.junit.runners.model.Statement;
134 protected Statement withBeforeClasses(Statement statement) { in withBeforeClasses()
144 protected Statement withAfterClasses(Statement statement) { in withAfterClasses()
154 protected Statement withBefores(FrameworkMethod method, Object target, Statement statement) { in withBefores()
173 protected Statement withAfters(FrameworkMethod method, Object target, Statement statement) { in withAfters()
192 Statement statement, List<FrameworkMethod> befores, Object target) { in addRunBefores()
201 protected Statement addRunAfters( in addRunAfters()
202 Statement statement, in addRunAfters()
233 class RunAfterMethods extends Statement {
236 private final Statement mStatement;
[all …]
/platform_testing/libraries/health/runners/longevity/platform/tests/src/android/platform/test/longevity/samples/testing/
DSampleExtraArgsSuite.java32 import org.junit.runners.model.Statement;
59 public Statement apply(Statement base, Description description) {
60 return new Statement() {
91 public Statement apply(Statement base, Description description) {
92 return new Statement() {
/platform_testing/libraries/health/runners/longevity/platform/tests/src/android/platform/test/longevity/
DLongevityClassRunnerTest.java51 import org.junit.runners.model.Statement;
145 private static final Statement PASSING_STATEMENT =
146 new Statement() {
152 private static final Statement FAILING_STATEMENT =
153 new Statement() {
182 Statement returnedStatement = (Statement) invocation.callRealMethod(); in testBeforeClassMethodsAddedAsBeforeMethods()
191 .withBeforeClasses(any(Statement.class)); in testBeforeClassMethodsAddedAsBeforeMethods()
215 .addRunBefores(any(Statement.class), any(List.class), any(Object.class)); in testBeforeClassMethodsAddedAsBeforeMethods()
220 verify(mRunner, times(1)).withBeforeClasses(any(Statement.class)); in testBeforeClassMethodsAddedAsBeforeMethods()
222 .addRunBefores(any(Statement.class), any(List.class), any(Object.class)); in testBeforeClassMethodsAddedAsBeforeMethods()
[all …]
/platform_testing/libraries/flicker/utils/src/android/tools/rules/
DStopAllTracesRule.kt31 import org.junit.runners.model.Statement
34 override fun apply(base: Statement?, description: Description?): Statement { in apply()
35 return object : Statement() { in apply()

1234