blob: 2117de87676a3b3567df710f08a47992f299758e [file] [log] [blame]
/*
* Created on Jan 6, 2004
*
* To change the template for this generated file go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
package org.eclipse.jst.servlet.tomcat.tests;
import junit.framework.Test;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
import org.eclipse.wst.common.tests.SimpleTestSuite;
import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleExportOperationTestCase;
import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleImportOperationTestCase;
/**
* @author Administrator
*
* To change the template for this generated type comment go to Window - Preferences - Java - Code
* Generation - Code and Comments
*/
public class WebExportOperationTomcatTest extends ModuleExportOperationTestCase {
protected boolean excludeCompileJsp = false;
public WebExportOperationTomcatTest(String name) {
super(name);
}
public static Test suite() {
return new SimpleTestSuite(WebExportOperationTomcatTest.class);
}
/*
* (non-Javadoc)
*
* @see org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.OperationTestCase#setUp()
*/
protected void setUp() throws Exception {
super.setUp();
excludeCompileJsp = false;
}
public void testExcludeCompileJspOn() throws Exception {
excludeCompileJsp = true;
testAllExportTestCases();
}
/*
* (non-Javadoc)
*
* @see org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleExportOperationTestCase#getModelInstance()
*/
protected IDataModel getModelInstance() {
// WebModuleExportDataModel dataModel = new WebModuleExportDataModel();
// dataModel.setBooleanProperty(WebModuleExportDataModel.EXCLUDE_COMPILE_JSP,
// excludeCompileJsp);
// return dataModel;
return null;
}
/*
* (non-Javadoc)
*
* @see org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleExportOperationTestCase#getImportTestCase()
*/
protected ModuleImportOperationTestCase getImportTestCase() {
return new WebImportOperationTomcatTest("");
}
/**
* @return
*/
public String getModuleExportFileExt() {
return ".war";
}
}