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 naked JAVAEE 5 unpacked.
22: *
23: * @version $Rev:386276 $ $Date: 2007-03-14 20:06:17 -0700 (Wed, 14 Mar 2007) $
24: */
25: public class EARConfigBuilder5NakedUnpackedTest extends
26: EARConfigBuilderTestSupport {
27: protected void setUp() throws Exception {
28: super .setUp();
29:
30: earFile = DeploymentUtil
31: .createJarFile(resolveFile("target/test-ear-javaee_5-naked-unpacked.ear"));
32: ejbConfigBuilder.ejbModule = new EJBModule(false,
33: ejbModuleName, null, null, "ejb.jar/", null, null,
34: null, null);
35: webConfigBuilder.contextRoot = contextRoot;
36: webConfigBuilder.webModule = new WebModule(false,
37: webModuleName, null, null, "war.war/", null, null,
38: null, contextRoot, WEB_NAMESPACE, null);
39: connectorConfigBuilder.connectorModule = new ConnectorModule(
40: false, raModuleName, null, null, "rar.rar/", null,
41: null, null, null);
42: }
43:
44: protected void tearDown() throws Exception {
45: DeploymentUtil.close(earFile);
46: close(ejbConfigBuilder.ejbModule);
47: close(webConfigBuilder.webModule);
48: close(connectorConfigBuilder.connectorModule);
49:
50: super.tearDown();
51: }
52: }
|