Bug 953784
| Summary: | MemberRegistrationTest Arquillian Test fails on jboss-html5-mobile-archetype | ||
|---|---|---|---|
| Product: | [Retired] JBoss Enterprise WFK Platform 2 | Reporter: | Tolis Emmanouilidis <aemmanou> |
| Component: | Examples | Assignee: | Pete Muir <pmuir> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Tolis Emmanouilidis <aemmanou> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.2.0 | CC: | bsutter, kpiwko, oskutka, pmuir, rruss |
| Target Milestone: | GA | ||
| Target Release: | 2.2.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-05-14 14:55:10 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
Tolis Emmanouilidis
2013-04-19 08:12:44 UTC
Karel Piwko <kpiwko> made a comment on jira JDF-270 So, should the testRegister email run first and testDuplicateEmail second and assert that it actually fails? Tolis Emmanouilidis <aemmanou> made a comment on jira JDF-270 The workaround is to change the member's email address on either the testDuplicateEmail or testRegister case. The reason is that the testDuplicateEmail registers a member and then asserts that the registration with the same email fails. But when the testRegister case is reached, the member with the specified email has already been registered in testDuplicateEmail case. I'd like to add that the issue appears when the testDuplicateEmail case is executed before the testRegister case. However inside the source file, the testRegister case is defined before the testDuplicateEmail. I believe that the issue is related to the fact that in JAVA 7 it is not guaranteed that the order of methods returned by reflection is the same as the order declared in the source file. For this reason Junit 11 release notes states that one of the new features is the "Test Execution Order". Tolis Emmanouilidis <aemmanou> made a comment on jira JDF-270 https://github.com/jboss-jdf/jboss-as-quickstart/pull/496 PR added Rafael Benevides <benevides> updated the status of jira JDF-270 to Resolved Rafael Benevides <benevides> made a comment on jira JDF-270 PR Merged Tolis Emmanouilidis <aemmanou> made a comment on jira JDF-270 Thank you Rafael :) Rafael Benevides <benevides> made a comment on jira JDF-270 You're welcome! Archetypes 7.1.3.CR5 will include this PR :) Closed as CURRENTRELEASE, part of WFK 2.2.0 distributables. |