이 콘텐츠는 선택한 언어로 제공되지 않습니다.
35.3.4. Integration Testing Seam Mail
Warning
This feature is still under development.
It is very easy to integration test your Seam Mail:
Create a new
FacesRequest as normal. Inside the invokeApplication hook, we render the message using getRenderedMailMessage(viewId);, which passes the viewId of he message to be rendered. The method returns the rendered message on which you can perform tests. You can also use any standard JSF life cycle method.
There is no support for rendering standard JSF components, so you cannot easily test the contents of the mail message.