QDox
  1. QDox
  2. QDOX-169

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

        Robert Scholte made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Paul Hammant [ paul ] Robert Scholte [ rfscholte ]
        Fix Version/s 1.12 [ 16282 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Robert Scholte
            Reporter:
            Robert Scholte
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: