Interface IntervalTest.Fixture2

Enclosing class:
IntervalTest

public static interface IntervalTest.Fixture2
Fluent interface to validate an expression.
  • Method Summary

    Modifier and Type
    Method
    Description
    assertParse(String expectedAst)
    Checks that the expression parses successfully and produces the given SQL when unparsed.
    void
    columnType(String expectedType)
    Checks that the expression is valid in the parser and validator and has the given column type.
    void
    fails(String expected)
    Checks that the expression is valid in the parser but invalid (with the given error message) in the validator.
  • Method Details

    • fails

      void fails(String expected)
      Checks that the expression is valid in the parser but invalid (with the given error message) in the validator.
    • columnType

      void columnType(String expectedType)
      Checks that the expression is valid in the parser and validator and has the given column type.
    • assertParse

      IntervalTest.Fixture2 assertParse(String expectedAst)
      Checks that the expression parses successfully and produces the given SQL when unparsed.