org.gmetrics.metricset
Class MetricSetBuilderTest

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

public class MetricSetBuilderTest
extends AbstractTestCase
implements groovy.lang.GroovyObject


Field Summary
 
Fields inherited from class groovy.util.GroovyTestCase
log, TEST_SCRIPT_NAME_PREFIX
 
Constructor Summary
MetricSetBuilderTest()
           
 
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 setUp()
           
protected  void tearDown()
           
 void testDescription()
           
 void testMetric_Class_Closure_ClassDoesNotImplementMetricInterface()
           
 void testMetric_Class_Closure_NullRuleClass()
           
 void testMetric_Class_Closure()
           
 void testMetric_Class_Map()
           
 void testMetric_Class_NoClosure_ClassDoesNotImplementRuleInterface()
           
 void testMetric_Class_NoClosure_NullMetricClass()
           
 void testMetric_Class_NoClosure()
           
 void testMetric_MetricName_EmptyParentheses()
           
 void testMetric_MetricName_NoParenthesesOrClosure()
           
 void testMetric_MetricName_NoParenthesesWithClosure()
           
 void testMetric_MetricName_NoSuchMetricName()
           
 void testMetric_MetricName_ParenthesesWithMap()
           
 void testMetric_NestedMetricDefinition_AssignNestedMetricWithinMap_KnownLimitation()
           
 void testMetric_NestedMetricDefinitionUsingMetric_NotIncludedInMetricSet()
           
 void testMetric_NestedMetricDefinitionUsingMetricNameWithClosure_NotIncludedInMetricSet()
           
 void testMetric_NestedMetricDefinitionUsingMetricNameWithMap_IsIncludedInMetricSet()
           
 void testMetric_NestedMetricDefinitionUsingMetricWithClosure_NotIncludedInMetricSet()
           
 void testMetric_NestedMetricDefinitionUsingMetricWithMap_NotIncludedInMetricSet()
           
 void testMetricset_GroovyFile_ConfigureMetricUsingClosure_MetricNotFound()
           
 void testMetricset_GroovyFile_ConfigureMetricUsingClosure()
           
 void testMetricset_GroovyFile_ConfigureMetricUsingMap_MetricNotFound()
           
 void testMetricset_GroovyFile_ConfigureMetricUsingMap()
           
 void testMetricset_GroovyFile_MetricSetFileDoesNotExist()
           
 void testMetricset_GroovyFile_NestedMetricDefinitionNotIncludedInMetricSet()
           
 void testMetricset_GroovyFile_NoClosure()
           
 void testMetricset_NullFilename()
           
 
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, 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

MetricSetBuilderTest

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

testMetricset_NullFilename

public void testMetricset_NullFilename()

testMetricset_GroovyFile_MetricSetFileDoesNotExist

public void testMetricset_GroovyFile_MetricSetFileDoesNotExist()

testMetricset_GroovyFile_ConfigureMetricUsingMap

public void testMetricset_GroovyFile_ConfigureMetricUsingMap()

testMetricset_GroovyFile_NestedMetricDefinitionNotIncludedInMetricSet

public void testMetricset_GroovyFile_NestedMetricDefinitionNotIncludedInMetricSet()

testMetricset_GroovyFile_ConfigureMetricUsingMap_MetricNotFound

public void testMetricset_GroovyFile_ConfigureMetricUsingMap_MetricNotFound()

testMetricset_GroovyFile_ConfigureMetricUsingClosure

public void testMetricset_GroovyFile_ConfigureMetricUsingClosure()

testMetricset_GroovyFile_ConfigureMetricUsingClosure_MetricNotFound

public void testMetricset_GroovyFile_ConfigureMetricUsingClosure_MetricNotFound()

testMetricset_GroovyFile_NoClosure

public void testMetricset_GroovyFile_NoClosure()

testMetric_Class_Map

public void testMetric_Class_Map()

testMetric_Class_NoClosure

public void testMetric_Class_NoClosure()

testMetric_Class_NoClosure_NullMetricClass

public void testMetric_Class_NoClosure_NullMetricClass()

testMetric_Class_NoClosure_ClassDoesNotImplementRuleInterface

public void testMetric_Class_NoClosure_ClassDoesNotImplementRuleInterface()

testMetric_Class_Closure

public void testMetric_Class_Closure()

testMetric_Class_Closure_NullRuleClass

public void testMetric_Class_Closure_NullRuleClass()

testMetric_Class_Closure_ClassDoesNotImplementMetricInterface

public void testMetric_Class_Closure_ClassDoesNotImplementMetricInterface()

testMetric_MetricName_EmptyParentheses

public void testMetric_MetricName_EmptyParentheses()

testMetric_MetricName_ParenthesesWithMap

public void testMetric_MetricName_ParenthesesWithMap()

testMetric_MetricName_NoParenthesesWithClosure

public void testMetric_MetricName_NoParenthesesWithClosure()

testMetric_NestedMetricDefinitionUsingMetric_NotIncludedInMetricSet

public void testMetric_NestedMetricDefinitionUsingMetric_NotIncludedInMetricSet()

testMetric_NestedMetricDefinitionUsingMetricWithMap_NotIncludedInMetricSet

public void testMetric_NestedMetricDefinitionUsingMetricWithMap_NotIncludedInMetricSet()

testMetric_NestedMetricDefinitionUsingMetricWithClosure_NotIncludedInMetricSet

public void testMetric_NestedMetricDefinitionUsingMetricWithClosure_NotIncludedInMetricSet()

testMetric_NestedMetricDefinition_AssignNestedMetricWithinMap_KnownLimitation

public void testMetric_NestedMetricDefinition_AssignNestedMetricWithinMap_KnownLimitation()

testMetric_NestedMetricDefinitionUsingMetricNameWithClosure_NotIncludedInMetricSet

public void testMetric_NestedMetricDefinitionUsingMetricNameWithClosure_NotIncludedInMetricSet()

testMetric_NestedMetricDefinitionUsingMetricNameWithMap_IsIncludedInMetricSet

public void testMetric_NestedMetricDefinitionUsingMetricNameWithMap_IsIncludedInMetricSet()

testMetric_MetricName_NoParenthesesOrClosure

public void testMetric_MetricName_NoParenthesesOrClosure()

testMetric_MetricName_NoSuchMetricName

public void testMetric_MetricName_NoSuchMetricName()

testDescription

public void testDescription()

setUp

public void setUp()
Overrides:
setUp in class AbstractTestCase

tearDown

protected void tearDown()
Overrides:
tearDown in class junit.framework.TestCase


Copyright © 2012. All Rights Reserved.