Skip to content
Snippets Groups Projects
Commit 6dfb7c7c authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Address comments on aosp/2765367" into main

parents a51221f0 2aa44125
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ import org.junit.runners.Parameterized ...@@ -42,7 +42,7 @@ import org.junit.runners.Parameterized
* the whole class if they do not match the development SDK as defined in [DevSdkIgnoreRule]. * the whole class if they do not match the development SDK as defined in [DevSdkIgnoreRule].
* Otherwise, it will delegate to [AndroidJUnit4] to run the test as usual. * Otherwise, it will delegate to [AndroidJUnit4] to run the test as usual.
* *
* This class automatically uses the Parameterized runner as its base runner, so the * This class automatically uses the Parameterized runner as its base runner when needed, so the
* @Parameterized.Parameters annotation and its friends can be used in tests using this runner. * @Parameterized.Parameters annotation and its friends can be used in tests using this runner.
* *
* Example usage: * Example usage:
...@@ -69,7 +69,7 @@ class DevSdkIgnoreRunner(private val klass: Class<*>) : Runner(), Filterable, So ...@@ -69,7 +69,7 @@ class DevSdkIgnoreRunner(private val klass: Class<*>) : Runner(), Filterable, So
null null
} else if (it.hasParameterizedMethod()) { } else if (it.hasParameterizedMethod()) {
// Parameterized throws if there is no static method annotated with @Parameters, which // Parameterized throws if there is no static method annotated with @Parameters, which
// isn't too useful. Use if it there are, otherwise use its base AndroidJUnit4 runner. // isn't too useful. Use it if there are, otherwise use its base AndroidJUnit4 runner.
RunnerWrapper(Parameterized(klass)) RunnerWrapper(Parameterized(klass))
} else { } else {
RunnerWrapper(AndroidJUnit4(klass)) RunnerWrapper(AndroidJUnit4(klass))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment