Author: akazakov
Date: 2010-04-12 17:35:26 -0400 (Mon, 12 Apr 2010)
New Revision: 21447
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java
Log:
Added JUnit test for
https://jira.jboss.org/jira/browse/JBIDE-6176
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2010-04-12
21:30:29 UTC (rev 21446)
+++
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2010-04-12
21:35:26 UTC (rev 21447)
@@ -155,6 +155,21 @@
}
/**
+ * Test for
https://jira.jboss.org/jira/browse/JBIDE-6176
+ * @throws CoreException
+ */
+ public void testFactory() throws CoreException {
+ IFile componentFile =
project.getFile("src/action/org/domain/SeamWebWarTestProject/session/FactoryTest.java");
+ copyContentsFile(componentFile,
"src/action/org/domain/SeamWebWarTestProject/session/FactoryTest.new");
+ refreshProject(project);
+
+ assertMarkerIsNotCreated(componentFile, MARKER_TYPE, "Factory method
\"somethings\" with a void return type must have an associated
@Out/Databinder", 22);
+
+ copyContentsFile(componentFile,
"src/action/org/domain/SeamWebWarTestProject/session/FactoryTest.original");
+ refreshProject(project);
+ }
+
+ /**
* Test for
https://jira.jboss.org/jira/browse/JBIDE-784
* @throws CoreException
*/