01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package org.apache.harmony.jndi.tests.javax.naming;
19:
20: import javax.naming.NamingException;
21:
22: import junit.framework.TestCase;
23:
24: public class InitialContextAppletTest extends TestCase {
25: public void testConstructor_applet() throws NamingException {
26: // MockApplet applet = new MockApplet();
27: // applet.setParameter(
28: // "java.naming.factory.initial",
29: // "dazzle.jndi.testing.spi.DazzleContextFactory");
30: // applet.setParameter(
31: // "java.naming.provider.url",
32: // "java.naming.provider.url.applet");
33: // applet.setParameter(
34: // "java.naming.factory.control",
35: // "java.naming.factory.control.applet");
36: // applet.setParameter(
37: // "java.naming.dns.url",
38: // "java.naming.dns.url.applet");
39: // applet.setParameter(
40: // "java.naming.factory.object",
41: // "java.naming.factory.object.applet");
42: // applet.setParameter(
43: // "java.naming.factory.state",
44: // "java.naming.factory.state.applet");
45: // applet.setParameter(
46: // "java.naming.factory.url.pkgs",
47: // "java.naming.factory.url.pkgs.applet");
48: //
49: // Hashtable env = new Hashtable();
50: // env.put(Context.APPLET, applet);
51: //
52: // InitialContext context = new InitialContext(env);
53: // Hashtable props = context.getEnvironment();
54: // Hashtable expected = (Hashtable) applet.getAllParams().clone();
55: // expected.put(Context.APPLET, applet);
56: // assertEquals(expected, props);
57: }
58: }
|