eclipse-ee4j / eclipse-ee4j/mojarra-jsf-extensions

[test-time 0.1]: MockLifecycle: add phaselistener support

Open
#76 5 comments 0 reactions 1 assignee Claimed by @glassfishrobot View on GitHub
Component: test ERR: Assignee Priority: Major Type: Improvement
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.