Date: 2005-01-27T14:51:27
   Editor: ZacharySmith
   Wiki: Apache Beehive Wiki
   Page: Controls/TestingControls/Mantis
   URL: http://wiki.apache.org/beehive/Controls/TestingControls/Mantis

   no comment

New Page:

Mantis is an annotation processor framework invoked by APT. It's purpose is to 
provide
an extensible framwwork for annotations and corresponding processors. It 
currently has one 
built-in processor that will generate TCH (Test Case Harness) test xml files
based on annotated junit source code. [wiki:/Milton Milton] has a Mantis 
processor for generating Control Test client code. [[BR]]

Mantis is extensible. To write your own
mantis processor, simply extend AbstractMantisProcessor.java. Mantis processors
are required to "play nice" with other mantis processors. Any files a processor
creates must be "registered" so they are available to other processors. In this 
way, 
processors can be used by other processors, by themselves, or in a chain. Once
you have your own mantis processor, you can add an entry to mantis' configuation
file (mantis.properties), which maps annotation package names to the processor
class. Only one processor is allowed per annotation package. In the future, 
mantis
will support the creation of junit source code based on an annotated class.

Reply via email to