|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ohrasys.cad.bnf.BNFAbstractTest com.ohrasys.cad.bnf.BNFOptionalTest
public class BNFOptionalTest
A test in which all sub-tests must occur zero or one time
Field Summary |
---|
Fields inherited from class com.ohrasys.cad.bnf.BNFAbstractTest |
---|
collectedData, collecting, committed, formatting, i18n, nextTest, playable, result, tests |
Constructor Summary | |
---|---|
BNFOptionalTest(BNFTestImplementor[] tests)
Creates a new BNFOptionalTest object. |
Method Summary | |
---|---|
BNFTestResult |
test(BNFTestableObject obj)
A method to evaluate this test using the supplied testable object |
java.lang.String |
toString()
Returns a text representation of this test |
Methods inherited from class com.ohrasys.cad.bnf.BNFAbstractTest |
---|
checkTests, collect, isFirstTest, isLastTest, isNotLastTest, reset, setCollecting, setFormatting |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BNFOptionalTest(BNFTestImplementor[] tests) throws BNFTestException
tests
- The sub-tests that comprise the test
BNFTestException
- If the sub-test list is null, zero length
or one of the sub-tests is nullMethod Detail |
---|
public BNFTestResult test(BNFTestableObject obj)
test
in interface BNFTestImplementor
test
in class BNFAbstractTest
obj
- The BNFTestableObject from which to extract the token
used to evaluate this test
public java.lang.String toString()
toString
in class BNFAbstractTest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |