eclipse-ee4j / eclipse-ee4j/mojarra-jsf-extensions
[test-time 0.1]: MockLifecycle: add phaselistener support
- Dominant language
- Java
- Stars
- 1
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Writing a unit-test for phaselisteners at this moment means replacing the class
MockLifecycle. all PL-related methods just "throw new
UnsupportedOperationException();". The same applies to the execute and
render-methods.
It would be great to be able to
* tell the Mock-class how much time each phase "should take at least"
* tell the lifecycle to do
* a full run
* simulate a GET-call (just to restoreView and renderResponse)
* simulate converter- or validator-exception processing
* simulate the two calls from a portal container (means: start a processing
lifecycle, and later start a rendering lifecycle)
* simulate a navigation-action (change the view-id at the appropriate phases)
#### Environment
Operating System: All
Platform: All
#### Affected Versions
[current]
Contributor guide
Assessment
This issue has not been assessed yet.