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.geronimo.j2ee.deployment;
17:
18: import org.apache.geronimo.deployment.util.DeploymentUtil;
19:
20: /**
21: * EAR config builder tests for J2EE 1.3.
22: *
23: * @version $Rev:386276 $ $Date: 2007-03-14 20:06:17 -0700 (Wed, 14 Mar 2007) $
24: */
25: public class EARConfigBuilder13Test extends EARConfigBuilderTestSupport {
26: protected void setUp() throws Exception {
27: super .setUp();
28:
29: earFile = DeploymentUtil
30: .createJarFile(resolveFile("target/test-ear-j2ee_1.3.ear"));
31: ejbConfigBuilder.ejbModule = new EJBModule(false,
32: ejbModuleName, null, null, "test-ejb-jar.jar", null,
33: null, null, null);
34: webConfigBuilder.contextRoot = contextRoot;
35: webConfigBuilder.webModule = new WebModule(false,
36: webModuleName, null, null, "test-war.war", null, null,
37: null, contextRoot, WEB_NAMESPACE, null);
38: connectorConfigBuilder.connectorModule = new ConnectorModule(
39: false, raModuleName, null, null, "test-rar.rar", null,
40: null, null, null);
41: }
42:
43: protected void tearDown() throws Exception {
44: DeploymentUtil.close(earFile);
45: close(ejbConfigBuilder.ejbModule);
46: close(webConfigBuilder.webModule);
47: close(connectorConfigBuilder.connectorModule);
48:
49: super.tearDown();
50: }
51: }
|