@Test public void getLicenseNames(){ final RepositoryHandler repositoryHandler = mock(RepositoryHandler.class); final LicenseHandler handler = new LicenseHandler(repositoryHandler); final FiltersHolder filters = mock(FiltersHolder.class); handler.getLicensesNames(filters); verify(repositoryHandler, times(1)).getLicenseNames(filters); }
public List<String> getLicensesNames(final FiltersHolder filters) { return repoHandler.getLicenseNames(filters); }
LicenseHandler implements LicenseMatcher { public List<String> getLicensesNames(final FiltersHolder filters) { return repoHandler.getLicenseNames(filters); } }
LicenseHandler implements LicenseMatcher { public List<String> getLicensesNames(final FiltersHolder filters) { return repoHandler.getLicenseNames(filters); } LicenseHandler(final RepositoryHandler repoHandler); }
LicenseHandler implements LicenseMatcher { public List<String> getLicensesNames(final FiltersHolder filters) { return repoHandler.getLicenseNames(filters); } LicenseHandler(final RepositoryHandler repoHandler); void store(final DbLicense dbLicense); List<String> getLicensesNames(final FiltersHolder filters); DbLicense getLicense(final String name); void deleteLicense(final String licName); void approveLicense(final String name, final Boolean approved); DbLicense resolve(final String licenseId); List<License> getLicenses(); Set<DbLicense> resolveLicenses(List<String> licStrings); @Override Set<DbLicense> getMatchingLicenses(String licenseString); }
LicenseHandler implements LicenseMatcher { public List<String> getLicensesNames(final FiltersHolder filters) { return repoHandler.getLicenseNames(filters); } LicenseHandler(final RepositoryHandler repoHandler); void store(final DbLicense dbLicense); List<String> getLicensesNames(final FiltersHolder filters); DbLicense getLicense(final String name); void deleteLicense(final String licName); void approveLicense(final String name, final Boolean approved); DbLicense resolve(final String licenseId); List<License> getLicenses(); Set<DbLicense> resolveLicenses(List<String> licStrings); @Override Set<DbLicense> getMatchingLicenses(String licenseString);  }