-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major
-
Affects Version/s: 2.4.0-beta-3
-
Component/s: S2Container
-
None
S2Container#findComponentsの戻り値が今はObject[]になっているが、
期待する型の配列にして欲しい。
次のテストケースがPassすればOK。
(Hogeインタフェースと、HogeをimplするBクラス・B2クラスがある場合)
public void testFindComponents() throws Exception { // ## Arrange ## S2ContainerImpl container = new S2ContainerImpl(); container.register(B.class); container.register(B2.class); container.init(); // ## Act ## final Object[] found = container.findComponents(Hoge.class); // ## Assert ## assertEquals(found.getClass().toString(), true, found instanceof Hoge[]); }