Class JdbcFrontJdbcBackTest


  • public class JdbcFrontJdbcBackTest
    extends java.lang.Object
    Tests for a JDBC front-end and JDBC back-end.

    The idea is that as much as possible of the query is pushed down to the JDBC data source, in the form of a large (and hopefully efficient) SQL statement.

    See Also:
    JdbcFrontJdbcBackLinqMiddleTest
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void checkTablesByType​(java.lang.String tableType, org.hamcrest.Matcher<java.lang.String> matcher)  
      void testCase()  
      void testColumns()  
      void testEmpty()
      Tests a JDBC method known to be not implemented (as it happens, DatabaseMetaData.getPrimaryKeys(java.lang.String, java.lang.String, java.lang.String)) that therefore uses empty result set.
      void testTables()  
      void testTablesByType()  
      void testWhere2()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JdbcFrontJdbcBackTest

        public JdbcFrontJdbcBackTest()
    • Method Detail

      • testWhere2

        public void testWhere2()
      • testTables

        public void testTables()
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testTablesByType

        public void testTablesByType()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • checkTablesByType

        private void checkTablesByType​(java.lang.String tableType,
                                       org.hamcrest.Matcher<java.lang.String> matcher)
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testColumns

        public void testColumns()
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testEmpty

        public void testEmpty()
                       throws java.lang.Exception
        Tests a JDBC method known to be not implemented (as it happens, DatabaseMetaData.getPrimaryKeys(java.lang.String, java.lang.String, java.lang.String)) that therefore uses empty result set.
        Throws:
        java.lang.Exception
      • testCase

        public void testCase()