Author: vdedik
Date: 2013-04-08 04:12:40 -0400 (Mon, 08 Apr 2013)
New Revision: 15475
Modified:
branches/enterprise/WFK-2_1/jboss-seam-gen/dist/build.xml
branches/enterprise/WFK-2_1/jboss-seam-gen/dist/test/ActionTest.java
branches/enterprise/WFK-2_1/jboss-seam-gen/dist/test/FormTest.java
Log:
bz 947910 -- removed unecessary imports from seam-gen tests
Modified: branches/enterprise/WFK-2_1/jboss-seam-gen/dist/build.xml
===================================================================
--- branches/enterprise/WFK-2_1/jboss-seam-gen/dist/build.xml 2013-04-05 13:22:58 UTC (rev
15474)
+++ branches/enterprise/WFK-2_1/jboss-seam-gen/dist/build.xml 2013-04-08 08:12:40 UTC (rev
15475)
@@ -1294,6 +1294,9 @@
</copy>
<copy file="${templates.dir}/test/ActionTest.java"
tofile="${test.file}">
<filterset refid="filters"/>
+ <filterset>
+ <filter token="extraImports" value="import
${action.package}.${interface.name};${line.separator}import
${action.package}.${bean.name};"/>
+ </filterset>
</copy>
<mkdir dir="${project.home}/resources-test"/>
<copy file="${templates.dir}/test/arquillian.xml"
tofile="${project.home}/resources-test/arquillian.xml">
@@ -1312,6 +1315,9 @@
</copy>
<copy file="${templates.dir}/test/ActionTest.java"
tofile="${test.file}">
<filterset refid="filters"/>
+ <filterset>
+ <filter token="extraImports" value="import
${action.package}.${bean.name};"/>
+ </filterset>
</copy>
<mkdir dir="${project.home}/resources-test"/>
<copy file="${templates.dir}/test/arquillian.xml"
tofile="${project.home}/resources-test/arquillian.xml">
@@ -1330,6 +1336,9 @@
</copy>
<copy file="${templates.dir}/test/FormTest.java"
tofile="${test.file}">
<filterset refid="filters"/>
+ <filterset>
+ <filter token="extraImports" value="import
${action.package}.${bean.name};"/>
+ </filterset>
</copy>
<copy file="${templates.dir}/view/form.xhtml"
tofile="${page.file}">
<filterset refid="filters"/>
@@ -1351,6 +1360,9 @@
</copy>
<copy file="${templates.dir}/test/FormTest.java"
tofile="${test.file}">
<filterset refid="filters"/>
+ <filterset>
+ <filter token="extraImports" value="import
${action.package}.${interface.name};${line.separator}import
${action.package}.${bean.name};"/>
+ </filterset>
</copy>
<copy file="${templates.dir}/view/form.xhtml"
tofile="${page.file}">
<filterset refid="filters"/>
Modified: branches/enterprise/WFK-2_1/jboss-seam-gen/dist/test/ActionTest.java
===================================================================
--- branches/enterprise/WFK-2_1/jboss-seam-gen/dist/test/ActionTest.java 2013-04-05
13:22:58 UTC (rev 15474)
+++ branches/enterprise/WFK-2_1/jboss-seam-gen/dist/test/ActionTest.java 2013-04-08
08:12:40 UTC (rev 15475)
@@ -10,12 +10,11 @@
import org.jboss.shrinkwrap.api.importer.ExplodedImporter;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.jboss.seam.mock.JUnitSeamTest;
-import @actionPackage@.@interfaceName@;
-import @actionPackage@.@beanName@;
-import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.junit.runner.RunWith;
import java.io.File;
+@extraImports@
+
@RunWith(Arquillian.class)
public class @interfaceName@Test extends JUnitSeamTest {
Modified: branches/enterprise/WFK-2_1/jboss-seam-gen/dist/test/FormTest.java
===================================================================
--- branches/enterprise/WFK-2_1/jboss-seam-gen/dist/test/FormTest.java 2013-04-05 13:22:58
UTC (rev 15474)
+++ branches/enterprise/WFK-2_1/jboss-seam-gen/dist/test/FormTest.java 2013-04-08 08:12:40
UTC (rev 15475)
@@ -12,12 +12,11 @@
import org.jboss.shrinkwrap.api.importer.ExplodedImporter;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.jboss.seam.mock.JUnitSeamTest;
-import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.junit.runner.RunWith;
-import @actionPackage@.@interfaceName@;
-import @actionPackage@.@beanName@;
import java.io.File;
+@extraImports@
+
@RunWith(Arquillian.class)
public class @interfaceName@Test extends JUnitSeamTest {
Show replies by date