com.splunk.modularinput
Class InputDefinitionTest

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

public class InputDefinitionTest
extends ModularInputTestCase

Test the parsing of InputDefinition classes from XML.


Constructor Summary
InputDefinitionTest()
           
 
Method Summary
 void testParseMalformedInputDefinition()
          Checks that parsing an InputDefinition from malformed XML produces the expected exception.
 void testParseStreamWithThreeInputs()
          Check whether the InputDefinition parsed from a stream with metadata and three inputs is what we expect.
 void testParseStreamWithZeroInputs()
          Check whether the InputDefinition parsed from a stream with metadata and zero inputs is what we expect.
 
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

InputDefinitionTest

public InputDefinitionTest()
Method Detail

testParseStreamWithZeroInputs

public void testParseStreamWithZeroInputs()
                                   throws java.io.IOException,
                                          org.xml.sax.SAXException,
                                          javax.xml.parsers.ParserConfigurationException,
                                          MalformedDataException
Check whether the InputDefinition parsed from a stream with metadata and zero inputs is what we expect.

Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
MalformedDataException

testParseStreamWithThreeInputs

public void testParseStreamWithThreeInputs()
                                    throws javax.xml.parsers.ParserConfigurationException,
                                           org.xml.sax.SAXException,
                                           MalformedDataException,
                                           java.io.IOException
Check whether the InputDefinition parsed from a stream with metadata and three inputs is what we expect.

Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
MalformedDataException
java.io.IOException

testParseMalformedInputDefinition

public void testParseMalformedInputDefinition()
                                       throws javax.xml.parsers.ParserConfigurationException,
                                              org.xml.sax.SAXException,
                                              java.io.IOException
Checks that parsing an InputDefinition from malformed XML produces the expected exception.

Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException