<div dir="ltr">Hey everybody,<div><br></div><div>I am trying to add a test for the TestingSetupCommand, part of the testing addon, that I want to develop. What is particular about this command and the addon:</div><div><br></div><div>- They use the simple furnace container instead of cdi</div><div>- The command has UISelectOne input which values are supposed to be implementations of the TestingFacet interface (JUnitTestingFacet and TestNGTestingFacet)</div><div><br></div><div>The testing facet base class that is extended by both facet implementations has a method that returns the dependency facet of the currently selected project:</div><div><pre style="color:rgb(0,0,0);font-family:Inconsolata"><font size="4"><span style="color:rgb(0,0,128);font-weight:bold">private </span>DependencyFacet getDependencyFacet()<br>{<br>   <span style="color:rgb(0,0,128);font-weight:bold">return </span>getFaceted().getFacet(DependencyFacet.<span style="color:rgb(0,0,128);font-weight:bold">class</span>);<br>}<br></font></pre></div><div>And this method works fine when it is called when the test sets up the test project. However, when I &quot;select&quot; a testing framework form the UISelectOne, the value that I get back (in my case TestNGTestingFacet) does not have a valid origin field (it&#39;s null). Is it possible that upon setup the UISelectOne&#39;s items are not initialized properly?</div><div><br></div><div>You can check the code in my repository:</div><div><br></div><div><a href="https://github.com/ivannov/core/tree/FORGE-2545">https://github.com/ivannov/core/tree/FORGE-2545</a><br></div><div><br></div><div>Just put a breakpoint in AbstractTestingFacet::getDependencyFacet and run TestSetupCommandTest::testSetupTestNG. Check the content of the getFaceted() return value.</div><div><br></div><div>Thanks,</div><div>Ivan</div><div><br></div><div> </div></div>