Groovy Documentation

org.codenarc.rule.junit
Class JUnitUtil

java.lang.Object
  org.codenarc.rule.junit.JUnitUtil

class JUnitUtil

Utility methods for JUnit rule classes. This class is not intended for general use.

author:
Chris Mair
version:
$Revision: 109 $ - $Date: 2009-03-30 21:33:32 -0400 (Mon, 30 Mar 2009) $


Constructor Summary
private JUnitUtil()

Private constructor.

 
Method Summary
protected static boolean isAssertConstantValueCall(MethodCallExpression methodCall, String methodName, Object value)

Return true if the MethodCallExpression represents a JUnit assert method call with the specified method name and constant argument value.

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

JUnitUtil

private JUnitUtil()
Private constructor. All members are static.


 
Method Detail

isAssertConstantValueCall

protected static boolean isAssertConstantValueCall(MethodCallExpression methodCall, String methodName, Object value)
Return true if the MethodCallExpression represents a JUnit assert method call with the specified method name and constant argument value. This handles either single-argument assert calls or 2-argument assert methods where the first parameter is the assertion message.
param:
methodCall - the MethodCallExpression of the method call
param:
methodName - the name of the method
param:
value - the argument value


 

Groovy Documentation