[webbeans-commits] Webbeans SVN: r3505 - tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/extensions/beanManager and 1 other directory.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Sat Aug 15 07:25:01 EDT 2009
Author: pete.muir at jboss.org
Date: 2009-08-15 07:25:00 -0400 (Sat, 15 Aug 2009)
New Revision: 3505
Modified:
ri/trunk/impl/src/main/java/org/jboss/webbeans/BeanManagerImpl.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/extensions/beanManager/BeanManagerTest.java
Log:
WBRI-363
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/BeanManagerImpl.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/BeanManagerImpl.java 2009-08-15 11:03:12 UTC (rev 3504)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/BeanManagerImpl.java 2009-08-15 11:25:00 UTC (rev 3505)
@@ -1314,7 +1314,7 @@
public boolean isBindingType(Class<? extends Annotation> annotationType)
{
- throw new UnsupportedOperationException("Not yet implemented");
+ return getServices().get(MetaAnnotationStore.class).getBindingTypeModel(annotationType).isValid();
}
public boolean isInterceptorBindingType(Class<? extends Annotation> annotationType)
@@ -1324,12 +1324,12 @@
public boolean isScopeType(Class<? extends Annotation> annotationType)
{
- throw new UnsupportedOperationException("Not yet implemented");
+ return getServices().get(MetaAnnotationStore.class).getScopeModel(annotationType).isValid();
}
public boolean isStereotype(Class<? extends Annotation> annotationType)
{
- throw new UnsupportedOperationException("Not yet implemented");
+ return getServices().get(MetaAnnotationStore.class).getStereotype(annotationType).isValid();
}
public ELResolver getELResolver()
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/extensions/beanManager/BeanManagerTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/extensions/beanManager/BeanManagerTest.java 2009-08-15 11:03:12 UTC (rev 3504)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/extensions/beanManager/BeanManagerTest.java 2009-08-15 11:25:00 UTC (rev 3505)
@@ -101,28 +101,25 @@
getCurrentManager().validate(injectionPoint);
}
- @Test(groups = "ri-broken")
+ @Test
@SpecAssertion(section = "11.3.14", id = "aa")
- // WBRI-363
public void testDetermineBindingType()
{
assert getCurrentManager().isBindingType(Tame.class);
}
- @Test(groups = "ri-broken")
+ @Test()
@SpecAssertion(section = "11.3.14", id = "ab")
- // WBRI-363
public void testDetermineScopeType()
{
assert getCurrentManager().isScopeType(ApplicationScoped.class);
}
- @Test(groups = "ri-broken")
+ @Test
@SpecAssertion(section = "11.3.14", id = "ac")
- // WBRI-363
public void testDetermineStereotype()
{
- assert getCurrentManager().isBindingType(AnimalStereotype.class);
+ assert getCurrentManager().isStereotype(AnimalStereotype.class);
}
@Test(groups = "ri-broken")
More information about the weld-commits
mailing list