@Test public void testGetBodyIncludeFileContent() throws IOException { File file = new File(includeRoot.toFile(), Configuration.BODY_INCLUDE_FILE); writeStringToFile(file, CONTENT_1); assertEquals(CONTENT_1 + LINE_SEP, env.includeFiles.getBodyIncludeFileContent(false)); writeStringToFile(file, CONTENT_2); assertEquals(CONTENT_2 + LINE_SEP, env.includeFiles.getBodyIncludeFileContent(true)); }
public String getBodyIncludeFileContent(boolean force) { if (body == null || force) { body = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), Configuration.BODY_INCLUDE_FILE)); } return body; }
IncludeFiles { public String getBodyIncludeFileContent(boolean force) { if (body == null || force) { body = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), Configuration.BODY_INCLUDE_FILE)); } return body; } }
IncludeFiles { public String getBodyIncludeFileContent(boolean force) { if (body == null || force) { body = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), Configuration.BODY_INCLUDE_FILE)); } return body; }  }
IncludeFiles { public String getBodyIncludeFileContent(boolean force) { if (body == null || force) { body = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), Configuration.BODY_INCLUDE_FILE)); } return body; }  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 getBodyIncludeFileContent(boolean force) { if (body == null || force) { body = getFileContent(new File(RuntimeEnvironment.getInstance().getIncludeRootPath(), Configuration.BODY_INCLUDE_FILE)); } return body; }  void reloadIncludeFiles(); String getFooterIncludeFileContent(boolean force); String getHeaderIncludeFileContent(boolean force); String getBodyIncludeFileContent(boolean force); String getForbiddenIncludeFileContent(boolean force); String getHttpHeaderIncludeFileContent(boolean force);  }