public class Torture extends org.xml.sax.helpers.DefaultHandler implements ParseExceptionListener, TagNames, TokenValues
Modifier and Type | Field and Description |
---|---|
static String |
ABORT_ON_FAIL |
protected boolean |
abortOnFail |
protected static int |
counter |
protected static boolean |
debug |
static String |
DEBUG |
protected boolean |
debugFlag |
protected String |
encodedMessage |
protected String |
exceptionClassName |
protected String |
exceptionHeader |
protected String |
exceptionMessage |
protected boolean |
failureFlag |
protected String |
failureReason |
static String |
JAIN_TESTLOG |
static String |
OUTPUT_PARSED_STRUCTURE |
protected boolean |
outputParsedStructures |
protected static boolean |
outputResults |
protected static long |
startTime |
protected String |
statusMessage |
protected boolean |
successFlag |
static String |
TEST_JAIN |
protected String |
testDescription |
static String |
TESTLOG |
protected String |
testMessage |
static String |
TRUE |
DESCRIPTION, DIAGNOSTIC, DIAGNOSTIC_MESSAGES, EXCEPTION_CLASS, EXCEPTION_MESSAGE, EXCEPTION_TEXT, EXPECT_EXCEPTION, MESSAGE, OUTPUT_RESULTS, PARSED_OUTPUT, REASON, SIP_HEADER, SIP_URL, STACK_TRACE, STATUS, TEST_OUTPUT, TESTCASE, TORTURE
EQUALS, GREATER_THAN, LESS_THAN, SLASH
Constructor and Description |
---|
Torture() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
doTests() |
protected void |
emitAttribute(String attrName,
String attrval) |
protected void |
emitBeginEndTag(String tagName) |
protected void |
emitBeginTag(String tagName) |
protected void |
emitEndTag() |
protected void |
emitEndTag(String tagName) |
protected void |
emitString(String str) |
protected String |
emitStringAttribute(String attrName,
String attrval) |
protected String |
emitStringBeginTag(String tag) |
protected String |
emitStringCData(String msg) |
protected String |
emitStringCData(String tag,
String msg) |
protected String |
emitStringEndTag() |
protected String |
emitStringEndTag(String tag) |
protected String |
emitStringTag(String tag) |
protected void |
emitTag(String tagName) |
protected void |
emitTaggedCData(String str) |
protected void |
emitTaggedCData(String tag,
String str) |
protected void |
emitTaggedData(String tag,
String data) |
void |
endElement(String namespaceURI,
String local,
String name) |
void |
error(SAXParseException e) |
protected void |
formatFailureDiagnostic(ParseException ex,
String message) |
protected void |
formatFailureDiagnostic(String hdr,
String reason) |
protected void |
formatFailureDiagnostic(test.torture.Torture.ExpectedException ex,
String reason) |
protected void |
formatStatusMessage(String hdr,
String reason) |
protected void |
formatStatusMessage(test.torture.Torture.ExpectedException ex,
String reason) |
void |
handleException(ParseException ex,
SIPMessage sipMessage,
Class headerClass,
String headerText,
String messageText)
This gets called from the parser when a parse error is generated.
|
void |
ignorableWhitespace(char[] buf,
int offset,
int len) |
void |
startElement(String namespaceURI,
String local,
String name,
Attributes attrs) |
endDocument, endPrefixMapping, fatalError, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
protected static boolean debug
protected static long startTime
protected static int counter
protected String testMessage
protected String encodedMessage
protected String testDescription
protected boolean debugFlag
protected boolean abortOnFail
protected String failureReason
protected String statusMessage
protected String exceptionHeader
protected String exceptionMessage
protected String exceptionClassName
protected boolean failureFlag
protected boolean successFlag
protected boolean outputParsedStructures
protected static boolean outputResults
public static final String OUTPUT_PARSED_STRUCTURE
public static final String DEBUG
public static final String TRUE
public static final String TESTLOG
public static final String ABORT_ON_FAIL
public static final String TEST_JAIN
public static final String JAIN_TESTLOG
public void handleException(ParseException ex, SIPMessage sipMessage, Class headerClass, String headerText, String messageText) throws ParseException
ParseExceptionListener
handleException
in interface ParseExceptionListener
ex
- - parse exception being processed.sipMessage
- -- sip message being processed.headerText
- -- header/RL/SL text being parsed.messageText
- -- message where this header was detected.ParseException
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
public void startElement(String namespaceURI, String local, String name, Attributes attrs) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void error(SAXParseException e) throws SAXParseException
error
in interface ErrorHandler
error
in class org.xml.sax.helpers.DefaultHandler
SAXParseException
public void ignorableWhitespace(char[] buf, int offset, int len) throws SAXException
ignorableWhitespace
in interface ContentHandler
ignorableWhitespace
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String namespaceURI, String local, String name) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
protected void emitBeginTag(String tagName)
protected void emitTag(String tagName)
protected void emitBeginEndTag(String tagName)
protected void emitEndTag()
protected void emitEndTag(String tagName)
protected void emitTaggedCData(String str)
protected void emitString(String str)
protected String emitStringEndTag()
protected void formatFailureDiagnostic(ParseException ex, String message)
protected void formatFailureDiagnostic(test.torture.Torture.ExpectedException ex, String reason)
protected void formatStatusMessage(test.torture.Torture.ExpectedException ex, String reason)
Copyright © 2015. All Rights Reserved.