JET

edu.utep.cs.et.rat.gen
Class AllTestSuite.TestingContext

java.lang.Object
  extended by edu.utep.cs.et.rat.gen.AllTestSuite.TestingContext
All Implemented Interfaces:
Context
Enclosing class:
AllTestSuite

private static class AllTestSuite.TestingContext
extends Object
implements Context


Field Summary
private  Class clazz
           
private  Member method
           
 
Constructor Summary
AllTestSuite.TestingContext(Class clazz, Member method)
           
 
Method Summary
 Class getClazz()
          Returns the class under test.
 PrintWriter getErrWriter()
          Returns the print writer that accepts error messages.
 Map<String,Set<String>> getImplClasses()
          Returns the concrete implemenation classes of interfaces and abstract classes.
 int getMaxHeight()
          Returns the maximum height of test case objects.
 Member getMethod()
          Returns the method or constructor under test.
 Iterable<? extends MethodWrapper> getMethods()
          Returns all the methods of the class under test.
 int getNumOfAttempts()
          Returns the number of test attempts.
 int getNumOfIncAttempts()
          Returns the maximum number of attempts to be tried when an incremental construction of an object fails.
 int getObjectPoolSize()
          Returns the size of object pool.
 Set<String> getWarnedInterfaces()
          Returns the set of interface names that are already warned about no known implementation classes.
 boolean isObjectPooling()
          Returns true if object pooling should be enabled.
 boolean isRedundancyChecked()
          Returns true if the redundancy of generated test cases has to be checked.
 boolean isStopRequested()
          Returns true if testing should terminate immediately.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clazz

private Class clazz

method

private Member method
Constructor Detail

AllTestSuite.TestingContext

public AllTestSuite.TestingContext(Class clazz,
                                   Member method)
Method Detail

getClazz

public Class getClazz()
Description copied from interface: Context
Returns the class under test.

Specified by:
getClazz in interface Context

getMethod

public Member getMethod()
Description copied from interface: Context
Returns the method or constructor under test.

Specified by:
getMethod in interface Context

getMethods

public Iterable<? extends MethodWrapper> getMethods()
Description copied from interface: Context
Returns all the methods of the class under test. If the return value is null, it means that this informatin is not provided by the caller.

Specified by:
getMethods in interface Context

getNumOfAttempts

public int getNumOfAttempts()
Description copied from interface: Context
Returns the number of test attempts.

Specified by:
getNumOfAttempts in interface Context

getMaxHeight

public int getMaxHeight()
Description copied from interface: Context
Returns the maximum height of test case objects.

Specified by:
getMaxHeight in interface Context

getNumOfIncAttempts

public int getNumOfIncAttempts()
Description copied from interface: Context
Returns the maximum number of attempts to be tried when an incremental construction of an object fails.

Specified by:
getNumOfIncAttempts in interface Context

isObjectPooling

public boolean isObjectPooling()
Description copied from interface: Context
Returns true if object pooling should be enabled.

Specified by:
isObjectPooling in interface Context

getObjectPoolSize

public int getObjectPoolSize()
Description copied from interface: Context
Returns the size of object pool.

Specified by:
getObjectPoolSize in interface Context

getImplClasses

public Map<String,Set<String>> getImplClasses()
Description copied from interface: Context
Returns the concrete implemenation classes of interfaces and abstract classes. The returned object is a map from interface names to lists of (concrete) classes.

Specified by:
getImplClasses in interface Context

getWarnedInterfaces

public Set<String> getWarnedInterfaces()
Description copied from interface: Context
Returns the set of interface names that are already warned about no known implementation classes.

Specified by:
getWarnedInterfaces in interface Context

getErrWriter

public PrintWriter getErrWriter()
Description copied from interface: Context
Returns the print writer that accepts error messages.

Specified by:
getErrWriter in interface Context

isRedundancyChecked

public boolean isRedundancyChecked()
Description copied from interface: Context
Returns true if the redundancy of generated test cases has to be checked.

Specified by:
isRedundancyChecked in interface Context

isStopRequested

public boolean isStopRequested()
Description copied from interface: Context
Returns true if testing should terminate immediately.

Specified by:
isStopRequested in interface Context

JET

JET is Copyright (C) 2005-2007 by The 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.