Class DatabaseVersionResolverTest


  • public class DatabaseVersionResolverTest
    extends Object
    Unit test to verify that the functionality of DatabaseVersionResolver is accurate.
    Author:
    Chris Cranford
    • Constructor Detail

      • DatabaseVersionResolverTest

        public DatabaseVersionResolverTest()
    • Method Detail

      • testAnnotationLessThanGivenMajorVersion

        public void testAnnotationLessThanGivenMajorVersion()
                                                     throws Exception
        Throws:
        Exception
      • testAnnotationLessThanOrEqualGivenMajorVersion

        public void testAnnotationLessThanOrEqualGivenMajorVersion()
                                                            throws Exception
        Throws:
        Exception
      • testAnnotationEqualToGivenMajorVersion

        public void testAnnotationEqualToGivenMajorVersion()
                                                    throws Exception
        Throws:
        Exception
      • testAnnotationGreaterThanOrEqualToGivenMajorVersion

        public void testAnnotationGreaterThanOrEqualToGivenMajorVersion()
                                                                 throws Exception
        Throws:
        Exception
      • testAnnotationGreaterThanGivenMajorVersion

        public void testAnnotationGreaterThanGivenMajorVersion()
                                                        throws Exception
        Throws:
        Exception
      • checkLessThan

        private boolean checkLessThan​(int dbMajor,
                                      int dbMinor,
                                      int dbPatch,
                                      int major,
                                      int minor,
                                      int patch)
      • checkLessThanEqualTo

        private boolean checkLessThanEqualTo​(int dbMajor,
                                             int dbMinor,
                                             int dbPatch,
                                             int major,
                                             int minor,
                                             int patch)
      • checkEqualTo

        private boolean checkEqualTo​(int dbMajor,
                                     int dbMinor,
                                     int dbPatch,
                                     int major,
                                     int minor,
                                     int patch)
      • checkGreaterThanOrEqualTo

        private boolean checkGreaterThanOrEqualTo​(int dbMajor,
                                                  int dbMinor,
                                                  int dbPatch,
                                                  int major,
                                                  int minor,
                                                  int patch)
      • checkGreaterThan

        private boolean checkGreaterThan​(int dbMajor,
                                         int dbMinor,
                                         int dbPatch,
                                         int major,
                                         int minor,
                                         int patch)