aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/junitparams/internal/TestMethodTest.java
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2017-05-26 21:10:25 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-05-26 21:10:25 +0000
commit55edd63fa38458b91fb6a9b51cf5d7350dbd04e8 (patch)
treeb4227f625f29e2426693f940545b2883b51fbe5d /src/test/java/junitparams/internal/TestMethodTest.java
parenta4bb7ac6456a53c89398085f0e1db2a9cb3b80e5 (diff)
parentf58521195eaa905758f0b8889f1d030c7d66d6e1 (diff)
downloadplatform_external_junit-params-55edd63fa38458b91fb6a9b51cf5d7350dbd04e8.tar.gz
platform_external_junit-params-55edd63fa38458b91fb6a9b51cf5d7350dbd04e8.tar.bz2
platform_external_junit-params-55edd63fa38458b91fb6a9b51cf5d7350dbd04e8.zip
Fix JUnitParamsRunner so it works with CTS sharding am: b03560c325 am: 2f41cd20c0
am: f58521195e Change-Id: I63c6e87ba97733c1b233e4283c86b4d1180686c9
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)",