[webbeans-commits] Webbeans SVN: r2173 - tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/inheritance/specialization/simple.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Tue Mar 24 00:17:45 EDT 2009
Author: shane.bryzak at jboss.com
Date: 2009-03-24 00:17:45 -0400 (Tue, 24 Mar 2009)
New Revision: 2173
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/inheritance/specialization/simple/SimpleBeanSpecializationTest.java
Log:
minor
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/inheritance/specialization/simple/SimpleBeanSpecializationTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/inheritance/specialization/simple/SimpleBeanSpecializationTest.java 2009-03-24 04:14:12 UTC (rev 2172)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/inheritance/specialization/simple/SimpleBeanSpecializationTest.java 2009-03-24 04:17:45 UTC (rev 2173)
@@ -27,7 +27,10 @@
@SuppressWarnings("unchecked")
@Test
- @SpecAssertions( { @SpecAssertion(section = "4.3.1", id = "c"), @SpecAssertion(section = "3.2.7", id = "a") })
+ @SpecAssertions( {
+ @SpecAssertion(section = "4.3.1", id = "c"),
+ @SpecAssertion(section = "3.2.7", id = "a")
+ })
public void testSpecializingBeanHasBindingsOfSpecializedAndSpecializingBean()
{
assert getCurrentManager().resolveByType(Farmer.class, LANDOWNER_LITERAL).size() == 1;
@@ -38,16 +41,22 @@
}
@Test
- @SpecAssertions( { @SpecAssertion(section = "4.3.1", id = "d"), @SpecAssertion(section = "3.2.7", id = "a") })
+ @SpecAssertions( {
+ @SpecAssertion(section = "4.3.1", id = "d"),
+ @SpecAssertion(section = "3.2.7", id = "a")
+ })
public void testSpecializingBeanHasNameOfSpecializedBean()
{
assert getCurrentManager().resolveByType(Farmer.class, LANDOWNER_LITERAL).size() == 1;
assert getCurrentManager().resolveByType(Farmer.class, LANDOWNER_LITERAL).iterator().next().getTypes().contains(LazyFarmer.class);
- assert getCurrentManager().resolveByType(Farmer.class, LANDOWNER_LITERAL).iterator().next().getName().equals("farmer");
+ assert "farmer".equals(getCurrentManager().resolveByType(Farmer.class, LANDOWNER_LITERAL).iterator().next().getName());
}
@Test
- @SpecAssertions( { @SpecAssertion(section = "4.3.1", id = "f"), @SpecAssertion(section = "3.2.7", id = "b") })
+ @SpecAssertions( {
+ @SpecAssertion(section = "4.3.1", id = "f"),
+ @SpecAssertion(section = "3.2.7", id = "b")
+ })
public void testSpecializedBeanNotInstantiated() throws Exception
{
new RunInDependentContext()
More information about the weld-commits
mailing list