Class ModelTest


  • public class ModelTest
    extends java.lang.Object
    Unit test for data models.
    • Constructor Detail

      • ModelTest

        public ModelTest()
    • Method Detail

      • mapper

        private com.fasterxml.jackson.databind.ObjectMapper mapper()
      • testRead

        public void testRead()
                      throws java.io.IOException
        Reads a simple schema from a string into objects.
        Throws:
        java.io.IOException
      • testSubtype

        public void testSubtype()
                         throws java.io.IOException
        Reads a simple schema containing JdbcSchema, a sub-type of Schema.
        Throws:
        java.io.IOException
      • testCustomSchema

        public void testCustomSchema()
                              throws java.io.IOException
        Reads a custom schema.
        Throws:
        java.io.IOException
      • testModelImmutableSchemaCannotContainMaterialization

        public void testModelImmutableSchemaCannotContainMaterialization()
                                                                  throws java.lang.Exception
        Tests that an immutable schema in a model cannot contain a materialization.
        Throws:
        java.lang.Exception
      • testCustomSchemaWithoutFactory

        public void testCustomSchemaWithoutFactory()
                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testReadLattice

        public void testReadLattice()
                             throws java.io.IOException
        Tests a model containing a lattice and some views.
        Throws:
        java.io.IOException
      • testReadBadMultiLineSql

        public void testReadBadMultiLineSql()
                                     throws java.io.IOException
        Tests a model with bad multi-line SQL.
        Throws:
        java.io.IOException
      • testYamlInlineDetection

        public void testYamlInlineDetection()
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testYamlFileDetection

        public void testYamlFileDetection()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception