01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.objectserver.managedobject;
06:
07: import com.tc.object.SerializationUtil;
08: import com.tc.objectserver.core.api.ManagedObjectState;
09:
10: public class DateManagedObjectStateTest extends
11: AbstractTestManagedObjectState {
12:
13: public void testObjectDate() throws Exception {
14: String className = "java.util.Date";
15: TestDNACursor cursor = new TestDNACursor();
16:
17: cursor.addLogicalAction(SerializationUtil.SET_TIME,
18: new Long[] { new Long(System.currentTimeMillis()) });
19: cursor.addLogicalAction(SerializationUtil.SET_NANOS,
20: new Integer[] { new Integer(0) });
21:
22: basicTestUnit(className, ManagedObjectState.DATE_TYPE, cursor,
23: 0);
24: }
25:
26: }
|