AppInfo { public void setLocation(String location) { if (location != null && location.endsWith(".jar")) { setJarLocation(location); } else { setPackage(location); } logger.infoIfEnabled("Specification-Title=[{}]", this.specificationTitle); logger.infoIfEnabled("Specification-Version=[{}]", this.specificationVersion); logger.infoIfEnabled("Specification-Vendor=[{}]", this.specificationVendor); logger.infoIfEnabled("Implementation-Title=[{}]", this.implementationTitle); logger.infoIfEnabled("Implementation-Version=[{}]", this.implementationVersion); logger.infoIfEnabled("Implementation-Vendor=[{}]", this.implementationVendor); } AppInfo(); String executeCommand(String command); String executeCommands(String commands); String executeCommands(String commands, String separator); void setLocation(String location); String getAppVersion(); static Logger getLogger(); String getSpecificationTitle(); String getSpecificationVersion(); String getSpecificationVendor(); String getImplementationTitle(); String getImplementationVersion(); String getImplementationVendor(); void setAppVersion(String appVersion); String toString(); void setProcessable(Processable processable);  }
@Test public void setLocation() { AppInfo app = new AppInfo(); app.setLocation("org.slf4j"); assertEquals("1.7.7", app.getAppVersion()); }