use of org.osgl.inject.Genie in project java-di by osglworks.
the class GH26 method test.
@Test
public void test() {
Genie genie = Genie.create();
BeanSpec fooHolderSpec = BeanSpec.of(FooHolder.class, genie);
BeanSpec fooSpec = fooHolderSpec.field("foo");
BeanSpec dataSpec = fooSpec.field("data");
eq(String.class, dataSpec.rawType());
}
use of org.osgl.inject.Genie in project java-di by osglworks.
the class Gh18 method test.
@Test
@Ignore
public void test() {
Genie genie = Genie.create();
BeanSpec spec = BeanSpec.of(int[].class, genie);
eq(int.class, spec.typeParams().get(0));
}