org.gmetrics.util
Class AstUtilTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
groovy.util.GroovyTestCase
org.gmetrics.test.AbstractTestCase
org.gmetrics.util.AstUtilTest
- All Implemented Interfaces:
- groovy.lang.GroovyObject, junit.framework.Test
public class AstUtilTest
- extends AbstractTestCase
- implements groovy.lang.GroovyObject
Fields inherited from class groovy.util.GroovyTestCase |
log, TEST_SCRIPT_NAME_PREFIX |
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 |
AstUtilTest
public AstUtilTest()
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.