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: */package org.apache.openejb.test;
17:
18: import java.util.Properties;
19:
20: /**
21: *
22: * @author <a href="mailto:david.blevins@visi.com">David Blevins</a>
23: * @author <a href="mailto:Richard@Monson-Haefel.com">Richard Monson-Haefel</a>
24: */
25: public class CorbaTestServer implements TestServer {
26:
27: Properties props;
28:
29: public void init(Properties props) {
30: /* TO DO:
31: * Perform some test to see if the OpenEJB CORBA Server
32: * is started. If not, display the followding message
33: * and exit.
34: */
35: // log("OpenEJB Test Suite with the OpenEJB CORBA Server");
36: // log("");
37: // log("Before running the OpenEJB test suite on the ");
38: // log("OpenEJB CORBA Server, the MapNamingContext");
39: // log("and CORBA Server must each be started in ");
40: // log("seperate processes.");
41: // log("");
42: // log("1) Execute corba_naming_server.sh or .bat in a process.");
43: // log("2) Execute corba_server.sh or .bat in another process.");
44: // log("");
45: this .props = props;
46: }
47:
48: public void log(String s) {
49: System.out.println("[NOTE] " + s);
50: }
51:
52: public void destroy() {
53: }
54:
55: public void start() {
56: }
57:
58: public void stop() {
59:
60: }
61:
62: public Properties getContextEnvironment() {
63: return (Properties) props.clone();
64: }
65:
66: }
|