- public void testGetSingleton() {
- AnnotatedType<MyPojo> type = beanManager.createAnnotatedType(MyPojo.class);
- InjectionTarget<MyPojo> target = beanManager.createInjectionTarget(type);
- CreationalContext<MyPojo> ctx = beanManager.createCreationalContext(null);
-
- MyPojo pojo = new MyPojo();
-
- target.inject(pojo, ctx);
-
- MySingleton obj = pojo.getSingleton();
-
+ public void testGetSingleton() {
+ AnnotatedType<MyPojo> type = setup.getBeanManager()
+ .createAnnotatedType(MyPojo.class);
+ InjectionTarget<MyPojo> target = setup.getBeanManager()
+ .createInjectionTarget(type);
+ CreationalContext<MyPojo> ctx = setup.getBeanManager()
+ .createCreationalContext(null);
+
+ MyPojo pojo = new MyPojo();
+
+ target.inject(pojo, ctx);
+
+ MySingleton obj = pojo.getSingleton();
+