Skip to content

Commit

Permalink
getBindingTypes() -> getBindings()
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@903 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
Gavin King authored and gavin.king@gmail.com committed Jan 12, 2009
1 parent 4a4c6f7 commit 9535d61
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -109,7 +109,7 @@ public void testGetBindingTypes()
FieldInjectionPointBean beanWithInjectedBean = manager.getInstanceByType(FieldInjectionPointBean.class, new CurrentBinding());
BeanWithInjectionPointMetadata beanWithInjectionPoint = beanWithInjectedBean.getInjectedBean();
assert beanWithInjectionPoint.getInjectedMetadata() != null;
Set<Annotation> bindingTypes = beanWithInjectionPoint.getInjectedMetadata().getBindingTypes();
Set<Annotation> bindingTypes = beanWithInjectionPoint.getInjectedMetadata().getBindings();
assert bindingTypes.size() == 1;
assert Current.class.isAssignableFrom(bindingTypes.iterator().next().annotationType());
}
Expand Down Expand Up @@ -297,7 +297,7 @@ public void testCurrentBinding()
FieldInjectionPointBean beanWithInjectedBean = manager.getInstanceByType(FieldInjectionPointBean.class, new CurrentBinding());
BeanWithInjectionPointMetadata beanWithInjectionPoint = beanWithInjectedBean.getInjectedBean();
assert beanWithInjectionPoint.getInjectedMetadata() != null;
assert beanWithInjectionPoint.getInjectedMetadata().getBindingTypes().contains(new CurrentBinding());
assert beanWithInjectionPoint.getInjectedMetadata().getBindings().contains(new CurrentBinding());
}
finally
{
Expand Down

0 comments on commit 9535d61

Please sign in to comment.