Author: pete.muir(a)jboss.org
Date: 2009-10-16 13:31:46 -0400 (Fri, 16 Oct 2009)
New Revision: 4151
Modified:
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/lifecycle/EnterpriseBeanLifecycleTest.java
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/typesafe/resolution/ResolutionByTypeTest.java
Log:
remove stub, readd tests
Modified:
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/lifecycle/EnterpriseBeanLifecycleTest.java
===================================================================
---
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/lifecycle/EnterpriseBeanLifecycleTest.java 2009-10-16
17:25:19 UTC (rev 4150)
+++
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/lifecycle/EnterpriseBeanLifecycleTest.java 2009-10-16
17:31:46 UTC (rev 4151)
@@ -148,16 +148,6 @@
assert interfaces.contains(NeueStadt.class);
assert interfaces.contains(GeschichtslosStadt.class);
}
-
- @Test(groups = { "enterpriseBeans", "clientProxy",
"lifecycle", "integration" })
- @SpecAssertions({
- @SpecAssertion(section = "7.3.3", id = "c")
- })
- public void testDestroyDiscardsSLSB() throws Exception
- {
- // stub for test
- assert false;
- }
@Test(groups = { "enterpriseBeans", "lifecycle",
"integration" })
@SpecAssertion(section = "3.9.2", id = "b")
Modified:
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/typesafe/resolution/ResolutionByTypeTest.java
===================================================================
---
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/typesafe/resolution/ResolutionByTypeTest.java 2009-10-16
17:25:19 UTC (rev 4150)
+++
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/typesafe/resolution/ResolutionByTypeTest.java 2009-10-16
17:31:46 UTC (rev 4151)
@@ -209,4 +209,38 @@
assert getCurrentManager().getBeans("crabSpider").size() == 0;
}
+
+ @Test
+ @SpecAssertion(section = "TBD", id = "TBD")
+ public void testBeanTypesOnManagedBean()
+ {
+ assert getBeans(Canary.class).size() == 1;
+ Set<Bean<Bird>> beans = getBeans(Bird.class);
+ Bean<Canary> bean = getUniqueBean(Canary.class);
+ assert getBeans(Bird.class).isEmpty();
+ assert bean.getTypes().size() == 1;
+ assert bean.getTypes().iterator().next().equals(Canary.class);
+ }
+
+ @Test
+ @SpecAssertion(section = "TBD", id = "TBD")
+ public void testBeanTypesOnProducerMethod()
+ {
+ assert getBeans(Parrot.class).size() == 1;
+ assert getBeans(Bird.class).isEmpty();
+ Bean<Parrot> bean = getUniqueBean(Parrot.class);
+ assert bean.getTypes().size() == 1;
+ assert bean.getTypes().iterator().next().equals(Parrot.class);
+ }
+
+ @Test
+ @SpecAssertion(section = "TBD", id = "TBD")
+ public void testBeanTypesOnProducerField()
+ {
+ assert getBeans(Dove.class).size() == 1;
+ assert getBeans(Bird.class).isEmpty();
+ Bean<Dove> bean = getUniqueBean(Dove.class);
+ assert bean.getTypes().size() == 1;
+ assert bean.getTypes().iterator().next().equals(Dove.class);
+ }
}