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