aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/junitparams/internal/TestMethodTest.java
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2017-05-26 21:08:25 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-05-26 21:08:25 +0000
commitf58521195eaa905758f0b8889f1d030c7d66d6e1 (patch)
treeb4227f625f29e2426693f940545b2883b51fbe5d /src/test/java/junitparams/internal/TestMethodTest.java
parent5a47920cc4e1fe32e9d4ebc6bfdd76c788808c47 (diff)
parent2f41cd20c0d23275511c6622c6aa61ff0c477f68 (diff)
downloadplatform_external_junit-params-f58521195eaa905758f0b8889f1d030c7d66d6e1.tar.gz
platform_external_junit-params-f58521195eaa905758f0b8889f1d030c7d66d6e1.tar.bz2
platform_external_junit-params-f58521195eaa905758f0b8889f1d030c7d66d6e1.zip
Fix JUnitParamsRunner so it works with CTS sharding am: b03560c325
am: 2f41cd20c0 Change-Id: Idcf24600dea537fa1cfe3eb925d3ff82a586453f
Diffstat (limited to 'src/test/java/junitparams/internal/TestMethodTest.java')
-rw-r--r--src/test/java/junitparams/internal/TestMethodTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/java/junitparams/internal/TestMethodTest.java b/src/test/java/junitparams/internal/TestMethodTest.java
index abfe5a3..62dc242 100644
--- a/src/test/java/junitparams/internal/TestMethodTest.java
+++ b/src/test/java/junitparams/internal/TestMethodTest.java
@@ -46,7 +46,7 @@ public class TestMethodTest {
public void flatTestMethodStructure() throws Exception {
System.setProperty("JUnitParams.flat", "true");
- Description description = plainTestMethod.describe();
+ Description description = plainTestMethod.describableFrameworkMethod().getDescription();
assertEquals("for_others_to_work(junitparams.internal.TestMethodTest)", description.getDisplayName());
assertTrue(description.getChildren().isEmpty());
@@ -60,7 +60,7 @@ public class TestMethodTest {
@Test
public void hierarchicalTestMethodStructure() throws Exception {
System.clearProperty("JUnitParams.flat");
- Description description = plainTestMethod.describe();
+ Description description = plainTestMethod.describableFrameworkMethod().getDescription();
assertEquals("forOthersToWork", description.getDisplayName());
assertEquals("[0] a (forOthersToWork)(junitparams.internal.TestMethodTest)", description.getChildren().get(0).getDisplayName());
@@ -73,7 +73,7 @@ public class TestMethodTest {
@Test
public void hierarchicalArrayTestMethodStructure() throws Exception {
System.clearProperty("JUnitParams.flat");
- Description description = arrayTestMethod.describe();
+ Description description = arrayTestMethod.describableFrameworkMethod().getDescription();
assertEquals("forOthersToWorkWithArray", description.getDisplayName());
assertEquals("[0] a,b (forOthersToWorkWithArray)(junitparams.internal.TestMethodTest)",