<div class="gmail_quote">On Tue, Apr 27, 2010 at 3:57 AM, Nicklas Karlsson <span dir="ltr">&lt;<a href="mailto:nickarls@gmail.com">nickarls@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>There is one gap in the article at this point. Right now it assumes the use of the weld-embedded container. That will work for basic managed bean tests, but it&#39;s not going to work for integration tests that require container services such as JMS and JPA. It also won&#39;t be sufficient when we need to test the real JSF life cycle. Therefore, I recommend adding a section about using real containers. For instance, JMS module needs this right out of the gate. </div>

</blockquote><div><br></div></div><div>I don&#39;t know if it&#39;s a job for this article or for Arquillian/JBossTesting in general but it would be handy to show the progression of a simple case from the standalone unit test to the full blown EE-integration test. Something along the lines of </div>

<div><br></div><div>* A simple junit-only test of a Calc class that returns the sum of two parameters</div><div>* Calc in embedded weld with some injection</div><div>* Calc goes servlet (HTMLUnit? Selenium?)</div><div>* Calc goes JSF-WAR web app (JSFUnit?)</div>

<div>* Calc goes JSF-EAR-JPA (DBUnit + loading of data + transactions etc)</div><div><br></div></div></blockquote><div><br></div><div>That&#39;s more or less what I was referring to. While I see this as something for the Arquillian reference guide, I still think it would be useful to have the no frills progression on the ModuleTesting page. The reference documentation can have the show and tell whereas the ModulesTesting page can just have the show.</div>
<div><br></div><div>-Dan</div><div> </div></div>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br>Registered Linux User #231597<br><br><a href="http://mojavelinux.com">http://mojavelinux.com</a><br>
<a href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</a><br><a href="http://www.google.com/profiles/dan.j.allen">http://www.google.com/profiles/dan.j.allen</a><br>