|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.splunk.modularinput.ModularInputTestCase com.splunk.modularinput.EventTest
public class EventTest
Checks if Event and EventWriter behavior correctly.
Constructor Summary | |
---|---|
EventTest()
|
Method Summary | |
---|---|
void |
testErrorInEventWriter()
An event which cannot write itself onto an output stream (such as because it doesn't have a data field set) should write an error to stderr. |
void |
testEventWithoutEnoughFieldsFails()
An event without a data field should throw an error when asked to write itself onto a stream. |
void |
testLoggingErrorsWithEventWriter()
Check that the log method on EventWriter produces the expected error message on the stderr stream. |
void |
testWriteXmlDocumentIsSane()
Check that EventWriter.writeXmlDocument writes sensible XML to the output stream. |
void |
testWritingEventsOnEventWriter()
Write a pair of events with an EventWriter, and ensure that they are being encoded immediately and correctly onto the output stream. |
void |
testXmlOfEventWithMinimalConfiguration()
Generate XML from an event object with a small number of fields, and see if it matches what we expect. |
void |
testXmlOfEventWithMoreConfiguration()
Generate XML from an event with all its fields set, and see if it matches 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 |
---|
public EventTest()
Method Detail |
---|
public void testEventWithoutEnoughFieldsFails() throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void testXmlOfEventWithMinimalConfiguration() throws javax.xml.stream.XMLStreamException, MalformedDataException, javax.xml.transform.TransformerException, javax.xml.parsers.ParserConfigurationException
javax.xml.stream.XMLStreamException
MalformedDataException
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
public void testXmlOfEventWithMoreConfiguration() throws MalformedDataException, javax.xml.stream.XMLStreamException, javax.xml.transform.TransformerException, javax.xml.parsers.ParserConfigurationException
MalformedDataException
javax.xml.stream.XMLStreamException
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
public void testWritingEventsOnEventWriter() throws javax.xml.stream.XMLStreamException, javax.xml.transform.TransformerException, javax.xml.parsers.ParserConfigurationException, MalformedDataException
javax.xml.stream.XMLStreamException
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
MalformedDataException
public void testErrorInEventWriter() throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void testLoggingErrorsWithEventWriter() throws javax.xml.stream.XMLStreamException, java.io.IOException
javax.xml.stream.XMLStreamException
java.io.IOException
public void testWriteXmlDocumentIsSane() throws javax.xml.stream.XMLStreamException, java.io.IOException, javax.xml.transform.TransformerException, javax.xml.parsers.ParserConfigurationException
javax.xml.stream.XMLStreamException
java.io.IOException
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |