Documentation of 'org.hsqldb.test.TestDateTime' Java class
TestDateTime
org.hsqldb.test

Class TestDateTime

  • All Implemented Interfaces:
    junit.framework.Test


    public class TestDateTime
    extends TestBase
    Tests for normalisation of Time and Date values. Base on the original test submission.
    • Constructor Summary

      Constructors 
      Constructor and Description
      TestDateTime(java.lang.String s) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void testBasicDateSupport()
      Test the database support for Date objects.
      void testBasicDefaultTimeSupport() 
      void testBasicTimeSupport()
      Test the database support for Time objects.
      • Methods inherited from class junit.framework.TestCase

        assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TestDateTime

        public TestDateTime(java.lang.String s)
    • Method Detail

      • testBasicDateSupport

        public void testBasicDateSupport()
                                  throws java.lang.Throwable
        Test the database support for Date objects. Date object ignores the time portion of the Java Date. This class inserts date into database, then retrieve it back using different java time
        Throws:
        java.lang.Throwable - - an error has occured during test
      • testBasicDefaultTimeSupport

        public void testBasicDefaultTimeSupport()
                                         throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • testBasicTimeSupport

        public void testBasicTimeSupport()
                                  throws java.lang.Throwable
        Test the database support for Time objects. Time object ignores the date portion of the Java Date. This class inserts time into database, then retrieve it back using different java date and deletes it using cursor. Uses the already setup connection and transaction. No need to close the connection since base class is doing it for us.
        Throws:
        java.lang.Throwable - - an error has occured during test

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.