@Test public void testContainsIds() { MethodMap methodMap = new MethodMap(TESTER); Set<String> identifiers = methodMap.getAllIds(); long missing = Arrays.stream(TESTER.getMethods()) .filter(m -> Modifier.isPublic(m.getModifiers())) .map(ReflectionUtil::getMethodId) .filter(s -> !identifiers.contains(s)) .peek(s -> System.out.println("Method map does not contain expected: " + s)) .count(); assertEquals(0, missing); }
public @NotNull Set<String> getAllIds() { return new HashSet<>(backingMap.keySet()); }
MethodMap { public @NotNull Set<String> getAllIds() { return new HashSet<>(backingMap.keySet()); } }
MethodMap { public @NotNull Set<String> getAllIds() { return new HashSet<>(backingMap.keySet()); } private  MethodMap();   MethodMap(@NotNull Class<?> clazz); }
MethodMap { public @NotNull Set<String> getAllIds() { return new HashSet<>(backingMap.keySet()); } private  MethodMap();   MethodMap(@NotNull Class<?> clazz); @Nullable Method getById(String identifier); boolean containsId(String identifier); @NotNull Set<Method> getAllMethods(); @NotNull Set<String> getAllIds(); @NotNull Class<?> getMappedClass(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
MethodMap { public @NotNull Set<String> getAllIds() { return new HashSet<>(backingMap.keySet()); } private  MethodMap();   MethodMap(@NotNull Class<?> clazz); @Nullable Method getById(String identifier); boolean containsId(String identifier); @NotNull Set<Method> getAllMethods(); @NotNull Set<String> getAllIds(); @NotNull Class<?> getMappedClass(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final MethodMap EMPTY; }