From d8b2419ba390e7602cf33718e9ef1c5b07c81cb5 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Mon, 8 Dec 2014 17:17:28 +0100 Subject: [PATCH] Fix quality flaws --- .../server/search/request/ProxySearchScrollRequestBuilder.java | 2 +- ...uilderText.java => ProxyClusterStateRequestBuilderTest.java} | 2 +- ...uilderText.java => ProxyClusterStatsRequestBuilderTest.java} | 2 +- ...BuilderText.java => ProxyCreateIndexRequestBuilderTest.java} | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename server/sonar-server/src/test/java/org/sonar/server/search/request/{ProxyClusterStateRequestBuilderText.java => ProxyClusterStateRequestBuilderTest.java} (98%) rename server/sonar-server/src/test/java/org/sonar/server/search/request/{ProxyClusterStatsRequestBuilderText.java => ProxyClusterStatsRequestBuilderTest.java} (98%) rename server/sonar-server/src/test/java/org/sonar/server/search/request/{ProxyCreateIndexRequestBuilderText.java => ProxyCreateIndexRequestBuilderTest.java} (98%) diff --git a/server/sonar-server/src/main/java/org/sonar/server/search/request/ProxySearchScrollRequestBuilder.java b/server/sonar-server/src/main/java/org/sonar/server/search/request/ProxySearchScrollRequestBuilder.java index f8d996a9444..a54edfb126a 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/search/request/ProxySearchScrollRequestBuilder.java +++ b/server/sonar-server/src/main/java/org/sonar/server/search/request/ProxySearchScrollRequestBuilder.java @@ -39,7 +39,7 @@ public class ProxySearchScrollRequestBuilder extends SearchScrollRequestBuilder @Override public SearchResponse get() { - StopWatch fullProfile = profiling.start("search", Profiling.Level.FULL); + StopWatch fullProfile = profiling.start("search scroll", Profiling.Level.FULL); try { return super.execute().actionGet(); } catch (Exception e) { diff --git a/server/sonar-server/src/test/java/org/sonar/server/search/request/ProxyClusterStateRequestBuilderText.java b/server/sonar-server/src/test/java/org/sonar/server/search/request/ProxyClusterStateRequestBuilderTest.java similarity index 98% rename from server/sonar-server/src/test/java/org/sonar/server/search/request/ProxyClusterStateRequestBuilderText.java rename to server/sonar-server/src/test/java/org/sonar/server/search/request/ProxyClusterStateRequestBuilderTest.java index b6b4b7025b1..671eef906dd 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/search/request/ProxyClusterStateRequestBuilderText.java +++ b/server/sonar-server/src/test/java/org/sonar/server/search/request/ProxyClusterStateRequestBuilderTest.java @@ -31,7 +31,7 @@ import org.sonar.server.search.SearchClient; import static org.fest.assertions.Assertions.assertThat; import static org.fest.assertions.Fail.fail; -public class ProxyClusterStateRequestBuilderText { +public class ProxyClusterStateRequestBuilderTest { Profiling profiling = new Profiling(new Settings().setProperty(Profiling.CONFIG_PROFILING_LEVEL, Profiling.Level.FULL.name())); SearchClient searchClient = new SearchClient(new Settings(), profiling); diff --git a/server/sonar-server/src/test/java/org/sonar/server/search/request/ProxyClusterStatsRequestBuilderText.java b/server/sonar-server/src/test/java/org/sonar/server/search/request/ProxyClusterStatsRequestBuilderTest.java similarity index 98% rename from server/sonar-server/src/test/java/org/sonar/server/search/request/ProxyClusterStatsRequestBuilderText.java rename to server/sonar-server/src/test/java/org/sonar/server/search/request/ProxyClusterStatsRequestBuilderTest.java index f130a7fa80d..814a8e5fd46 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/search/request/ProxyClusterStatsRequestBuilderText.java +++ b/server/sonar-server/src/test/java/org/sonar/server/search/request/ProxyClusterStatsRequestBuilderTest.java @@ -31,7 +31,7 @@ import org.sonar.server.search.SearchClient; import static org.fest.assertions.Assertions.assertThat; import static org.fest.assertions.Fail.fail; -public class ProxyClusterStatsRequestBuilderText { +public class ProxyClusterStatsRequestBuilderTest { Profiling profiling = new Profiling(new Settings().setProperty(Profiling.CONFIG_PROFILING_LEVEL, Profiling.Level.FULL.name())); SearchClient searchClient = new SearchClient(new Settings(), profiling); diff --git a/server/sonar-server/src/test/java/org/sonar/server/search/request/ProxyCreateIndexRequestBuilderText.java b/server/sonar-server/src/test/java/org/sonar/server/search/request/ProxyCreateIndexRequestBuilderTest.java similarity index 98% rename from server/sonar-server/src/test/java/org/sonar/server/search/request/ProxyCreateIndexRequestBuilderText.java rename to server/sonar-server/src/test/java/org/sonar/server/search/request/ProxyCreateIndexRequestBuilderTest.java index 14260a0a7f6..054d0c94492 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/search/request/ProxyCreateIndexRequestBuilderText.java +++ b/server/sonar-server/src/test/java/org/sonar/server/search/request/ProxyCreateIndexRequestBuilderTest.java @@ -31,7 +31,7 @@ import org.sonar.server.search.SearchClient; import static org.fest.assertions.Assertions.assertThat; import static org.fest.assertions.Fail.fail; -public class ProxyCreateIndexRequestBuilderText { +public class ProxyCreateIndexRequestBuilderTest { Profiling profiling = new Profiling(new Settings().setProperty(Profiling.CONFIG_PROFILING_LEVEL, Profiling.Level.FULL.name())); SearchClient searchClient = new SearchClient(new Settings(), profiling); -- 2.39.5