Author: akazakov
Date: 2012-05-10 19:19:18 -0400 (Thu, 10 May 2012)
New Revision: 40931
Modified:
trunk/seam/tests/org.jboss.tools.seam230.core.test/src/org/jboss/tools/seam/core/test/project/facet/Seam230FacetInstallDelegateTest.java
Log:
https://issues.jboss.org/browse/JBIDE-11490 tests for Seam 2.3
Modified:
trunk/seam/tests/org.jboss.tools.seam230.core.test/src/org/jboss/tools/seam/core/test/project/facet/Seam230FacetInstallDelegateTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam230.core.test/src/org/jboss/tools/seam/core/test/project/facet/Seam230FacetInstallDelegateTest.java 2012-05-10
22:19:42 UTC (rev 40930)
+++
trunk/seam/tests/org.jboss.tools.seam230.core.test/src/org/jboss/tools/seam/core/test/project/facet/Seam230FacetInstallDelegateTest.java 2012-05-10
23:19:18 UTC (rev 40931)
@@ -19,12 +19,14 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.jst.common.project.facet.core.JavaFacet;
+import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
import org.eclipse.wst.validation.ValidationFramework;
import org.eclipse.wst.validation.internal.EventManager;
import org.jboss.tools.seam.core.project.facet.SeamRuntimeManager;
import org.jboss.tools.seam.core.project.facet.SeamVersion;
import org.jboss.tools.seam.internal.core.project.facet.AntCopyUtils;
+import org.jboss.tools.seam.internal.core.project.facet.ISeamFacetDataModelProperties;
import org.jboss.tools.seam.internal.core.project.facet.Seam23FacetInstallDelegate;
/**
@@ -67,6 +69,16 @@
earProject = (ear != null ? ProjectFacetsManager.create(ear, false, null) :
createSeamEarProject("earprj"));
}
+ @Override
+ protected IDataModel createSeamDataModel(String deployType) {
+ IDataModel dataModel = super.createSeamDataModel(deployType);
+ dataModel.setStringProperty(
+ ISeamFacetDataModelProperties.SEAM_RUNTIME_NAME, SEAM_2_2_3);
+ dataModel.setBooleanProperty(ISeamFacetDataModelProperties.SEAM_RUNTIME_LIBRARIES_COPYING,
true);
+
+ return dataModel;
+ }
+
private static Set<String> convertToStrings(AntCopyUtils.FileSet fileSet) {
Set<String> seamgenlibs = new HashSet<String>();
List<Pattern> list = fileSet.getIncluded();