01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tctest.spring.integrationtests;
06:
07: import org.apache.commons.logging.LogFactory;
08: import org.apache.log4j.Logger;
09: import org.springframework.beans.factory.BeanFactory;
10:
11: import com.tc.test.TestConfigObject;
12: import com.tc.test.server.appserver.deployment.AbstractDeploymentTest;
13: import com.tc.test.server.appserver.deployment.DeploymentBuilder;
14:
15: public class SpringDeploymentTest extends AbstractDeploymentTest {
16:
17: protected DeploymentBuilder makeDeploymentBuilder(String warFileName) {
18: DeploymentBuilder builder = getServerManager()
19: .makeDeploymentBuilder(warFileName);
20:
21: // All spring tests need these I guess
22: builder.addDirectoryOrJARContainingClass(LogFactory.class); // commons-logging
23: builder.addDirectoryOrJARContainingClass(Logger.class); // log4j
24:
25: builder.addDirectoryOrJARContainingClassOfSelectedVersion(
26: BeanFactory.class,
27: new String[] { TestConfigObject.SPRING_VARIANT }); // springframework
28:
29: return builder;
30: }
31:
32: }
|