FluentMethodCollector { public List<FluentMethod> getMethods() { return methods; } FluentMethodCollector(JavaDocBuilder qdox); List<FluentMethod> getMethods(); void addMethods(String className);  }
@Test public void returnType_is_bound_matcher() { List<FluentMethod> methods = getMethods(StringMatcherResult.class); assertMethodFound(methods, "string", String.class); }
@Test public void returnType_is_unbound_matcher() { List<FluentMethod> methods = getMethods(UnboundMatcherResult.class); assertMethodFound(methods, "object", Object.class); }
@Test public void returnType_is_semibound_matcher() { List<FluentMethod> methods = getMethods(SemiboundMatcherResult.class); assertMethodFound(methods, "throwable", Throwable.class); }
@Test public void returnType_is_bound_subclass() { List<FluentMethod> methods = getMethods(MatcherSubclassResult.class); assertMethodFound(methods, "string", String.class); }
@Test public void returnType_is_unbound_subclass() { List<FluentMethod> methods = getMethods(UnboundSubclassResult.class); assertMethodFound(methods, "object", Object.class); }
@Test public void returnType_is_semibound_subclass() { List<FluentMethod> methods = getMethods(SemiboundSubclassResult.class); assertMethodFound(methods, "throwable", Throwable.class); }
@Test public void returnType_is_genericType_matcher() { List<FluentMethod> methods = getMethods(GenericTypeMatcherResult.class); assertMethodFound(methods, "collection", "java.util.Collection<java.lang.String>"); }
@Test public void returnType_is_unbound_genericType_matcher() { List<FluentMethod> methods = getMethods(UnboundGenericTypeMatcherResult.class); assertMethodFound(methods, "collection", "java.util.Collection<java.lang.Object>"); }