edu.sdsc.inca.depot.persistent
Class ReportTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.sdsc.inca.depot.persistent.PersistentTest
              extended by edu.sdsc.inca.depot.persistent.ReportTest
All Implemented Interfaces:
junit.framework.Test

public class ReportTest
extends PersistentTest

Tests basic Report functionality.


Field Summary
 
Fields inherited from class edu.sdsc.inca.depot.persistent.PersistentTest
logger
 
Constructor Summary
ReportTest()
           
 
Method Summary
 Report createReport(java.lang.String exec, java.lang.String stderr)
          Create the Report object with all of the raw known info.
 Report saveReportAndSeries(Report r)
           
 void testConstructor()
          Basic test of the constructor.
 void testPartitioning()
          Test partitioning of long bodies.
 void testPersistReport()
          basic test of persisting a report.
 void testXMLStuff()
           
 
Methods inherited from class edu.sdsc.inca.depot.persistent.PersistentTest
setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, 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, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReportTest

public ReportTest()
Method Detail

createReport

public Report createReport(java.lang.String exec,
                           java.lang.String stderr)
                    throws org.apache.xmlbeans.XmlException
Create the Report object with all of the raw known info.

Parameters:
exec - the reporter exec string
stderr - the reporter stderr output
Returns:
a report object incorporating the parameters
Throws:
org.apache.xmlbeans.XmlException

saveReportAndSeries

public Report saveReportAndSeries(Report r)
                           throws PersistenceException
Throws:
PersistenceException

testConstructor

public void testConstructor()
Basic test of the constructor.


testPartitioning

public void testPartitioning()
Test partitioning of long bodies.


testXMLStuff

public void testXMLStuff()

testPersistReport

public void testPersistReport()
                       throws java.lang.Exception
basic test of persisting a report.

Throws:
java.lang.Exception