- private static Set<String> computeNotFoundCapabilities(Set<String> expectedCapabilities, YangStoreService yangStoreService) {
-
- Collection<String> actual = Collections2.transform(yangStoreService.getModules(), new Function<Module, String>() {
- @Nullable
- @Override
- public String apply(Module input) {
- final String withoutRevision = input.getNamespace().toString() + "?module=" + input.getName();
- return !input.getRevision().equals(NO_REVISION) ? withoutRevision + "&revision=" + Util.writeDate(input.getRevision()) : withoutRevision;
- }
- });
-
- Set<String> allNotFound = new HashSet<>(expectedCapabilities);
- allNotFound.removeAll(actual);
- return allNotFound;
- }
-