com.splunk.modularinput
Class ScriptTest

java.lang.Object
  extended by com.splunk.modularinput.ModularInputTestCase
      extended by com.splunk.modularinput.ScriptTest

public class ScriptTest
extends ModularInputTestCase

Test the behavior of subclasses of the Script class. This is to check whether modular inputs really do what they're supposed to.


Constructor Summary
ScriptTest()
           
 
Method Summary
 void setUp()
           
 void testErrorOnScriptWithNullScheme()
           
 void testFailedValidation()
           
 void testSchemeProperlyGeneratedByScript()
           
 void testSuccessfulValidation()
           
 void testWriteEvents()
           
 
Methods inherited from class com.splunk.modularinput.ModularInputTestCase
assertXmlEqual, assertXmlEqual, nodeToXml, removeBlankTextNodes, resourceToXmlDocument, stringToXmlDocument, testCoercionMethods, testNormalizeBoolean
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptTest

public ScriptTest()
Method Detail

setUp

public void setUp()
           throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

testErrorOnScriptWithNullScheme

public void testErrorOnScriptWithNullScheme()
                                     throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

testSchemeProperlyGeneratedByScript

public void testSchemeProperlyGeneratedByScript()
                                         throws javax.xml.transform.TransformerException,
                                                javax.xml.parsers.ParserConfigurationException
Throws:
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException

testSuccessfulValidation

public void testSuccessfulValidation()
                              throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

testFailedValidation

public void testFailedValidation()
                          throws javax.xml.transform.TransformerException,
                                 javax.xml.parsers.ParserConfigurationException
Throws:
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException

testWriteEvents

public void testWriteEvents()
                     throws javax.xml.transform.TransformerException,
                            javax.xml.parsers.ParserConfigurationException
Throws:
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException