- 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();
-
+ 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();
+