org.gmetrics.result
Class MetricResultBuilderTest

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.result.MetricResultBuilderTest
All Implemented Interfaces:
groovy.lang.GroovyObject, junit.framework.Test

public class MetricResultBuilderTest
extends AbstractTestCase
implements groovy.lang.GroovyObject


Field Summary
 
Fields inherited from class groovy.util.GroovyTestCase
log, TEST_SCRIPT_NAME_PREFIX
 
Constructor Summary
MetricResultBuilderTest()
           
 
Method Summary
 groovy.lang.MetaClass getMetaClass()
           
 java.lang.Object getProperty(java.lang.String property)
           
 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 testAverageValueForSeveralBigDecimalMetricsIsTheAverageOfTheMetricValues()
           
 void testAverageValueForSeveralIntegerMetricsIsTheAverageOfTheMetricValues()
           
 void testConfiguredScaleIsAppliedToAverageValue()
           
 void testCorrectCountForChildResultsWithCountsGreaterThanOne()
           
 void testCorrectCountForSeveralChildResults()
           
 void testCountForNoChildrenIsZero()
           
 void testCreateAggregateMetricResult_ThrowsExceptionForNullChildrenParameter()
           
 void testCreateAggregateMetricResult_ThrowsExceptionForNullMetric()
           
 void testCreateAggregateMetricResult_ThrowsExceptionForNullMetricLevel()
           
 void testDefaultScaleIsAppliedToAverageValue()
           
 void testFunctionValuesForASingleMetricAreAllThatMetricValue()
           
 void testFunctionValuesForChildrenNullChildFunctionValues()
           
 void testFunctionValuesForNoChildrenAreAllZero()
           
 void testGetAt_NoSuchFunctionName_ReturnsNull()
           
 void testGetLineNumberIsSameValuePassedIntoCreateAggregateMetricResult()
           
 void testMaximumValueForSeveralBigDecimalMetrics()
           
 void testMaximumValueForSeveralIntegerMetrics()
           
 void testMinimumValueForSeveralBigDecimalMetrics()
           
 void testMinimumValueForSeveralIntegerMetrics()
           
 void testPredefinedValues_OnlyUsesPredefinedValueThatWasSpecified()
           
 void testPredefinedValues_UsesAllPredefinedValues()
           
 void testTotalValueForSeveralBigDecimalMetricsIsTheSumOfTheMetricValues()
           
 void testTotalValueForSeveralIntegerMetricsIsTheSumOfTheMetricValues()
           
 void testUsesFunctionNamesFromMetric()
           
 
Methods inherited from class org.gmetrics.test.AbstractTestCase
assertBothAreFalseOrElseNeitherIs, assertContainsAll, assertContainsAllInOrder, assertEqualSets, captureLog4JMessages, captureSystemOut, classResultsNode, classResultsNode, containsAll, isNotGroovy15, log, methodResultsNode, packageResultsNode, packageResultsNode, scale, scale, setUp, 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

MetricResultBuilderTest

public MetricResultBuilderTest()
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

testCreateAggregateMetricResult_ThrowsExceptionForNullMetric

public void testCreateAggregateMetricResult_ThrowsExceptionForNullMetric()

testCreateAggregateMetricResult_ThrowsExceptionForNullMetricLevel

public void testCreateAggregateMetricResult_ThrowsExceptionForNullMetricLevel()

testCreateAggregateMetricResult_ThrowsExceptionForNullChildrenParameter

public void testCreateAggregateMetricResult_ThrowsExceptionForNullChildrenParameter()

testGetLineNumberIsSameValuePassedIntoCreateAggregateMetricResult

public void testGetLineNumberIsSameValuePassedIntoCreateAggregateMetricResult()

testFunctionValuesForNoChildrenAreAllZero

public void testFunctionValuesForNoChildrenAreAllZero()

testCountForNoChildrenIsZero

public void testCountForNoChildrenIsZero()

testFunctionValuesForChildrenNullChildFunctionValues

public void testFunctionValuesForChildrenNullChildFunctionValues()

testFunctionValuesForASingleMetricAreAllThatMetricValue

public void testFunctionValuesForASingleMetricAreAllThatMetricValue()

testAverageValueForSeveralIntegerMetricsIsTheAverageOfTheMetricValues

public void testAverageValueForSeveralIntegerMetricsIsTheAverageOfTheMetricValues()

testTotalValueForSeveralIntegerMetricsIsTheSumOfTheMetricValues

public void testTotalValueForSeveralIntegerMetricsIsTheSumOfTheMetricValues()

testMinimumValueForSeveralIntegerMetrics

public void testMinimumValueForSeveralIntegerMetrics()

testMaximumValueForSeveralIntegerMetrics

public void testMaximumValueForSeveralIntegerMetrics()

testTotalValueForSeveralBigDecimalMetricsIsTheSumOfTheMetricValues

public void testTotalValueForSeveralBigDecimalMetricsIsTheSumOfTheMetricValues()

testAverageValueForSeveralBigDecimalMetricsIsTheAverageOfTheMetricValues

public void testAverageValueForSeveralBigDecimalMetricsIsTheAverageOfTheMetricValues()

testMinimumValueForSeveralBigDecimalMetrics

public void testMinimumValueForSeveralBigDecimalMetrics()

testMaximumValueForSeveralBigDecimalMetrics

public void testMaximumValueForSeveralBigDecimalMetrics()

testCorrectCountForSeveralChildResults

public void testCorrectCountForSeveralChildResults()

testCorrectCountForChildResultsWithCountsGreaterThanOne

public void testCorrectCountForChildResultsWithCountsGreaterThanOne()

testPredefinedValues_OnlyUsesPredefinedValueThatWasSpecified

public void testPredefinedValues_OnlyUsesPredefinedValueThatWasSpecified()

testPredefinedValues_UsesAllPredefinedValues

public void testPredefinedValues_UsesAllPredefinedValues()

testDefaultScaleIsAppliedToAverageValue

public void testDefaultScaleIsAppliedToAverageValue()

testGetAt_NoSuchFunctionName_ReturnsNull

public void testGetAt_NoSuchFunctionName_ReturnsNull()

testConfiguredScaleIsAppliedToAverageValue

public void testConfiguredScaleIsAppliedToAverageValue()

testUsesFunctionNamesFromMetric

public void testUsesFunctionNamesFromMetric()


Copyright © 2012. All Rights Reserved.