Adapt to Gerrit master
Change-Id: I4307681ff605e561351c9694c8e116850c877236
diff --git a/src/test/java/com/googlesource/gerrit/plugins/its/jira/JiraITTest.java b/src/test/java/com/googlesource/gerrit/plugins/its/jira/JiraITTest.java
index 3904296..8df2b85 100644
--- a/src/test/java/com/googlesource/gerrit/plugins/its/jira/JiraITTest.java
+++ b/src/test/java/com/googlesource/gerrit/plugins/its/jira/JiraITTest.java
@@ -21,6 +21,7 @@
import static com.github.tomakehurst.wiremock.client.WireMock.okJson;
import static com.github.tomakehurst.wiremock.client.WireMock.postRequestedFor;
import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo;
+import static com.google.gerrit.server.project.ProjectCache.illegalState;
import static java.lang.String.format;
import static java.net.HttpURLConnection.HTTP_CREATED;
import static java.net.HttpURLConnection.HTTP_FORBIDDEN;
@@ -79,7 +80,8 @@
@Before
public void enablePluginInProjectConfig() throws Exception {
projectCache
- .checkedGet(project)
+ .get(project)
+ .orElseThrow(illegalState(project))
.getConfig()
.getPluginConfig(PLUGIN_NAME)
.setString("enabled", "true");