<div dir="ltr"><div class="gmail_extra">Hi all,</div><div class="gmail_extra"><br></div><div class="gmail_extra">I&#39;m investigating how to refactor UICommands in the best way (see the analysis in <a href="https://issues.jboss.org/browse/FORGE-2109">https://issues.jboss.org/browse/FORGE-2109</a>). But before refactoring, I would like to add a stronger test coverage so I make sure I don&#39;t break things. </div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">I was looking at CommandController that list of the command inputs : </div><div class="gmail_extra"><br></div><div class="gmail_extra"><font face="monospace, monospace">Map&lt;String, InputComponent&lt;?, ?&gt;&gt; <b>getInputs</b>();</font></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">I would like to add the following commands </div><div class="gmail_extra"><br></div><div class="gmail_extra"><font face="monospace, monospace">InputComponent&lt;?, ?&gt; <b>getInput</b>(String input); // returns one input</font></div><div class="gmail_extra"><font face="monospace, monospace">boolean <b>hasInput</b>(String input); // checks if the input is present</font><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">What do you think ?</div><div class="gmail_extra"><div><br></div>-- <br><div class="gmail_signature">Antonio Goncalves <br>Software architect and Java Champion<br><br><a href="http://www.antoniogoncalves.org/" target="_blank">Web site</a> | <a href="http://twitter.com/agoncal" target="_blank">Twitter</a> | <a href="http://www.linkedin.com/in/agoncal" target="_blank">LinkedIn</a> | <a href="http://www.parisjug.org/" target="_blank">Paris JUG</a> | <a href="http://www.devoxx.fr/" target="_blank">Devoxx France</a></div>
</div></div>