org.gmetrics.report
Class AbstractReportWriterTest

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

public class AbstractReportWriterTest
extends AbstractTestCase
implements groovy.lang.GroovyObject


Field Summary
 
Fields inherited from class groovy.util.GroovyTestCase
log, TEST_SCRIPT_NAME_PREFIX
 
Constructor Summary
AbstractReportWriterTest()
           
 
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()
           
 void testFormatMetricResultValue_FormatterConfiguredForMetric_FormatsValue()
           
 void testFormatMetricResultValue_NoFormatterConfiguredForMetric_ReturnsValueToString()
           
 void testGetFormattedTimestamp()
           
 void testGetResourceBundleString_ReturnsDefaultStringIfKeyNotFound()
           
 void testGetResourceBundleString()
           
 void testGetResourceBundleStringOrNull_ReturnsMatchingEntryFromResourceBundle()
           
 void testGetResourceBundleStringOrNull_ReturnsNullForNoMatchingEntryFromResourceBundle()
           
 void testInitializeResourceBundle_CustomMessagesFileDoesNotExist()
           
 void testInitializeResourceBundle_CustomMessagesFileExists()
           
 void testWriteReport_InitializesFormatters()
           
 void testWriteReport_WritesToDefaultOutputFile_IfOutputFileIsNull()
           
 void testWriteReport_WritesToOutputFile_IfOutputFileIsDefined()
           
 void testWriteReport_WritesToOutputFile_IfWriteToStandardOutIsNotTrue()
           
 void testWriteReport_WritesToStandardOut_AndResetsSystemOut()
           
 void testWriteReport_WritesToStandardOut_IfWriteToStandardOutIsTrue_String()
           
 void testWriteReport_WritesToStandardOut_IfWriteToStandardOutIsTrue()
           
 
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

AbstractReportWriterTest

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

testWriteReport_WritesToDefaultOutputFile_IfOutputFileIsNull

public void testWriteReport_WritesToDefaultOutputFile_IfOutputFileIsNull()

testWriteReport_WritesToOutputFile_IfOutputFileIsDefined

public void testWriteReport_WritesToOutputFile_IfOutputFileIsDefined()

testWriteReport_WritesToStandardOut_IfWriteToStandardOutIsTrue_String

public void testWriteReport_WritesToStandardOut_IfWriteToStandardOutIsTrue_String()

testWriteReport_WritesToStandardOut_IfWriteToStandardOutIsTrue

public void testWriteReport_WritesToStandardOut_IfWriteToStandardOutIsTrue()

testWriteReport_WritesToStandardOut_AndResetsSystemOut

public void testWriteReport_WritesToStandardOut_AndResetsSystemOut()

testWriteReport_WritesToOutputFile_IfWriteToStandardOutIsNotTrue

public void testWriteReport_WritesToOutputFile_IfWriteToStandardOutIsNotTrue()

testWriteReport_InitializesFormatters

public void testWriteReport_InitializesFormatters()

testInitializeResourceBundle_CustomMessagesFileExists

public void testInitializeResourceBundle_CustomMessagesFileExists()

testInitializeResourceBundle_CustomMessagesFileDoesNotExist

public void testInitializeResourceBundle_CustomMessagesFileDoesNotExist()

testGetResourceBundleString

public void testGetResourceBundleString()

testGetResourceBundleString_ReturnsDefaultStringIfKeyNotFound

public void testGetResourceBundleString_ReturnsDefaultStringIfKeyNotFound()

testGetResourceBundleStringOrNull_ReturnsMatchingEntryFromResourceBundle

public void testGetResourceBundleStringOrNull_ReturnsMatchingEntryFromResourceBundle()

testGetResourceBundleStringOrNull_ReturnsNullForNoMatchingEntryFromResourceBundle

public void testGetResourceBundleStringOrNull_ReturnsNullForNoMatchingEntryFromResourceBundle()

testFormatMetricResultValue_NoFormatterConfiguredForMetric_ReturnsValueToString

public void testFormatMetricResultValue_NoFormatterConfiguredForMetric_ReturnsValueToString()

testFormatMetricResultValue_FormatterConfiguredForMetric_FormatsValue

public void testFormatMetricResultValue_FormatterConfiguredForMetric_FormatsValue()

testGetFormattedTimestamp

public void testGetFormattedTimestamp()

setUp

public void setUp()
Overrides:
setUp in class AbstractTestCase


Copyright © 2012. All Rights Reserved.