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.ObjectID;
08: import com.tc.objectserver.core.api.ManagedObjectState;
09:
10: public class ArrayManagedObjectStateTest extends
11: AbstractTestManagedObjectState {
12:
13: /*
14: public void testIntegerArray() throws Exception {
15: String className = "[java.lang.Integer";
16: TestDNACursor cursor = new TestDNACursor();
17:
18: cursor.addArrayAction(new Integer[] { new Integer(2002), new Integer(2003) });
19:
20: basicTestUnit(className, ManagedObjectState.ARRAY_TYPE, cursor, 0);
21: // failed when readFrom back, the literalType changed from 0 (Integer) to 10 (Object)
22: }
23: */
24:
25: public void testObjectArray() throws Exception {
26: String className = "[java.lang.Object";
27: TestDNACursor cursor = new TestDNACursor();
28:
29: cursor.addArrayAction(new Object[] { new ObjectID(2002),
30: new ObjectID(2003) });
31:
32: basicTestUnit(className, ManagedObjectState.ARRAY_TYPE, cursor,
33: 2);
34: }
35:
36: }
|