Package

org.apache.daffodil

tdml

Permalink

package tdml

Visibility
  1. Public
  2. All

Type Members

  1. sealed abstract class BitOrderType extends AnyRef

    Permalink
  2. class BitsDocumentPart extends DataDocumentPart

    Permalink
  3. class ByteDocumentPart extends DataDocumentPart

    Permalink
  4. sealed abstract class ByteOrderType extends AnyRef

    Permalink
  5. case class DFDLInfoset(di: Node, parent: Infoset) extends Product with Serializable

    Permalink
  6. class DFDLTestSuite extends Logging with HasSetDebugger

    Permalink

    TDML test suite runner

    TDML test suite runner

    Keep this independent of Daffodil, so that it can be used to run tests against other DFDL implementations as well. E.g., it should only need an API specified as a collection of Scala traits, and some simple way to inject dependency on one factory to create processors.

    Use the validateTDMLFile arg to bypass validation of the TDML document itself.

    This is used for testing whether one can detect validation errors in the DFDL schema.

    Without this, you can't get to the validation errors, because it rejects the TDML file itself.

    defaultRoundTripDefault the round trip default for the test suite will be taken from this value if it is not specified on the testSuite itself.

    defaultValidationDefault the validation default for the test suite will be taken from this value if it is not specified on the testSuite itself.

    defaultImplementationsDefault the implementations default for the test suite will be taken from this value if it is not specified on the testSuite itself.

    shouldDoErrorComparisonOnCrossTests controls whether negative test error messages are compared during cross testing, or the tests are just run to determine that they fail.

    shouldDoWarningComparisonOnCrossTests controls whether test warning messages are compared during cross testing.

  7. sealed abstract class DataDocumentPart extends DocumentPart

    Permalink

    Base class for all document parts that contain data directly expressed in the XML

  8. case class DefinedConfig(xml: Node, parent: DFDLTestSuite) extends Product with Serializable

    Permalink
  9. case class DefinedSchema(xml: Node, parent: DFDLTestSuite) extends Product with Serializable

    Permalink
  10. case class Document(d: NodeSeq, parent: TestCase) extends Product with Serializable

    Permalink
  11. sealed abstract class DocumentContentType extends AnyRef

    Permalink
  12. sealed abstract class DocumentPart extends AnyRef

    Permalink

    Base class for all document parts

  13. abstract class ErrorWarningBase extends AnyRef

    Permalink
  14. case class ExpectedErrors(node: NodeSeq, parent: TestCase) extends ErrorWarningBase with Product with Serializable

    Permalink
  15. case class ExpectedValidationErrors(node: NodeSeq, parent: TestCase) extends ErrorWarningBase with Product with Serializable

    Permalink
  16. case class ExpectedWarnings(node: NodeSeq, parent: TestCase) extends ErrorWarningBase with Product with Serializable

    Permalink
  17. class FileDocumentPart extends DocumentPart with Logging

    Permalink
  18. case class Infoset(i: NodeSeq, parent: TestCase) extends Product with Serializable

    Permalink
  19. case class ParserTestCase(ptc: NodeSeq, parentArg: DFDLTestSuite) extends TestCase with Product with Serializable

    Permalink
  20. sealed trait RoundTrip extends AnyRef

    Permalink

    Parses and runs tests expressed in IBM's contributed tdml "Test Data Markup Language"

  21. class Runner extends AnyRef

    Permalink

    Needs to be thread-safe (i.e., use all thread-local state) so that test can be run in parallel.

    Needs to be thread-safe (i.e., use all thread-local state) so that test can be run in parallel.

    Note however, that each thread will get its own copy of the DFDLTestSuite

  22. class TDMLDiagnostic extends Diagnostic

    Permalink

    Use when TDML Runner must add to diagnostic lists held by other objects.

  23. trait TDMLException extends AnyRef

    Permalink

    This is a trait so that we can create these from various exception classes already defined by JUnit or other systems.

    This is a trait so that we can create these from various exception classes already defined by JUnit or other systems. For example, allows us to define TDMLTestNotCompatibleException, as well as have a family of other exceptions.

  24. class TDMLExceptionImpl extends Exception with TDMLException

    Permalink
  25. class TDMLTestNotCompatibleException extends TDMLExceptionImpl

    Permalink

    Used to determine when a test will not be run due to not being compatible with the implementation.

    Used to determine when a test will not be run due to not being compatible with the implementation. Useful since this isn't necessarily a failure and may want to be treated differently in some cases.

  26. abstract class TestCase extends Logging

    Permalink
  27. class TextDocumentPart extends DataDocumentPart

    Permalink
  28. case class UnparserTestCase(ptc: NodeSeq, parentArg: DFDLTestSuite) extends TestCase with Product with Serializable

    Permalink

Value Members

  1. object ContentTypeBits extends DocumentContentType with Product with Serializable

    Permalink
  2. object ContentTypeByte extends DocumentContentType with Product with Serializable

    Permalink
  3. object ContentTypeFile extends DocumentContentType with Product with Serializable

    Permalink
  4. object ContentTypeText extends DocumentContentType with Product with Serializable

    Permalink
  5. object LSBFirst extends BitOrderType with Product with Serializable

    Permalink
  6. object LTR extends ByteOrderType with Product with Serializable

    Permalink
  7. object MSBFirst extends BitOrderType with Product with Serializable

    Permalink
  8. object NoRoundTrip extends RoundTrip with Product with Serializable

    Permalink

    Test is just a parse test, or just an unparse, with no round trip involved.

  9. object OnePassRoundTrip extends RoundTrip with Product with Serializable

    Permalink

    Test round trips with a single pass.

    Test round trips with a single pass. Unparse produces exactly the original data.

  10. object RTL extends ByteOrderType with Product with Serializable

    Permalink
  11. object Runner

    Permalink

    Creates the DFDLTestSuite object lazily, so the file isn't read into memory and parsed unless you actually try to run a test using it.

    Creates the DFDLTestSuite object lazily, so the file isn't read into memory and parsed unless you actually try to run a test using it.

    Creates the DFDLTestSuite only once.

    Provides a reset method to be called from @AfterClass to drop the test suite object (and avoid memory leak).

    Note: I have verified that this does get called after each test suite has been run.

    defaultRoundTripDefault if true the round trip default for the test suite will be this value, if the test suite does not specify defaultRoundTrip attribute.

    defaultRoundTripDefaultDefault

  12. object TDMLException

    Permalink
  13. object ThreePassRoundTrip extends RoundTrip with Product with Serializable

    Permalink

    Unparse doesn't produce original data, parsing it doesn't produce the same infoset, but an equivalent infoset which if unparsed, reproduces the first unparse output.

  14. object TwoPassRoundTrip extends RoundTrip with Product with Serializable

    Permalink

    Unparse doesn't produce original data, but equivalent canonical data which if reparsed in a second parse pass, produces the same infoset as the first parse.

  15. object UTF8Encoder

    Permalink
  16. object VerifyTestCase

    Permalink
  17. package processor

    Permalink

Ungrouped