UTJML

edu.utep.cs.utjml.rat
Class RatAdapter

java.lang.Object
  extended by edu.utep.cs.utjml.rat.RatAdapter
All Implemented Interfaces:
RatListener

public abstract class RatAdapter
extends Object
implements RatListener

An abstract adapter class for receiving test case generation events, aka RAT events. The methods in this class are empty. This class exists as convenience for creating listener objects.

Extend this class to create a RAT event listener and override only the methods for the events of interest.

Create a listener object using your class and then register it with the Main.addRatListener(edu.utep.cs.utjml.rat.RatListener) method. The listener object will be notified with RAT events.

Version:
$Revision: 1.2 $
Author:
Yoonsik Cheon

Constructor Summary
RatAdapter()
           
 
Method Summary
 void coverage(int noexprs, int attempt, int mncount, int nocases)
          Invoked to send a summary of test coverage information for the current class.
 void endClass()
          Invoked when the processing of the current class is completed.
 void endMethod()
          Invoked when the processing of the current method is completed.
 void startClass(String name)
          Invoked when a new class becomes processed to generate test cases.
 void startMethod(String name)
          Invoked when a new method becomes processed to generate test cases.
 void testcase(String coverage, boolean added, TestCase tc)
          Invoked when a new test case is generated for the current method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RatAdapter

public RatAdapter()
Method Detail

startClass

public void startClass(String name)
Invoked when a new class becomes processed to generate test cases.

Specified by:
startClass in interface RatListener

endClass

public void endClass()
Invoked when the processing of the current class is completed.

Specified by:
endClass in interface RatListener

startMethod

public void startMethod(String name)
Invoked when a new method becomes processed to generate test cases.

Specified by:
startMethod in interface RatListener

endMethod

public void endMethod()
Invoked when the processing of the current method is completed.

Specified by:
endMethod in interface RatListener

testcase

public void testcase(String coverage,
                     boolean added,
                     TestCase tc)
Invoked when a new test case is generated for the current method.

Specified by:
testcase in interface RatListener

coverage

public void coverage(int noexprs,
                     int attempt,
                     int mncount,
                     int nocases)
Invoked to send a summary of test coverage information for the current class. This method is invoked just before the invokcation of the RatListener.endClass() method.

Specified by:
coverage in interface RatListener

UTJML

UTJML is Copyright (C) 2004-2006 by University of Texas at El Paso and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the JML project.