diff --git a/pom.xml b/pom.xml index a4968ed..2009bf4 100644 --- a/pom.xml +++ b/pom.xml @@ -15,7 +15,7 @@ org.codelibs.fess fess-parent - 15.8.0-SNAPSHOT + 15.8.0 diff --git a/src/test/java/org/codelibs/fess/webapp/example/helper/CustomSystemHelperTest.java b/src/test/java/org/codelibs/fess/webapp/example/helper/CustomSystemHelperTest.java index 1e07d5e..bbc6b24 100644 --- a/src/test/java/org/codelibs/fess/webapp/example/helper/CustomSystemHelperTest.java +++ b/src/test/java/org/codelibs/fess/webapp/example/helper/CustomSystemHelperTest.java @@ -70,6 +70,29 @@ public String getPathEncoding() { public String[] getSupportedLanguagesAsArray() { return new String[] { "ja" }; } + + // SystemHelper#init() validates the four search-role prefixes, and a + // SimpleImpl built here has no properties behind it to read them from. + // Return the values fess_config.properties ships so the check passes. + @Override + public String getRoleSearchUserPrefix() { + return "1"; + } + + @Override + public String getRoleSearchGroupPrefix() { + return "2"; + } + + @Override + public String getRoleSearchRolePrefix() { + return "R"; + } + + @Override + public String getRoleSearchDeniedPrefix() { + return "D"; + } }); super.setUp(testInfo); }