Author: pete.muir(a)jboss.org
Date: 2009-08-26 11:54:38 -0400 (Wed, 26 Aug 2009)
New Revision: 3595
Modified:
tck/trunk/api/src/main/java/org/jboss/jsr299/tck/spi/Beans.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/lifecycle/EnterpriseBeanLifecycleTest.java
Log:
Assertion has nothing to do with non-contextual ejbs!
Modified: tck/trunk/api/src/main/java/org/jboss/jsr299/tck/spi/Beans.java
===================================================================
--- tck/trunk/api/src/main/java/org/jboss/jsr299/tck/spi/Beans.java 2009-08-26 12:51:06
UTC (rev 3594)
+++ tck/trunk/api/src/main/java/org/jboss/jsr299/tck/spi/Beans.java 2009-08-26 15:54:38
UTC (rev 3595)
@@ -67,6 +67,7 @@
* @param localInterface The business interface of the bean proxy to return
* @return the EJB proxy from the container
*/
+ @Deprecated
public <T> T getEnterpriseBean(Class<? extends T> beanType, Class<T>
localInterface);
}
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/lifecycle/EnterpriseBeanLifecycleTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/lifecycle/EnterpriseBeanLifecycleTest.java 2009-08-26
12:51:06 UTC (rev 3594)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/lifecycle/EnterpriseBeanLifecycleTest.java 2009-08-26
15:54:38 UTC (rev 3595)
@@ -149,8 +149,8 @@
@SpecAssertion(section = "3.8.2", id = "b")
public void testInitializerMethodsCalledWithCurrentParameterValues()
{
- AlteStadt alteStadt =
this.getCurrentConfiguration().getBeans().getEnterpriseBean(Mainz.class,
AlteStadt.class);
- assert alteStadt != null : "Could not find the AlteStadt EJB";
+ AlteStadt alteStadt = getInstanceByType(AlteStadt.class);
+ assert alteStadt != null : "Could not find the AlteStadt bean";
assert alteStadt.getAnotherPlaceOfInterest() != null;
}
Show replies by date