<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">This is awesome! It makes testing much easier too :-)<div><br></div><div>Paul</div><div><br><div><div>On Apr 19, 2012, at 21:04 , Lincoln Baxter, III wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">You may notice when building forge from master, that test output is no longer printed to the console. This is because George Gastaldi has implemented a long standing feature request:<br><br><a href="https://issues.jboss.org/browse/FORGE-211">https://issues.jboss.org/browse/FORGE-211</a><br>
<br clear="all">It is now possible to call:<span style="font-family:courier new,monospace"> getOutput()</span> in Forge test cases extending from <span style="font-family:courier new,monospace">AbstractShellTest</span>, making assertions on what your plugin is actually printing to the console.<br>
<br><span style="font-family:courier new,monospace">Assert.assertTrue(getOutput().contains("Expected output"));</span><br><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.org/" target="_blank">http://ocpsoft.org</a><br>
"Simpler is better."<br>
_______________________________________________<br>forge-dev mailing list<br><a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/forge-dev<br></blockquote></div><br></div></body></html>