Switch to simplified plugin bootstrap Change-Id: Ic6a68fa6549b7ac5747cdebb7040a5c534ae218f
diff --git a/src/test/java/com/ericsson/gerrit/plugins/evictcache/EvictCacheIT.java b/src/test/java/com/ericsson/gerrit/plugins/evictcache/EvictCacheIT.java index b44ac31..4eac457 100644 --- a/src/test/java/com/ericsson/gerrit/plugins/evictcache/EvictCacheIT.java +++ b/src/test/java/com/ericsson/gerrit/plugins/evictcache/EvictCacheIT.java
@@ -22,9 +22,9 @@ import static com.github.tomakehurst.wiremock.client.WireMock.verify; import com.google.gerrit.acceptance.GerritConfig; -import com.google.gerrit.acceptance.GerritConfigs; +import com.google.gerrit.acceptance.LightweightPluginDaemonTest; import com.google.gerrit.acceptance.NoHttpd; -import com.google.gerrit.acceptance.PluginDaemonTest; +import com.google.gerrit.acceptance.TestPlugin; import com.github.tomakehurst.wiremock.http.Request; import com.github.tomakehurst.wiremock.http.RequestListener; @@ -38,16 +38,19 @@ import java.util.concurrent.TimeUnit; @NoHttpd -public class EvictCacheIT extends PluginDaemonTest { +@TestPlugin( + name = "evict-cache", + sysModule = "com.ericsson.gerrit.plugins.evictcache.Module", + httpModule = "com.ericsson.gerrit.plugins.evictcache.HttpModule" +) +public class EvictCacheIT extends LightweightPluginDaemonTest { @Rule public WireMockRule wireMockRule = new WireMockRule(Constants.PORT); @Test - @GerritConfigs({ - @GerritConfig(name = "plugin.evict-cache.url", value = Constants.URL), - @GerritConfig(name = "plugin.evict-cache.user", value = "admin") - }) + @GerritConfig(name = "plugin.evict-cache.url", value = Constants.URL) + @GerritConfig(name = "plugin.evict-cache.user", value = "admin") public void flushAndSendPost() throws Exception { final String flushRequest = Constants.ENDPOINT_BASE + Constants.PROJECT_LIST;