<div dir="ltr">BTW groovy tests use junit assertions, so here also we could use assertj if we want to.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 7, 2016 at 9:38 AM, Joel Takvorian <span dir="ltr">&lt;<a href="mailto:jtakvori@redhat.com" target="_blank">jtakvori@redhat.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 dir="ltr"><span class=""><div>&gt; never be sure if it&#39;s &quot;expected, actual&quot; or &quot;actual, expected&quot;.</div><div><br></div></span><div>It&#39;s an interesting point, because the assertj way is precisely solving this issue with its english-like fluent writing : &quot;Assert that &lt;something&gt; [is / contains / matches / whatever] &lt;some other thing&gt;&quot;. It&#39;s quite clear in this sentence that the subject is &lt;actual&gt;, complement is &lt;expected&gt;. And you never have to worry about it anymore.</div><div><br></div><div>About the testing libraries, if we try to analyse that:</div><div><br></div><div>JUnit: can&#39;t get rid of it, however the JUnit assertions could eventually be gradually replaced with the ones of the preferred framework if we want absolute homogeneity (but do we really want it?)</div><div>TestNG: same as above, could be gradually replaced</div><div>Mockito: still useful, not overlapping</div><div>Testing in Groovy: my guess is that it was interesting to use groovy for on the fly objects declaration, maybe among other benefits. It seems to suits quite well for integration test, no?</div><div>I haven&#39;t found the scala tests yet :)</div><div><br></div><div>So the overlapping parts are more on JUnit / TestNG, and Assertj if we come to add it. But comparing to junit/testng, assertj clearly brings nice facilities as I described above. IMHO there&#39;s no need to rewrite every tests, adopting a new assertion framework can be done just progressively, without forcing anybody to adopt it right here right now. It&#39;s just giving some more tools that can be very appreciated some day on a particular situation.</div></div>
</blockquote></div><br></div>