@Test public void testGetFooterIncludeFileContent() throws IOException { File file = new File(includeRoot.toFile(), Configuration.FOOTER_INCLUDE_FILE); writeStringToFile(file, CONTENT_1); assertEquals(CONTENT_1 + LINE_SEP, env.includeFiles.getFooterIncludeFileContent(false)); writeStringToFile(file, CONTENT_2); assertEquals(CONTENT_2 + LINE_SEP, env.includeFiles.getFooterIncludeFileContent(true)); }
public String getFooterIncludeFileContent(boolean force) { if (footer == null || force) { footer = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), Configuration.FOOTER_INCLUDE_FILE)); } return footer; }
IncludeFiles { public String getFooterIncludeFileContent(boolean force) { if (footer == null || force) { footer = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), Configuration.FOOTER_INCLUDE_FILE)); } return footer; } }
IncludeFiles { public String getFooterIncludeFileContent(boolean force) { if (footer == null || force) { footer = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), Configuration.FOOTER_INCLUDE_FILE)); } return footer; }  }
IncludeFiles { public String getFooterIncludeFileContent(boolean force) { if (footer == null || force) { footer = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), Configuration.FOOTER_INCLUDE_FILE)); } return footer; }  void reloadIncludeFiles(); String getFooterIncludeFileContent(boolean force); String getHeaderIncludeFileContent(boolean force); String getBodyIncludeFileContent(boolean force); String getForbiddenIncludeFileContent(boolean force); String getHttpHeaderIncludeFileContent(boolean force); }
IncludeFiles { public String getFooterIncludeFileContent(boolean force) { if (footer == null || force) { footer = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), Configuration.FOOTER_INCLUDE_FILE)); } return footer; }  void reloadIncludeFiles(); String getFooterIncludeFileContent(boolean force); String getHeaderIncludeFileContent(boolean force); String getBodyIncludeFileContent(boolean force); String getForbiddenIncludeFileContent(boolean force); String getHttpHeaderIncludeFileContent(boolean force);  }