QDox

add description of writing proper tests in jira

Details

  • Type: Task Task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.12
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

We get a lot of different ways of test-commits. Sometimes it's a parsing failure or some unexpected responses.

The best way to write a test:

public void testDescription() throws Exception {
        JavaDocBuilder builder = new JavaDocBuilder();
        String source = "public class Foo {}";
        //One of next lines
//        builder.addSource(new StringReader(source));
        
//        JavaSource javaSource = builder.addSource(new StringReader(source));
//        JavaClass jClass = javaSource.getClasses()[0];
    }

Would be nice if this was documented somewhere, maybe frontpage of qdox' Jira.

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: