DataServiceVisitorJsBuilder extends AbstractDataServiceVisitor { void writeMethodComment(String methodComment, Iterator<String> argumentsType, Iterator<String> argumentsName, TypeMirror returnType, Writer writer) throws IOException { writer.append(TAB2).append("").append(CR); } DataServiceVisitorJsBuilder(ProcessingEnvironment environment, FwkWriter fwk);   }
@Test public void writeMethodCommentTest() throws IOException { System.out.println("writeMethodComment"); String methodComment = ""; Iterator<String> argumentsType = mock(Iterator.class); Iterator<String> argumentsName = mock(Iterator.class); TypeMirror returnType = mock(TypeMirror.class); Writer writer = WriterTest.getMockWriter(); doNothing().when(instance).writeJavadocComment(anyString(), eq(writer)); doNothing().when(instance).writeReturnComment(eq(returnType), eq(writer)); doNothing().when(instance).writeArgumentsComment(any(Iterator.class), any(Iterator.class), eq(writer)); instance.writeMethodComment(methodComment, argumentsType, argumentsName, returnType, writer); }