org.gmetrics.util
Class AstUtilTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by groovy.util.GroovyTestCase
              extended by org.gmetrics.test.AbstractTestCase
                  extended by org.gmetrics.util.AstUtilTest
All Implemented Interfaces:
groovy.lang.GroovyObject, junit.framework.Test

public class AstUtilTest
extends AbstractTestCase
implements groovy.lang.GroovyObject


Field Summary
 
Fields inherited from class groovy.util.GroovyTestCase
log, TEST_SCRIPT_NAME_PREFIX
 
Constructor Summary
AstUtilTest()
           
 
Method Summary
 groovy.lang.MetaClass getMetaClass()
           
 java.lang.Object getProperty(java.lang.String property)
           
static java.lang.Object getSOURCE()
           
 java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setProperty(java.lang.String property, java.lang.Object value)
           
 void setUp()
           
 void testGetAnnotation()
           
 void testGetMethodArguments_ConstructorWithinEnum()
           
 void testGetMethodArguments_NamedArguments()
           
 void testGetMethodArguments_NoArgument()
           
 void testGetMethodArguments_SingleArgument()
           
 void testGetVariableExpressions_MultipleDeclarations()
           
 void testGetVariableExpressions_SingleDeclaration()
           
 void testIsBlock_Block()
           
 void testIsBlock_NotABlock()
           
 void testIsClosureField()
           
 void testIsEmptyBlock_EmptyBlock()
           
 void testIsEmptyBlock_NonEmptyBlock()
           
 void testIsEmptyBlock_NotABlock()
           
 void testIsEmptyMethod()
           
 void testIsFromGeneratedSourceCode()
           
 void testIsMethodCall_ExactMatch()
           
 void testIsMethodCall_GStringMethodName()
           
 void testIsMethodCall_NamedArgumentList()
           
 void testIsMethodCall_NotAMethodCall()
           
 void testIsMethodCall_StringLiteralMethodName()
           
 void testIsMethodCall_WrongMethodName()
           
 void testIsMethodCall_WrongMethodObjectName()
           
 void testIsMethodCall_WrongNumberOfArguments()
           
 void testIsMethodNamed_GStringMethodName()
           
 void testIsMethodNamed()
           
 
Methods inherited from class org.gmetrics.test.AbstractTestCase
assertBothAreFalseOrElseNeitherIs, assertContainsAll, assertContainsAllInOrder, assertEqualSets, captureLog4JMessages, captureSystemOut, classResultsNode, classResultsNode, containsAll, isNotGroovy15, log, methodResultsNode, packageResultsNode, packageResultsNode, scale, scale, shouldFailWithMessageContaining
 
Methods inherited from class groovy.util.GroovyTestCase
assertArrayEquals, assertContains, assertContains, assertEquals, assertEquals, assertEquals, assertInspect, assertLength, assertLength, assertLength, assertScript, assertToString, fixEOLs, getMethodName, getName, getTestClassName, notYetImplemented, notYetImplemented, shouldFail, shouldFail, shouldFailWithCause
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AstUtilTest

public AstUtilTest()
Method Detail

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject
Overrides:
getMetaClass in class AbstractTestCase

setMetaClass

public void setMetaClass(groovy.lang.MetaClass mc)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject
Overrides:
setMetaClass in class AbstractTestCase

invokeMethod

public java.lang.Object invokeMethod(java.lang.String method,
                                     java.lang.Object arguments)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject
Overrides:
invokeMethod in class AbstractTestCase

getProperty

public java.lang.Object getProperty(java.lang.String property)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class AbstractTestCase

setProperty

public void setProperty(java.lang.String property,
                        java.lang.Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject
Overrides:
setProperty in class AbstractTestCase

getSOURCE

public static java.lang.Object getSOURCE()

testIsFromGeneratedSourceCode

public void testIsFromGeneratedSourceCode()

testIsEmptyMethod

public void testIsEmptyMethod()

testGetMethodArguments_ConstructorWithinEnum

public void testGetMethodArguments_ConstructorWithinEnum()

testGetMethodArguments_NoArgument

public void testGetMethodArguments_NoArgument()

testGetMethodArguments_SingleArgument

public void testGetMethodArguments_SingleArgument()

testGetMethodArguments_NamedArguments

public void testGetMethodArguments_NamedArguments()

testIsMethodCall_ExactMatch

public void testIsMethodCall_ExactMatch()

testIsMethodCall_WrongMethodName

public void testIsMethodCall_WrongMethodName()

testIsMethodCall_WrongMethodObjectName

public void testIsMethodCall_WrongMethodObjectName()

testIsMethodCall_WrongNumberOfArguments

public void testIsMethodCall_WrongNumberOfArguments()

testIsMethodCall_NamedArgumentList

public void testIsMethodCall_NamedArgumentList()

testIsMethodCall_StringLiteralMethodName

public void testIsMethodCall_StringLiteralMethodName()

testIsMethodCall_GStringMethodName

public void testIsMethodCall_GStringMethodName()

testIsMethodCall_NotAMethodCall

public void testIsMethodCall_NotAMethodCall()

testIsMethodNamed

public void testIsMethodNamed()

testIsMethodNamed_GStringMethodName

public void testIsMethodNamed_GStringMethodName()

testIsBlock_Block

public void testIsBlock_Block()

testIsBlock_NotABlock

public void testIsBlock_NotABlock()

testIsEmptyBlock_NonEmptyBlock

public void testIsEmptyBlock_NonEmptyBlock()

testIsEmptyBlock_EmptyBlock

public void testIsEmptyBlock_EmptyBlock()

testIsEmptyBlock_NotABlock

public void testIsEmptyBlock_NotABlock()

testGetAnnotation

public void testGetAnnotation()

testGetVariableExpressions_SingleDeclaration

public void testGetVariableExpressions_SingleDeclaration()

testGetVariableExpressions_MultipleDeclarations

public void testGetVariableExpressions_MultipleDeclarations()

testIsClosureField

public void testIsClosureField()

setUp

public void setUp()
Overrides:
setUp in class AbstractTestCase


Copyright © 2012. All Rights Reserved.