org.gmetrics.report
Class BasicHtmlReportWriterTest

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.report.AbstractReportWriterTestCase
                      extended by org.gmetrics.report.BasicHtmlReportWriterTest
All Implemented Interfaces:
groovy.lang.GroovyObject, junit.framework.Test

public class BasicHtmlReportWriterTest
extends AbstractReportWriterTestCase
implements groovy.lang.GroovyObject


Field Summary
 
Fields inherited from class org.gmetrics.report.AbstractReportWriterTestCase
analysisContext, metric1, metric2, metric3, metricSet1, metricSet2, metricSet3, reportWriter, SRC_DIR1, SRC_DIR2, VERSION, VERSION_FILE, writer
 
Fields inherited from class groovy.util.GroovyTestCase
log, TEST_SCRIPT_NAME_PREFIX
 
Constructor Summary
BasicHtmlReportWriterTest()
           
 
Method Summary
protected  org.gmetrics.report.ReportWriter createReportWriter()
           
 groovy.lang.MetaClass getMetaClass()
           
 java.lang.Object getProperty(java.lang.String property)
           
static java.lang.Object getReportFilename()
           
 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)
           
static void setReportFilename(java.lang.Object value)
           
 void setUp()
           
 void testThatDefaultOutputFile_IsGMetricsReportHtml()
           
 void testWriteReport_ChildPackageResultsNodesWithTwoMetrics()
           
 void testWriteReport_DoNotShowResultsForLevelBelowMetricBaseLevel()
           
 void testWriteReport_FilterByLevelAndFunction()
           
 void testWriteReport_FormatsValuesUsingConfiguredFormatter()
           
 void testWriteReport_IncludeOnlyFunctionsConfiguredForMetric()
           
 void testWriteReport_MissingMetricResultsForMetric()
           
 void testWriteReport_NestedChildPackageResultsNodes()
           
 void testWriteReport_SingleResultsNode_TwoMetrics_OneMetricDisabled()
           
 void testWriteReport_SingleResultsNodeWithSingleMetric()
           
 void testWriteReport_SingleResultsNodeWithThreeMetrics_ButFilterOutOneOfThem()
           
 void testWriteReport_SingleResultsNodeWithTwoMetrics()
           
 
Methods inherited from class org.gmetrics.report.AbstractReportWriterTestCase
assertReportContents, assertReportContents, assertReportContents, assertReportContents, assertReportDoesNotContain, getVersion, metric1Result, metric1Result, metric1Result, metric2Result, metric3Result, metricDescription, testImplementsReportWriter, testWriteReport_NullAnalysisContext_ThrowsException, testWriteReport_NullMetricSet_ThrowsException, testWriteReport_NullResultsNode_ThrowsException, testWriteReport_NullWriterThrowsException, writeOutToFile, writeReport, writeReport
 
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

BasicHtmlReportWriterTest

public BasicHtmlReportWriterTest()
Method Detail

getMetaClass

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

setMetaClass

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

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 AbstractReportWriterTestCase

getProperty

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

setProperty

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

getReportFilename

public static java.lang.Object getReportFilename()

setReportFilename

public static void setReportFilename(java.lang.Object value)

testThatDefaultOutputFile_IsGMetricsReportHtml

public void testThatDefaultOutputFile_IsGMetricsReportHtml()

testWriteReport_SingleResultsNodeWithSingleMetric

public void testWriteReport_SingleResultsNodeWithSingleMetric()

testWriteReport_SingleResultsNodeWithTwoMetrics

public void testWriteReport_SingleResultsNodeWithTwoMetrics()

testWriteReport_SingleResultsNodeWithThreeMetrics_ButFilterOutOneOfThem

public void testWriteReport_SingleResultsNodeWithThreeMetrics_ButFilterOutOneOfThem()

testWriteReport_SingleResultsNode_TwoMetrics_OneMetricDisabled

public void testWriteReport_SingleResultsNode_TwoMetrics_OneMetricDisabled()

testWriteReport_ChildPackageResultsNodesWithTwoMetrics

public void testWriteReport_ChildPackageResultsNodesWithTwoMetrics()

testWriteReport_IncludeOnlyFunctionsConfiguredForMetric

public void testWriteReport_IncludeOnlyFunctionsConfiguredForMetric()

testWriteReport_NestedChildPackageResultsNodes

public void testWriteReport_NestedChildPackageResultsNodes()

testWriteReport_FilterByLevelAndFunction

public void testWriteReport_FilterByLevelAndFunction()

testWriteReport_MissingMetricResultsForMetric

public void testWriteReport_MissingMetricResultsForMetric()

testWriteReport_DoNotShowResultsForLevelBelowMetricBaseLevel

public void testWriteReport_DoNotShowResultsForLevelBelowMetricBaseLevel()

testWriteReport_FormatsValuesUsingConfiguredFormatter

public void testWriteReport_FormatsValuesUsingConfiguredFormatter()

setUp

public void setUp()
Overrides:
setUp in class AbstractReportWriterTestCase

createReportWriter

protected org.gmetrics.report.ReportWriter createReportWriter()
Specified by:
createReportWriter in class AbstractReportWriterTestCase


Copyright © 2012. All Rights Reserved.