commit | f47bab935dfa5e55f1d6782a3c2846ec0e6ec9db | [log] [tgz] |
---|---|---|
author | Patrick Hiesel <hiesel@google.com> | Fri Mar 06 15:18:11 2020 +0100 |
committer | Patrick Hiesel <hiesel@google.com> | Fri Mar 06 15:18:39 2020 +0100 |
tree | c14c9c34d995be2a9d10d7a7c792cfaca44339d9 | |
parent | ceb996c59a9ebca94d551ac8941db18a2d8773cf [diff] |
Adapt to ProjectCache#get interface change Change-Id: I44f28f41556ca20017047f3d1d075a6c664b8b23
diff --git a/src/test/java/com/googlesource/gerrit/plugins/simplesubmitrules/PluginIT.java b/src/test/java/com/googlesource/gerrit/plugins/simplesubmitrules/PluginIT.java index 35d363d..e69213f 100644 --- a/src/test/java/com/googlesource/gerrit/plugins/simplesubmitrules/PluginIT.java +++ b/src/test/java/com/googlesource/gerrit/plugins/simplesubmitrules/PluginIT.java
@@ -141,7 +141,8 @@ SubmitConfig config = new SubmitConfig(ImmutableMap.of("Code-Review", codeReview), null); postConfig(project, config); - LabelType localCR = projectCache.get(project).getConfig().getLabelSections().get("Code-Review"); + LabelType localCR = + projectCache.get(project).get().getConfig().getLabelSections().get("Code-Review"); assertThat(localCR.getFunction()).isEqualTo(LabelFunction.MAX_NO_BLOCK); // Check that the label has the same configs besides the function, which we changed