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 URLManagedObjectStateTest extends
11: AbstractTestManagedObjectState {
12:
13: public void testObjectURL() throws Exception {
14: String className = "java.net.URL";
15:
16: TestDNACursor cursor = new TestDNACursor();
17:
18: cursor.addLogicalAction(SerializationUtil.URL_SET,
19: new Object[] { "http", "terracotta.org",
20: new Integer(8080), "auth", "user:pass",
21: "/test", "par1=val1", "ref" });
22:
23: basicTestUnit(className, ManagedObjectState.URL_TYPE, cursor, 0);
24: }
25:
26: }
|