blob: 8c57102e45de24aa8d00fa92c72cb747142b2aa7 [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.jst.j2ee.application.internal.operations.J2EEModuleExportDataModel;
import org.eclipse.jst.j2ee.internal.web.archive.operations.WebModuleExportDataModel;
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 J2EEModuleExportDataModel getModelInstance() {
WebModuleExportDataModel dataModel = new WebModuleExportDataModel();
dataModel.setBooleanProperty(WebModuleExportDataModel.EXCLUDE_COMPILE_JSP, excludeCompileJsp);
return dataModel;
}
/* (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";
}
}