com.splunk.modularinput
Class InputDefinitionTest
java.lang.Object
com.splunk.modularinput.ModularInputTestCase
com.splunk.modularinput.InputDefinitionTest
public class InputDefinitionTest
- extends ModularInputTestCase
Test the parsing of InputDefinition classes from XML.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputDefinitionTest
public InputDefinitionTest()
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