@Test public void testThatAllTypesAndMethodsAreCollectedFromTestClass() { Assertions.assertEquals("{\n" + " \"m1(String,TestMethodCollection)\" -> m1\n" + " \"m1(javax0.geci.api.Geci,javax0.geci.annotations.Geci)\" -> m1\n" + "}", new MethodCollection(TestClass.class).toString()); }
@Override public String toString() { var s = new StringBuilder(); s.append("{\n"); for (var key : new TreeSet<>(methodMap.keySet())) { s.append(" \"").append(key).append("\" -> ").append(methodMap.get(key).method.getName()).append("\n"); } s.append("}"); return s.toString(); }
MethodCollection { @Override public String toString() { var s = new StringBuilder(); s.append("{\n"); for (var key : new TreeSet<>(methodMap.keySet())) { s.append(" \"").append(key).append("\" -> ").append(methodMap.get(key).method.getName()).append("\n"); } s.append("}"); return s.toString(); } }
MethodCollection { @Override public String toString() { var s = new StringBuilder(); s.append("{\n"); for (var key : new TreeSet<>(methodMap.keySet())) { s.append(" \"").append(key).append("\" -> ").append(methodMap.get(key).method.getName()).append("\n"); } s.append("}"); return s.toString(); } MethodCollection(Class<?> klass); }
MethodCollection { @Override public String toString() { var s = new StringBuilder(); s.append("{\n"); for (var key : new TreeSet<>(methodMap.keySet())) { s.append(" \"").append(key).append("\" -> ").append(methodMap.get(key).method.getName()).append("\n"); } s.append("}"); return s.toString(); } MethodCollection(Class<?> klass); boolean needWrapperInterface(); Set<String> methodSignatures(); Method get(String name); Boolean isExitNode(String name); void include(String method); void exclude(String method); Boolean isFluentNode(String name); void exitNode(String name); @Override String toString(); }
MethodCollection { @Override public String toString() { var s = new StringBuilder(); s.append("{\n"); for (var key : new TreeSet<>(methodMap.keySet())) { s.append(" \"").append(key).append("\" -> ").append(methodMap.get(key).method.getName()).append("\n"); } s.append("}"); return s.toString(); } MethodCollection(Class<?> klass); boolean needWrapperInterface(); Set<String> methodSignatures(); Method get(String name); Boolean isExitNode(String name); void include(String method); void exclude(String method); Boolean isFluentNode(String name); void exitNode(String name); @Override String toString();  }