Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
ApplicationComposers.run(Application.class, "a", "b");
with Application a normal ApplicationComposer class
@Classes(cdi = true, value = Application.CdiBean.class) public class Application { private final String[] args; public Application(String[] args) { this.args = args; } @AppResource private ApplicationComposers composers; @Inject private CdiBean bean; @PostConstruct public void init() { try { assertNotNull(bean); assertEquals("run", bean.run()); assertNotNull(args); assertEquals(asList("a", "b"), asList(args)); ApplicationComposersTest.ok = true; } finally { try { composers.after(); } catch (final Exception e) { // no-op } } } public static class CdiBean { String run() { return "run"; } } }