fr.inria.peerunit.base
Class TestCaseWrapper

java.lang.Object
  extended by fr.inria.peerunit.base.TestCaseWrapper

public class TestCaseWrapper
extends java.lang.Object

Author:
sunye

Constructor Summary
TestCaseWrapper(TesterImpl t)
           
 
Method Summary
 java.lang.reflect.Method getMethod(MethodDescription md)
          Get the method following methodDescription
 java.util.Map<MethodDescription,java.lang.reflect.Method> getMethods()
           
 java.lang.Object getTestcase()
           
 void invoke(MethodDescription md)
          Execute the given method description
 boolean isLastMethod()
          Verifies if no more methods remain.
 java.util.List<MethodDescription> register(java.lang.Class<?> klass)
          Parse the test case to extract the methods to be executed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestCaseWrapper

public TestCaseWrapper(TesterImpl t)
Method Detail

getMethod

public java.lang.reflect.Method getMethod(MethodDescription md)
Get the method following methodDescription

Parameters:
md - Method Description
Returns:
the method

invoke

public void invoke(MethodDescription md)
            throws java.lang.Throwable
Execute the given method description

Parameters:
md - : method description to execute
Throws:
java.lang.Throwable - if any exception is thrown

isLastMethod

public boolean isLastMethod()
Verifies if no more methods remain.

Returns:
true if the method is the last one to be executed

register

public java.util.List<MethodDescription> register(java.lang.Class<?> klass)
Parse the test case to extract the methods to be executed

Parameters:
class -
Returns:
List of methods to be executed

getTestcase

public java.lang.Object getTestcase()

getMethods

public java.util.Map<MethodDescription,java.lang.reflect.Method> getMethods()


Copyright © 2010. All Rights Reserved.