|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.flexunit.ant.FlexUnitSocketThread
public class FlexUnitSocketThread
Managing class for the FlexUnitSocketServer and report aggregation.
Field Summary | |
---|---|
private static java.lang.String |
END_OF_FAILURE
|
private static java.lang.String |
END_OF_IGNORE
|
private static java.lang.String |
END_OF_SUCCESS
|
private java.io.File |
reportDir
|
private java.util.Map<java.lang.String,Report> |
reports
|
private FlexUnitSocketServer |
server
|
private static java.lang.String |
SUITE_ATTRIBUTE
|
Constructor Summary | |
---|---|
FlexUnitSocketThread(FlexUnitSocketServer server,
java.io.File reportDir,
java.util.Map<java.lang.String,Report> reports)
|
Method Summary | |
---|---|
java.lang.Object |
call()
When excuted, the thread will start the socket server and wait for inbound data and delegate reporting |
private void |
parseInboundMessages()
Used to iterate and interpret byte sent over the socket. |
private org.dom4j.Document |
parseReport(java.lang.String report)
Parse the parameter String and returns it as a document |
private void |
processTestReport(java.lang.String xml)
Process the test report. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String END_OF_SUCCESS
private static final java.lang.String END_OF_FAILURE
private static final java.lang.String END_OF_IGNORE
private static final java.lang.String SUITE_ATTRIBUTE
private java.io.File reportDir
private FlexUnitSocketServer server
private java.util.Map<java.lang.String,Report> reports
Constructor Detail |
---|
public FlexUnitSocketThread(FlexUnitSocketServer server, java.io.File reportDir, java.util.Map<java.lang.String,Report> reports)
Method Detail |
---|
public java.lang.Object call() throws java.lang.Exception
call
in interface java.util.concurrent.Callable<java.lang.Object>
java.lang.Exception
private void parseInboundMessages() throws java.io.IOException
java.io.IOException
private void processTestReport(java.lang.String xml)
report
- String that represents a complete testprivate org.dom4j.Document parseReport(java.lang.String report)
report
- String
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |