From 32484e84a747dcfd6db779263d0f6919d644349d Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Tue, 3 Mar 2015 11:29:10 +0100 Subject: [PATCH] Rename method --- .../computation/step/PurgeRemovedViewsStepTest.java | 8 ++------ .../src/test/java/org/sonar/server/es/EsTester.java | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/server/sonar-server/src/test/java/org/sonar/server/computation/step/PurgeRemovedViewsStepTest.java b/server/sonar-server/src/test/java/org/sonar/server/computation/step/PurgeRemovedViewsStepTest.java index a490894a654..86fce27ddb2 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/computation/step/PurgeRemovedViewsStepTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/computation/step/PurgeRemovedViewsStepTest.java @@ -20,11 +20,7 @@ package org.sonar.server.computation.step; -import org.junit.After; -import org.junit.Before; -import org.junit.ClassRule; -import org.junit.Rule; -import org.junit.Test; +import org.junit.*; import org.sonar.api.config.Settings; import org.sonar.api.resources.Qualifiers; import org.sonar.core.component.ComponentDto; @@ -89,7 +85,7 @@ public class PurgeRemovedViewsStepTest extends BaseStepTest { sut.execute(context); - List viewUuids = esTester.getDocumentFields(ViewIndexDefinition.INDEX, ViewIndexDefinition.TYPE_VIEW, ViewIndexDefinition.FIELD_UUID); + List viewUuids = esTester.getDocumentFieldValues(ViewIndexDefinition.INDEX, ViewIndexDefinition.TYPE_VIEW, ViewIndexDefinition.FIELD_UUID); assertThat(viewUuids).containsOnly("ABCD", "BCDE"); } diff --git a/server/sonar-server/src/test/java/org/sonar/server/es/EsTester.java b/server/sonar-server/src/test/java/org/sonar/server/es/EsTester.java index 4395dff39fb..09aaf8cd403 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/es/EsTester.java +++ b/server/sonar-server/src/test/java/org/sonar/server/es/EsTester.java @@ -209,7 +209,7 @@ public class EsTester extends ExternalResource { /** * Get a list of a specific field from all indexed documents. */ - public List getDocumentFields(String indexName, String typeName, final String fieldNameToReturn) { + public List getDocumentFieldValues(String indexName, String typeName, final String fieldNameToReturn) { return newArrayList(Iterables.transform(getDocuments(indexName, typeName), new Function() { @Override public T apply(SearchHit input) { -- 2.39.5