/** * @return the project version of WComponents. */ public static String getProjectVersion() { String version = ConfigurationProperties.getProjectVersion(); if (version == null) { throw new SystemException("The project version parameter has not been defined."); } return version; }
/** * @return a WContentLink with cache key and content suitable for this test. */ private static WContentLink createSampleWContentLink() { WContentLink link = new WContentLink("Content link text"); link.setCacheKey(ConfigurationProperties.getProjectVersion()); link.setContentAccess(new MockImage()); return link; }