Class

org.apache.daffodil.tdml

DFDLTestSuite

Related Doc: package tdml

Permalink

class DFDLTestSuite extends Logging with HasSetDebugger

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 if true the round trip default for the test suite will be taken from this value if it is not specified on the testSuite itself.

Linear Supertypes
HasSetDebugger, Logging, Identity, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DFDLTestSuite
  2. HasSetDebugger
  3. Logging
  4. Identity
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DFDLTestSuite(aNodeFileOrURL: Any, validateTDMLFile: Boolean = true, validateDFDLSchemas: Boolean = true, compileAllTopLevel: Boolean = false, defaultRoundTripDefault: RoundTrip = ..., defaultValidationDefault: String = ...)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val TMP_DIR: String

    Permalink
  5. val __nl: Null

    Permalink
  6. final def areLogging(lvl: Type): Boolean

    Permalink
    Definition Classes
    Logging
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. var checkAllTopLevel: Boolean

    Permalink
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val compileAllTopLevel: Boolean

    Permalink
  11. val defaultConfig: String

    Permalink
  12. val defaultRoundTrip: RoundTrip

    Permalink
  13. val defaultRoundTripDefault: RoundTrip

    Permalink
  14. val defaultValidation: String

    Permalink
  15. val defaultValidationDefault: String

    Permalink
  16. val description: String

    Permalink
  17. def doLogging(lvl: Type, msg: String, args: Seq[Any]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  18. val duplicateTestCases: Map[String, Seq[TestCase]]

    Permalink
  19. val embeddedConfigs: Seq[DefinedConfig]

    Permalink
  20. val embeddedSchemas: Seq[DefinedSchema]

    Permalink
  21. val embeddedSchemasRaw: Seq[DefinedSchema]

    Permalink
  22. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  24. val errorHandler: ErrorHandler

    Permalink
  25. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. def findConfigFileName(configName: String): Option[URI]

    Permalink
  27. def findEmbeddedConfig(configName: String): Option[DefinedConfig]

    Permalink
  28. def findEmbeddedSchema(modelName: String): Option[DefinedSchema]

    Permalink
  29. def findSchemaFileName(modelName: String): Option[URI]

    Permalink
  30. def findTDMLResource(resName: String): Option[URI]

    Permalink

    Try a few possibilities to find the model/schema/tdml resources

    Try a few possibilities to find the model/schema/tdml resources

    IBM's suites have funny model paths in them. We don't have that file structure, so we look for the schema/model/tdml resources in the working directory, and in the same directory as the tdml file, and some other variations.

  31. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  32. def getLoadingDiagnosticMessages(): String

    Permalink
  33. def getLogWriter(): LogWriter

    Permalink
    Definition Classes
    Logging
  34. final def getLoggingLevel(): Type

    Permalink
    Definition Classes
    Logging
  35. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  36. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  37. var isLoadingError: Boolean

    Permalink
  38. lazy val isTDMLFileValid: Boolean

    Permalink
  39. val loader: DaffodilXMLLoader

    Permalink

    our loader here accumulates load-time errors here on the test suite object.

  40. var loadingExceptions: List[Exception]

    Permalink
  41. final macro def log(lvl: Type, msg: String, args: Any*): Unit

    Permalink
    Definition Classes
    Logging
  42. lazy val logID: String

    Permalink
    Definition Classes
    Logging → Identity
  43. var logLevel: Maybe[Type]

    Permalink
    Definition Classes
    Logging
  44. var logWriter: Maybe[LogWriter]

    Permalink
    Definition Classes
    Logging
  45. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  46. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  47. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  48. final var optDebugger: Option[Debugger]

    Permalink
  49. val parserTestCases: Seq[ParserTestCase]

    Permalink
  50. def runAllTests(schema: Option[Node] = None): Unit

    Permalink
  51. def runOneTest(testName: String, schema: Option[Node] = None, leakCheck: Boolean = false): Unit

    Permalink
  52. def runOneTestWithDataVolumes(testName: String, schema: Option[Node] = None): Long

    Permalink

    Returns number of bytes processed.

  53. def runPerfTest(testName: String, schema: Option[Node] = None): Unit

    Permalink
  54. def setCheckAllTopLevel(flag: Boolean): Unit

    Permalink
  55. def setDebugger(d: Debugger): Unit

    Permalink
    Definition Classes
    DFDLTestSuite → HasSetDebugger
  56. def setDebugging(b: Boolean): Unit

    Permalink
    Definition Classes
    DFDLTestSuite → HasSetDebugger
  57. def setLogWriter(lw: LogWriter): Unit

    Permalink
    Definition Classes
    Logging
  58. def setLoggingLevel(level: Type): Unit

    Permalink
    Definition Classes
    Logging
  59. val suiteID: String

    Permalink
  60. val suiteName: String

    Permalink
  61. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  62. val testCaseMap: Map[String, TestCase]

    Permalink
  63. val testCases: Seq[TestCase]

    Permalink
  64. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  65. def trace: DFDLTestSuite

    Permalink
  66. val ts: Node

    Permalink
  67. val tsURI: URI

    Permalink
  68. val unparserTestCases: Seq[UnparserTestCase]

    Permalink
  69. val validateDFDLSchemas: Boolean

    Permalink
  70. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  71. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  72. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  73. macro def withLoggingLevel[S](newLevel: Type)(body: ⇒ S): Unit

    Permalink
    Definition Classes
    Logging

Inherited from HasSetDebugger

Inherited from Logging

Inherited from Identity

Inherited from AnyRef

Inherited from Any

Ungrouped