org.gmetrics.resultsnode
Class PackageResultsNodeTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
groovy.util.GroovyTestCase
org.gmetrics.test.AbstractTestCase
org.gmetrics.resultsnode.PackageResultsNodeTest
- All Implemented Interfaces:
- groovy.lang.GroovyObject, junit.framework.Test
public class PackageResultsNodeTest
- 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 |
PackageResultsNodeTest
public PackageResultsNodeTest()
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
testImplementsResultsNode
public void testImplementsResultsNode()
testNameAssignedFromConstructor
public void testNameAssignedFromConstructor()
testNameAndPathAssignedFromConstructor
public void testNameAndPathAssignedFromConstructor()
testThatMetricLevelIsPackageLevel
public void testThatMetricLevelIsPackageLevel()
test_InitialMetricValuesIsEmpty
public void test_InitialMetricValuesIsEmpty()
test_InitialChildrenIsEmpty
public void test_InitialChildrenIsEmpty()
test_addChildIfNotEmpty_NullNameThrowsException
public void test_addChildIfNotEmpty_NullNameThrowsException()
test_addChildIfNotEmpty_NullChildThrowsException
public void test_addChildIfNotEmpty_NullChildThrowsException()
test_AddingASingleChildWithNoResultMetrics
public void test_AddingASingleChildWithNoResultMetrics()
test_addChildIfNotEmpty_AddsToChildren
public void test_addChildIfNotEmpty_AddsToChildren()
test_addChild_NullNameThrowsException
public void test_addChild_NullNameThrowsException()
test_addChild_NullChildThrowsException
public void test_addChild_NullChildThrowsException()
test_addChild_AddsToChildren
public void test_addChild_AddsToChildren()
test_applyMetric_PreventsAddingAnyMoreChildren
public void test_applyMetric_PreventsAddingAnyMoreChildren()
test_applyMetric_AddsToMetricResults
public void test_applyMetric_AddsToMetricResults()
test_applyMetric_AddsPackageResultsForPackageName
public void test_applyMetric_AddsPackageResultsForPackageName()
test_applyMetric_AddsNothingIfMetricReturnsNullForThePackage
public void test_applyMetric_AddsNothingIfMetricReturnsNullForThePackage()
test_applyMetric_AggregatesResultsAcrossChildrenOfSameMetricType
public void test_applyMetric_AggregatesResultsAcrossChildrenOfSameMetricType()
test_getMetricResult_NullMetricThrowsException
public void test_getMetricResult_NullMetricThrowsException()
test_getMetricResult_ReturnsCorrectMetricResult
public void test_getMetricResult_ReturnsCorrectMetricResult()
test_getMetricResult_ReturnsNullIfNoMatchingMetricResultIsFound
public void test_getMetricResult_ReturnsNullIfNoMatchingMetricResultIsFound()
testContainsClassResults_ReturnsFalseIfHasNoChildren
public void testContainsClassResults_ReturnsFalseIfHasNoChildren()
testContainsClassResults_ReturnsFalseIfContainsOnlyChildPackageResults
public void testContainsClassResults_ReturnsFalseIfContainsOnlyChildPackageResults()
testContainsClassResults_ReturnsTrueIfChildContainsClassResults
public void testContainsClassResults_ReturnsTrueIfChildContainsClassResults()
setUp
public void setUp()
- Overrides:
setUp
in class AbstractTestCase
Copyright © 2012. All Rights Reserved.