ObjectFab GmbH - Logo JunitDoclet - Logo

My handwritten TestCases are not executed in the TestSuite.

If you create a TestCase by writing everything yourself (which is good for more functional tests) just insert the call for that TestCase in the TestSuite you want. That's what the markers in the suite method are for.

public static TestSuite suite() {
  TestSuite suite;
  
  suite = new TestSuite("org.junitdoclet.demo");
  suite.addTestSuite(org.junitdoclet.demo.SampleClassTest.class);
  
  // JUnitDoclet begin method suite
  suite.addTestSuite(org.junitdoclet.demo.MyOwnHandwrittenTest.class);  
  // JUnitDoclet end method suite
  
  return suite;
}