Author: pete.muir(a)jboss.org
Date: 2010-01-22 11:38:01 -0500 (Fri, 22 Jan 2010)
New Revision: 5588
Modified:
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/newBean/NewEnterpriseBeanTest.java
Log:
port r5414 to trunk
Modified:
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/newBean/NewEnterpriseBeanTest.java
===================================================================
---
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/newBean/NewEnterpriseBeanTest.java 2010-01-22
16:37:17 UTC (rev 5587)
+++
cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/newBean/NewEnterpriseBeanTest.java 2010-01-22
16:38:01 UTC (rev 5588)
@@ -41,7 +41,6 @@
@SpecVersion(spec="cdi", version="20091101")
public class NewEnterpriseBeanTest extends AbstractJSR299Test
{
- private Bean<WrappedEnterpriseBeanLocal> newEnterpriseBean;
private static final Annotation TAME_LITERAL = new AnnotationLiteral<Tame>()
{};
@@ -51,7 +50,7 @@
{
Set<Bean<WrappedEnterpriseBeanLocal>> beans =
getBeans(WrappedEnterpriseBeanLocal.class, WrappedEnterpriseBeanLocal.NEW);
assert beans.size() == 1;
- newEnterpriseBean = beans.iterator().next();
+ Bean<WrappedEnterpriseBeanLocal> newEnterpriseBean =
beans.iterator().next();
assert Dependent.class.equals(newEnterpriseBean.getScope());
}
@@ -61,7 +60,7 @@
{
Set<Bean<WrappedEnterpriseBeanLocal>> beans =
getBeans(WrappedEnterpriseBeanLocal.class, WrappedEnterpriseBeanLocal.NEW);
assert beans.size() == 1;
- newEnterpriseBean = beans.iterator().next();
+ Bean<WrappedEnterpriseBeanLocal> newEnterpriseBean =
beans.iterator().next();
assert newEnterpriseBean.getQualifiers().size() == 1;
assert
newEnterpriseBean.getQualifiers().iterator().next().annotationType().equals(New.class);
}
@@ -72,7 +71,7 @@
{
Set<Bean<WrappedEnterpriseBeanLocal>> beans =
getBeans(WrappedEnterpriseBeanLocal.class, WrappedEnterpriseBeanLocal.NEW);
assert beans.size() == 1;
- newEnterpriseBean = beans.iterator().next();
+ Bean<WrappedEnterpriseBeanLocal> newEnterpriseBean =
beans.iterator().next();
assert newEnterpriseBean.getName() == null;
}
Show replies by date