edu.sdsc.inca.depot.commands
Class InsertTest

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.commands.InsertTest
All Implemented Interfaces:
junit.framework.Test

public class InsertTest
extends PersistentTest

User: cmills Date: Mar 24, 2005 Time: 3:25:08 PM For now this class is just required to be able to have the following conversation REPORT SP bogus.name CRLF STDOUT SP {xml data} CRLF SYSUSAGE SP ignored CRLF

This implies that the depot will be able to injest a report that has no errors.


Nested Class Summary
static class InsertTest.ModifyingFilter
           
static class InsertTest.SuppressingFilter
           
static class InsertTest.TestReportFilter
           
 
Field Summary
static java.lang.String CRLF
           
 
Fields inherited from class edu.sdsc.inca.depot.persistent.PersistentTest
logger
 
Constructor Summary
InsertTest()
           
 
Method Summary
 void testDuplicateInsert()
           
 void testEquivalentConfigs()
          Tests that Insert picks up CRs from equivalent series configs.
 void testInvalidXml()
          Tests a malformed report.
 void testLongLog()
          Tests an excessive report log section.
 void testNoArgs()
          Tests a series w/no arguments.
 void testOutOfOrder()
          Tests what happens when reports arrive out-of-order.
 void testReportFilter()
           
 void testWithClassNotifier()
          Tests backward compatibility for notifiers that specify a Java class.
 void testWithComparitor()
          Tests reports for a SeriesConfig that includes a comparitor.
 void testWithLogNotifier()
          Tests reports for a SeriesConfig that includes a log notifier.
 void testWithScriptNotifier()
          Tests reports for a SeriesConfig that includes a script notifier.
 
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
 

Field Detail

CRLF

public static final java.lang.String CRLF
See Also:
Constant Field Values
Constructor Detail

InsertTest

public InsertTest()
Method Detail

testDuplicateInsert

public void testDuplicateInsert()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testWithComparitor

public void testWithComparitor()
                        throws java.lang.Exception
Tests reports for a SeriesConfig that includes a comparitor.

Throws:
java.lang.Exception

testWithLogNotifier

public void testWithLogNotifier()
                         throws java.lang.Exception
Tests reports for a SeriesConfig that includes a log notifier.

Throws:
java.lang.Exception

testWithClassNotifier

public void testWithClassNotifier()
                           throws java.lang.Exception
Tests backward compatibility for notifiers that specify a Java class.

Throws:
java.lang.Exception

testEquivalentConfigs

public void testEquivalentConfigs()
                           throws java.lang.Exception
Tests that Insert picks up CRs from equivalent series configs.

Throws:
java.lang.Exception

testWithScriptNotifier

public void testWithScriptNotifier()
                            throws java.lang.Exception
Tests reports for a SeriesConfig that includes a script notifier.

Throws:
java.lang.Exception

testInvalidXml

public void testInvalidXml()
                    throws java.lang.Exception
Tests a malformed report.

Throws:
java.lang.Exception

testNoArgs

public void testNoArgs()
                throws java.lang.Exception
Tests a series w/no arguments.

Throws:
java.lang.Exception

testLongLog

public void testLongLog()
                 throws java.lang.Exception
Tests an excessive report log section.

Throws:
java.lang.Exception

testReportFilter

public void testReportFilter()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testOutOfOrder

public void testOutOfOrder()
                    throws java.lang.Exception
Tests what happens when reports arrive out-of-order.

Throws:
java.lang.Exception