com.google.code.jetm.maven
Class TimingReportMojoITest

java.lang.Object
  extended by com.google.code.jetm.maven.TimingReportMojoITest

public class TimingReportMojoITest
extends Object

Integration tests for the timing report mojo.

Author:
jrh3k5

Field Summary
 org.junit.rules.TestName testName
          A Rule used to retrieve the test name.
 
Constructor Summary
TimingReportMojoITest()
           
 
Method Summary
 void setUp()
          Create and initialize a BuildTool object to invoke Maven.
static void setUpBeforeClass()
          Set the $maven.home value in the system properties for the BuildTool object.
 void tearDown()
          Clean up resources used by the (possibly) instantiated BuildTool object.
static void tearDownAfterClass()
          Restore the system properties to their original values.
 void testDemoProject()
          Test the creation of a report for a demo project.
 void testEmptyReport()
          Test the creation of an empty report.
 void testMavenSitePluginCompatibility()
          Versions of maven-site-plugin past 2.0.x bring in a newer version of doxia which made for stricter requirements in the usage of the doxia API.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testName

public org.junit.rules.TestName testName
A Rule used to retrieve the test name.

Constructor Detail

TimingReportMojoITest

public TimingReportMojoITest()
Method Detail

setUpBeforeClass

public static void setUpBeforeClass()
                             throws Exception
Set the $maven.home value in the system properties for the BuildTool object.

Throws:
Exception - If any errors occur during the setup.

setUp

public void setUp()
           throws Exception
Create and initialize a BuildTool object to invoke Maven.

Throws:
Exception - If any errors occur during the setup.

tearDown

public void tearDown()
              throws Exception
Clean up resources used by the (possibly) instantiated BuildTool object.

Throws:
Exception - If any errors occur during the teardown.

tearDownAfterClass

public static void tearDownAfterClass()
                               throws Exception
Restore the system properties to their original values.

Throws:
Exception - If any errors occur during the teardown.

testEmptyReport

public void testEmptyReport()
                     throws Exception
Test the creation of an empty report.

Throws:
Exception - If any errors occur during the test run.

testDemoProject

public void testDemoProject()
                     throws Exception
Test the creation of a report for a demo project.

Throws:
Exception - If any errors occur during the test run.

testMavenSitePluginCompatibility

public void testMavenSitePluginCompatibility()
                                      throws Exception
Versions of maven-site-plugin past 2.0.x bring in a newer version of doxia which made for stricter requirements in the usage of the doxia API. This manifested in the <th /> tags being incorrectly generated and placed outside of the <table /> tag.

Throws:
Exception - If any errors occur during the test run.


Copyright © 2011. All Rights Reserved.