org.opensubsystems.core.persist.db.driver
Class TimestampTest

java.lang.Object
  extended by org.opensubsystems.core.persist.db.driver.TimestampTest

public final class TimestampTest
extends java.lang.Object

All tests related to timestamp functionality. To compute timestamp based on the current timestamp in sapdb you can use one of these: select timestamp(date(now()), maketime((24 + hour(now()) - 4) mod 24, minute(now()), second(now()))) from dual select timestamp(date(present), maketime((24 + hour(present) - 4) mod 24, minute(present), second(present))) from (select now() as present from dual)

Version:
$Id: TimestampTest.java,v 1.15 2007/01/07 06:14:51 bastafidli Exp $
Author:
Miro Halas
Code reviewer:
Miro Halas
Code reviewed:
Initial revision

Nested Class Summary
static class TimestampTest.TimestampTestInternal
          Internal class which can be included in other test suites directly without including the above suite.
 
Method Summary
static junit.framework.Test suite()
          Create the suite for this test since this is the only way how to create test setup which can initialize and shutdown the database for us
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

suite

public static junit.framework.Test suite()
Create the suite for this test since this is the only way how to create test setup which can initialize and shutdown the database for us

Returns:
Test - suite of tests to run for this database


Copyright © 2003 - 2006 OpenSubsystems s.r.o.