Bug 877063
Summary: | Seam 2.3 seam-gen generated project is not testable | ||
---|---|---|---|
Product: | [Retired] JBoss Enterprise WFK Platform 2 | Reporter: | Ron Šmeral <rsmeral> |
Component: | Seam | Assignee: | Vaclav Dedik <vdedik> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Marek Schmidt <maschmid> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.1.0 | CC: | amelicha, irooskov, kpiwko, mnovotny, snagarwa, tremes |
Target Milestone: | ER2 | ||
Target Release: | 2.2.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | Seam 2.3 seam-gen | ||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
The seam-gen SeamTest template was not properly migrated to Arquillian. As a consequence, seam-gen tests did not work. to fix this issue, seam-gen SeamTest template has been modified to properly use Arquillian. As a result of the fix, the Tests generated by seam-gen can now be run with 'ant test'.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2013-05-14 14:50:30 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ron Šmeral
2012-11-15 16:01:29 UTC
it is known issue Move to WFK 2.2 and release note for WFK 2.1 per 19-Nov triage call. *** Bug 877055 has been marked as a duplicate of this bug. *** Vasek is backporting the https://issues.jboss.org/browse/JBSEAM-5034 Done. This is still problem. Test generated for "Seam Form" or "Seam Action" still contains errors. At first there are IMO variables instead of its values e.g.: .addAsLibraries(@libraryList@) String WEBAPP_SRC = "@workspaceHome@/@projectName@/test-build"; String PROJECT_HOME = "@workspaceHome@/@projectName@/"; Second problem is that when you generate these Forms or Actions for WAR project, there is no secondary ${name}Bean class. I mean that when I create FooForm.java in WAR project, there is no FooFormBean.java in this case. This causes errors too. Well ok my previous comment refers to JBDS behaviour so that's for another JBDS issue. So tests are generated ok by using seam-gen command, but the next problem is that they can't be run on EAP 6.0.1 (7.1.3.Final) because of older arquillian container version. ok, we can update the version from our WFK BOM. Here is the main issue which blocks the testing from user POV after looking into our WFK BOM *-with-tools, there is already a workaround arquillian container dependencies, but as seam-gen uses ant and downloads arquillian libs from ant script, I need to add this workaround into get-arquillian-libs.xml script too. Verified on WFK 2.2.0.ER2 filed other issues with seam-gen test: https://bugzilla.redhat.com/show_bug.cgi?id=922051 Seam2.3 seam-gen generated JUnitSeamTest deployment should use org.jboss.seam.mock.MockSeamListener instead of the SeamListener. https://bugzilla.redhat.com/show_bug.cgi?id=922049 Seam2.3 seam-gen resources-test/arquillian.xml not used Doc Text updated. Closed as CURRENTRELEASE, part of WFK 2.2.0 distributables. |