@Test void getLicense() throws IOException { ExtensionLicense license = this.licenseManager.getLicense("Apache License 2.0"); List<String> content = IOUtils.readLines( getClass().getResourceAsStream("/extension/licenses/Apache License 2.0.license"), StandardCharsets.UTF_8); content = content.subList(8, content.size()); assertNotNull(license); assertEquals("Apache License 2.0", license.getName()); assertEquals(content, license.getContent()); license = this.licenseManager.getLicense("ASL"); assertNotNull(license); assertEquals("Apache License 2.0", license.getName()); assertEquals(content, license.getContent()); }
@Override public ExtensionLicense getLicense(String name) { return this.licenses.get(name.toLowerCase()); }
DefaultExtensionLicenseManager implements ExtensionLicenseManager, Initializable { @Override public ExtensionLicense getLicense(String name) { return this.licenses.get(name.toLowerCase()); } }
DefaultExtensionLicenseManager implements ExtensionLicenseManager, Initializable { @Override public ExtensionLicense getLicense(String name) { return this.licenses.get(name.toLowerCase()); }  }
DefaultExtensionLicenseManager implements ExtensionLicenseManager, Initializable { @Override public ExtensionLicense getLicense(String name) { return this.licenses.get(name.toLowerCase()); }  @Override void initialize(); @Override List<ExtensionLicense> getLicenses(); @Override ExtensionLicense getLicense(String name); @Override void addLicense(ExtensionLicense license); }
DefaultExtensionLicenseManager implements ExtensionLicenseManager, Initializable { @Override public ExtensionLicense getLicense(String name) { return this.licenses.get(name.toLowerCase()); }  @Override void initialize(); @Override List<ExtensionLicense> getLicenses(); @Override ExtensionLicense getLicense(String name); @Override void addLicense(ExtensionLicense license);  }