|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.uhn.hl7v2.validation.app.TestApplication
ca.uhn.hl7v2.validation.app.MultiTestApplication
public class MultiTestApplication
A composite test application that delegates to multiple other test applications and returns a combined list of problems.
Constructor Summary | |
---|---|
MultiTestApplication()
Creates a new instance of MultiTestApplication |
Method Summary | |
---|---|
void |
addTest(TestApplication test)
Registers a test app so that messages will be tested against it. |
boolean |
canProcess(Message in)
Returns true if ANY of the delegates can accept the message. |
HL7Exception[] |
test(Message in)
Tests the message by passing it to all test apps that have been registered using addTest(). |
Methods inherited from class ca.uhn.hl7v2.validation.app.TestApplication |
---|
processMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiTestApplication()
Method Detail |
---|
public boolean canProcess(Message in)
canProcess
in interface Application
canProcess
in class TestApplication
public HL7Exception[] test(Message in) throws HL7Exception
test
in class TestApplication
HL7Exception
- if the message can't be tested (not for errors disovered
during testing)public void addTest(TestApplication test)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |