blob: 845fb88bde1e96de5c4f171cffdf7c5779f61068 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.wtp.j2ee.headless.tests.web.operations;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
import org.eclipse.wst.common.tests.OperationTestCase;
import org.eclipse.wst.project.facet.SimpleWebFacetProjectCreationDataModelProvider;
import org.eclipse.wtp.j2ee.headless.tests.j2ee.operations.ModuleProjectCreationOperationTest;
public class StaticWebProjectCreationOperationTest extends ModuleProjectCreationOperationTest {
public StaticWebProjectCreationOperationTest(String name) {
super(name);
}
public static Test suite() {
return new TestSuite(StaticWebProjectCreationOperationTest.class);
}
public static IDataModel getStaticWebDataModel(String projName, String earName){
IDataModel model = DataModelFactory.createDataModel(new SimpleWebFacetProjectCreationDataModelProvider());
model.setProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME, projName);
return model;
}
public void testStatic_Defaults() throws Exception{
IDataModel dm = getStaticWebDataModel("aStaticWeb",null);
OperationTestCase.runAndVerify(dm);
}
}