[webbeans-commits] Webbeans SVN: r1613 - in tck/trunk/impl/src/main: java/org/jboss/jsr299/tck/integration/lookup/manager and 9 other directories.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-02-20 08:33:38 -0500 (Fri, 20 Feb 2009)
New Revision: 1613
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/lookup/byname/ResolutionByNameTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/lookup/manager/ManagerTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/lookup/non/contextual/NonContextualInjectionTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/inheritance/specialization/simple/broken/precedence/SpecializingBeanWithLowerPrecedenceTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/inheritance/specialization/simple/broken/two/TwoSpecializingBeansForOneSpecializedTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/byname/InstantiationByNameTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/byname/ResolutionByNameTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/byname/duplicateNameResolution/DuplicateNameResolutionTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/clientProxy/unknown/UnknownBeanTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/clientProxy/unproxyable/UnproxyableTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/typesafe/InstantiationByTypeTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/typesafe/ResolutionByTypeTest.java
tck/trunk/impl/src/main/resources/tck-audit.xml
Log:
Match section 5 tests
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/lookup/byname/ResolutionByNameTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/lookup/byname/ResolutionByNameTest.java 2009-02-20 07:47:34 UTC (rev 1612)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/lookup/byname/ResolutionByNameTest.java 2009-02-20 13:33:38 UTC (rev 1613)
@@ -1,7 +1,7 @@
package org.jboss.jsr299.tck.integration.lookup.byname;
+import org.hibernate.tck.annotations.SpecAssertion;
import org.jboss.jsr299.tck.AbstractDeclarativeTest;
-import org.hibernate.tck.annotations.SpecAssertion;
import org.testng.annotations.Test;
/**
@@ -12,13 +12,13 @@
public class ResolutionByNameTest extends AbstractDeclarativeTest
{
- @Test(groups={"stub", "el"}) @SpecAssertion(section="5.10", id = "unknown")
+ @Test(groups={"stub", "el"}) @SpecAssertion(section="5.10", id = "ab")
public void testELResolverRegisteredWithJsf()
{
assert false;
}
- @Test(groups={"stub", "el"}) @SpecAssertion(section="5.10", id = "unknown")
+ @Test(groups={"stub", "el"}) @SpecAssertion(section="5.10", id = "aa")
public void testELResolverRegisteredWithServlet()
{
assert false;
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/lookup/manager/ManagerTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/lookup/manager/ManagerTest.java 2009-02-20 07:47:34 UTC (rev 1612)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/lookup/manager/ManagerTest.java 2009-02-20 13:33:38 UTC (rev 1613)
@@ -1,13 +1,13 @@
package org.jboss.jsr299.tck.integration.lookup.manager;
+import org.hibernate.tck.annotations.SpecAssertion;
import org.jboss.jsr299.tck.AbstractDeclarativeTest;
-import org.hibernate.tck.annotations.SpecAssertion;
import org.testng.annotations.Test;
public class ManagerTest extends AbstractDeclarativeTest
{
@Test(groups = { "stub", "manager", "ejb3", "integration" })
- @SpecAssertion(section = "5.8", id = "unknown")
+ @SpecAssertion(section = "5.7.2", id = "b")
public void testManagerLookupInJndi()
{
assert false;
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/lookup/non/contextual/NonContextualInjectionTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/lookup/non/contextual/NonContextualInjectionTest.java 2009-02-20 07:47:34 UTC (rev 1612)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/lookup/non/contextual/NonContextualInjectionTest.java 2009-02-20 13:33:38 UTC (rev 1613)
@@ -1,7 +1,7 @@
package org.jboss.jsr299.tck.integration.lookup.non.contextual;
+import org.hibernate.tck.annotations.SpecAssertion;
import org.jboss.jsr299.tck.AbstractDeclarativeTest;
-import org.hibernate.tck.annotations.SpecAssertion;
import org.testng.annotations.Test;
/**
@@ -20,7 +20,7 @@
* 3.3.6, "Session beans with the @New binding".
*/
@Test(groups = { "stub", "integration" })
- @SpecAssertion(section = "5.12.1", id = "unknown")
+ @SpecAssertion(section = "5.12.1", id = "p")
public void testNonContextualSessionBeanSpecializesNewBeanForInjection()
{
assert false;
@@ -34,7 +34,7 @@
* decorator stacks for these instances.
*/
@Test(groups = { "stub", "integration" })
- @SpecAssertion(section = "5.12.1", id = "unknown")
+ @SpecAssertion(section = "5.12.1", id = "q")
public void testNonContextualSessionBeanSpecializesNewBeanForInterceptorStack()
{
assert false;
@@ -48,7 +48,7 @@
* decorator stacks for these instances.
*/
@Test(groups = { "stub", "integration" })
- @SpecAssertion(section = "5.12.1", id = "unknown")
+ @SpecAssertion(section = "5.12.1", id = "r")
public void testNonContextualSessionBeanSpecializesNewBeanForDecoratorStack()
{
assert false;
@@ -64,7 +64,7 @@
* class annotations.
*/
@Test(groups = { "stub", "integration" })
- @SpecAssertion(section = "5.12.2", id = "unknown")
+ @SpecAssertion(section = "5.12.2", id = "a")
public void testInjectionIntoMessageDrivenBean()
{
assert false;
@@ -77,7 +77,7 @@
* annotations.
*/
@Test(groups = { "stub", "integration" })
- @SpecAssertion(section = "5.12.3", id = "unknown")
+ @SpecAssertion(section = "5.12.3", id = "a")
public void testInjectionIntoServlet()
{
assert false;
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/inheritance/specialization/simple/broken/precedence/SpecializingBeanWithLowerPrecedenceTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/inheritance/specialization/simple/broken/precedence/SpecializingBeanWithLowerPrecedenceTest.java 2009-02-20 07:47:34 UTC (rev 1612)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/inheritance/specialization/simple/broken/precedence/SpecializingBeanWithLowerPrecedenceTest.java 2009-02-20 13:33:38 UTC (rev 1613)
@@ -2,6 +2,7 @@
import javax.inject.InconsistentSpecializationException;
+import org.hibernate.tck.annotations.SpecAssertion;
import org.jboss.jsr299.tck.impl.packaging.Artifact;
import org.jboss.jsr299.tck.impl.packaging.ExpectedDeploymentException;
import org.testng.annotations.Test;
@@ -11,6 +12,7 @@
public class SpecializingBeanWithLowerPrecedenceTest
{
@Test
+ @SpecAssertion(section="4.3.3", id="a")
public void testSpecializingBeanDoesNotHaveHigherPrecedenceThanSpecializedBean()
{
}
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/inheritance/specialization/simple/broken/two/TwoSpecializingBeansForOneSpecializedTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/inheritance/specialization/simple/broken/two/TwoSpecializingBeansForOneSpecializedTest.java 2009-02-20 07:47:34 UTC (rev 1612)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/inheritance/specialization/simple/broken/two/TwoSpecializingBeansForOneSpecializedTest.java 2009-02-20 13:33:38 UTC (rev 1613)
@@ -2,6 +2,7 @@
import javax.inject.InconsistentSpecializationException;
+import org.hibernate.tck.annotations.SpecAssertion;
import org.jboss.jsr299.tck.impl.packaging.Artifact;
import org.jboss.jsr299.tck.impl.packaging.ExpectedDeploymentException;
import org.testng.annotations.Test;
@@ -11,6 +12,7 @@
public class TwoSpecializingBeansForOneSpecializedTest
{
@Test
+ @SpecAssertion(section="4.3.3", id="a")
public void testTwoBeansSpecializeTheSameBean()
{
}
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/byname/InstantiationByNameTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/byname/InstantiationByNameTest.java 2009-02-20 07:47:34 UTC (rev 1612)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/byname/InstantiationByNameTest.java 2009-02-20 13:33:38 UTC (rev 1613)
@@ -1,10 +1,7 @@
package org.jboss.jsr299.tck.unit.lookup.byname;
-import javax.inject.AmbiguousDependencyException;
-import javax.inject.manager.Bean;
-
-import org.jboss.jsr299.tck.AbstractDeclarativeTest;
import org.hibernate.tck.annotations.SpecAssertion;
+import org.jboss.jsr299.tck.AbstractDeclarativeTest;
import org.testng.annotations.Test;
/**
@@ -15,7 +12,7 @@
public class InstantiationByNameTest extends AbstractDeclarativeTest
{
- @Test(groups={"underInvestigation", "resolution", "el"}) @SpecAssertion(section="5.10", id = "unknown")
+ @Test(groups={"underInvestigation", "resolution", "el"}) @SpecAssertion(section="5.10", id = "f")
//TODO Need to find a way to intercept calls to the manager to verify this condition
public void testGetInstanceByNameCalledOncePerDistinctNameInElExpression()
{
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/byname/ResolutionByNameTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/byname/ResolutionByNameTest.java 2009-02-20 07:47:34 UTC (rev 1612)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/byname/ResolutionByNameTest.java 2009-02-20 13:33:38 UTC (rev 1613)
@@ -1,6 +1,7 @@
package org.jboss.jsr299.tck.unit.lookup.byname;
import org.hibernate.tck.annotations.SpecAssertion;
+import org.hibernate.tck.annotations.SpecAssertions;
import org.jboss.jsr299.tck.AbstractDeclarativeTest;
import org.jboss.jsr299.tck.impl.packaging.Artifact;
import org.jboss.jsr299.tck.impl.packaging.jsr299.BeansXml;
@@ -16,22 +17,11 @@
public class ResolutionByNameTest extends AbstractDeclarativeTest
{
- /**
- * The getInstanceByName() method must:
- *
- * � Identify the Web Bean by calling Manager.resolveByName(), passing the
- * name.
- *
- * � If resolveByName() returned an empty set, return a null value.
- *
- * � Otherwise, if exactly one Web Bean was returned, obtain an instance of
- * the Web Bean by calling Manager.getInstance(), passing the Bean instance
- * representing the Web Bean
- *
- * @throws Exception
- */
@Test(groups = { "resolution", "el" })
- @SpecAssertion(section = "5.10", id = "unknown")
+ @SpecAssertions({
+ @SpecAssertion(section = "5.10", id = "d"),
+ @SpecAssertion(section = "5.10", id = "c")
+ })
public void testELResolver() throws Exception
{
new RunInDependentContext()
@@ -40,6 +30,7 @@
@Override
protected void execute() throws Exception
{
+ assert getCurrentManager().resolveByName("nonexistant").size() == 0;
assert getCurrentManager().getInstanceByName("nonexistant") == null;
assert getCurrentManager().getInstanceByName("salmon") instanceof Salmon;
}
@@ -61,7 +52,7 @@
* @throws Exception
*/
@Test(groups = { "resolution", "el" })
- @SpecAssertion(section = "5.11", id = "unknown")
+ @SpecAssertion(section = "5.11", id = "c")
public void testOnlyHighestPrecedenceResolved() throws Exception
{
// Both Cod and Plaice are named "whitefish" - Plaice has the highest
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/byname/duplicateNameResolution/DuplicateNameResolutionTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/byname/duplicateNameResolution/DuplicateNameResolutionTest.java 2009-02-20 07:47:34 UTC (rev 1612)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/byname/duplicateNameResolution/DuplicateNameResolutionTest.java 2009-02-20 13:33:38 UTC (rev 1613)
@@ -39,7 +39,7 @@
* @throws Exception
*/
@Test(groups = { "resolution", "el" }, expectedExceptions = AmbiguousDependencyException.class)
- @SpecAssertion(section = "5.10", id = "unknown")
+ @SpecAssertion(section = "5.10", id = "e")
public void testDuplicateNamedBeans() throws Exception
{
new RunInDependentContext()
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/clientProxy/unknown/UnknownBeanTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/clientProxy/unknown/UnknownBeanTest.java 2009-02-20 07:47:34 UTC (rev 1612)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/clientProxy/unknown/UnknownBeanTest.java 2009-02-20 13:33:38 UTC (rev 1613)
@@ -1,8 +1,8 @@
package org.jboss.jsr299.tck.unit.lookup.clientProxy.unknown;
import javax.inject.DefinitionException;
-import javax.inject.manager.Bean;
+import org.hibernate.tck.annotations.SpecAssertion;
import org.jboss.jsr299.tck.AbstractDeclarativeTest;
import org.jboss.jsr299.tck.impl.packaging.Artifact;
import org.testng.annotations.Test;
@@ -12,6 +12,7 @@
{
//TODO What is this trying to test, and where in the spec is the assertion?
@Test(groups = {"configuration().getBeans()", "broken"}, expectedExceptions=DefinitionException.class)
+ @SpecAssertion(id="review", section="review")
public void testGettingUnknownBeanFails() {
// Bean<Tuna> tunaBean = manager.resolveByType(Tuna.class).iterator().next();
// @SuppressWarnings("unused")
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/clientProxy/unproxyable/UnproxyableTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/clientProxy/unproxyable/UnproxyableTest.java 2009-02-20 07:47:34 UTC (rev 1612)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/clientProxy/unproxyable/UnproxyableTest.java 2009-02-20 13:33:38 UTC (rev 1613)
@@ -17,8 +17,6 @@
@SpecAssertion(section = "5.4.1", id = "e")
public void testInjectionPointWithUnproxyableTypeWhichResolvesToNormalScopedWebBean()
{
- @SuppressWarnings("unused")
- FinalTuna_Broken tuna = getCurrentManager().getInstanceByType(FinalTuna_Broken.class);
}
}
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/typesafe/InstantiationByTypeTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/typesafe/InstantiationByTypeTest.java 2009-02-20 07:47:34 UTC (rev 1612)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/typesafe/InstantiationByTypeTest.java 2009-02-20 13:33:38 UTC (rev 1613)
@@ -11,8 +11,8 @@
import javax.inject.UnsatisfiedDependencyException;
import javax.inject.manager.Bean;
+import org.hibernate.tck.annotations.SpecAssertion;
import org.jboss.jsr299.tck.AbstractDeclarativeTest;
-import org.hibernate.tck.annotations.SpecAssertion;
import org.jboss.jsr299.tck.literals.CurrentBinding;
import org.testng.annotations.Test;
@@ -33,7 +33,7 @@
}
@Test(groups={"resolution", "beanLifecycle"})
- @SpecAssertion(section="5.8", id = "unknown")
+ @SpecAssertion(section="5.7.2", id = "h")
public void testCurrentBindingTypeAssumed()
{
Bean<Tuna> tunaBean = createSimpleBean(Tuna.class);
@@ -42,14 +42,14 @@
}
@Test(groups="resolution", expectedExceptions=IllegalArgumentException.class)
- @SpecAssertion(section="5.8", id = "unknown")
+ @SpecAssertion(section="5.7.2", id = "ib")
public void testParameterizedTypeWithWildcardParameter()
{
getCurrentManager().getInstanceByType(new TypeLiteral<ParameterizedBean_Broken<?>>(){});
}
@Test(groups="resolution", expectedExceptions=IllegalArgumentException.class)
- @SpecAssertion(section="5.8", id = "unknown")
+ @SpecAssertion(section="5.7.2", id = "ia")
public <T> void testParameterizedTypeWithTypeParameter()
{
getCurrentManager().getInstanceByType(new TypeLiteral<ParameterizedBean_Broken<T>>(){});
@@ -57,21 +57,21 @@
@Test(groups="resolution", expectedExceptions=DuplicateBindingTypeException.class)
- @SpecAssertion(section="5.8", id = "unknown")
+ @SpecAssertion(section="5.7.2", id = "j")
public void testDuplicateBindingTypesUsed()
{
getCurrentManager().getInstanceByType(Tuna.class, new CurrentBinding(), new CurrentBinding());
}
@Test(groups="resolution", expectedExceptions=IllegalArgumentException.class)
- @SpecAssertion(section="5.8", id = "unknown")
+ @SpecAssertion(section="5.7.2", id = "k")
public void testNonBindingTypeUsed()
{
getCurrentManager().getInstanceByType(Tuna.class, new AnotherDeploymentTypeLiteral());
}
@Test(expectedExceptions=AmbiguousDependencyException.class)
- @SpecAssertion(section="5.8", id = "unknown")
+ @SpecAssertion(section="5.7.2", id = "n")
public void testAmbiguousDependencies() throws Exception
{
Bean<Cod> codBean = createSimpleBean(Cod.class);
@@ -84,7 +84,7 @@
}
@Test(expectedExceptions=UnsatisfiedDependencyException.class)
- @SpecAssertion(section="5.8", id = "unknown")
+ @SpecAssertion(section="5.7.2", id = "m")
public void testUnsatisfiedDependencies() throws Exception
{
deployBeans(Cod.class, Salmon.class, Sole.class);;
@@ -92,7 +92,7 @@
}
@Test(expectedExceptions=UnproxyableDependencyException.class)
- @SpecAssertion(section="5.8", id = "unknown")
+ @SpecAssertion(section="outdated", id = "outdated")
public void testUnproxyableDependencies() throws Exception
{
deployBeans(FinalTuna_Broken.class);
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/typesafe/ResolutionByTypeTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/typesafe/ResolutionByTypeTest.java 2009-02-20 07:47:34 UTC (rev 1612)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/lookup/typesafe/ResolutionByTypeTest.java 2009-02-20 13:33:38 UTC (rev 1613)
@@ -34,7 +34,10 @@
}
@Test(groups="resolution")
- @SpecAssertion(section="5.9", id = "unknown")
+ @SpecAssertions({
+ @SpecAssertion(section="5.9", id = "b"),
+ @SpecAssertion(section="5.9", id = "ga")
+ })
public void testDefaultBindingTypeAssumed() throws Exception
{
Bean<Tuna> tunaBean = createSimpleBean(Tuna.class);
@@ -45,35 +48,35 @@
}
@Test(groups="resolution", expectedExceptions=IllegalArgumentException.class)
- @SpecAssertion(section="5.9", id = "unknown")
+ @SpecAssertion(section="5.9", id = "cb")
public void testParameterizedTypeWithWildcardParameter()
{
getCurrentManager().resolveByType(new TypeLiteral<ParameterizedBean_Broken<?>>(){});
}
@Test(groups="resolution", expectedExceptions=IllegalArgumentException.class)
- @SpecAssertion(section="5.9", id = "unknown")
+ @SpecAssertion(section="5.9", id = "ca")
public <T> void testParameterizedTypeWithTypeParameter()
{
getCurrentManager().resolveByType(new TypeLiteral<ParameterizedBean_Broken<T>>(){});
}
@Test(groups="resolution", expectedExceptions=DuplicateBindingTypeException.class)
- @SpecAssertion(section="5.9", id = "unknown")
+ @SpecAssertion(section="5.9", id = "d")
public void testDuplicateBindingTypesUsed()
{
getCurrentManager().resolveByType(Tuna.class, new CurrentBinding(), new CurrentBinding());
}
@Test(groups="resolution", expectedExceptions=IllegalArgumentException.class)
- @SpecAssertion(section="5.9", id = "unknown")
+ @SpecAssertion(section="5.9", id = "e")
public void testNonBindingTypeUsed()
{
getCurrentManager().resolveByType(Tuna.class, new AnotherDeploymentTypeLiteral());
}
@Test(groups="resolution")
- @SpecAssertion(section="5.9", id = "unknown")
+ @SpecAssertion(section="5.9", id = "a")
public void testResolveByType() throws Exception
{
Bean<Tuna> tunaBean = createSimpleBean(Tuna.class);
@@ -101,7 +104,7 @@
@Test(groups="injection")
@SpecAssertions({
@SpecAssertion(section = "2.3.5", id = "b"),
- @SpecAssertion(section = "5.9.2", id = "unknown")
+ @SpecAssertion(section = "5.9.2", id = "gb")
})
public void testAllBindingTypesSpecifiedForResolutionMustAppearOnWebBean()
{
@@ -136,7 +139,7 @@
}
@Test(groups="resolution")
- @SpecAssertion(section="5.9", id = "unknown")
+ @SpecAssertion(section="5.9", id = "fd")
public void testResolveByTypeWithTypeParameter() throws Exception
{
Bean<ScottishFishFarmer> scottishFishFarmerBean = createSimpleBean(ScottishFishFarmer.class);
@@ -150,7 +153,7 @@
}
@Test(groups={"resolution", "producerMethod"})
- @SpecAssertion(section="5.9", id = "unknown")
+ @SpecAssertion(section="5.9", id = "fc")
public void testResolveByTypeWithArray() throws Exception
{
Bean<SpiderProducer> spiderProducerBean = createSimpleBean(SpiderProducer.class);
@@ -165,7 +168,7 @@
assert getCurrentManager().resolveByType(Spider[].class).size() == 1;
}
- @Test @SpecAssertion(section="5.9", id = "unknown")
+ @Test @SpecAssertion(section="5.9", id = "ha")
public void testOnlyHighestEnabledPrecedenceWebBeansResolved() throws Exception
{
Bean<Cod> codBean = createSimpleBean(Cod.class);
@@ -184,7 +187,7 @@
@Test(groups="resolution")
- @SpecAssertion(section="5.9", id = "unknown")
+ @SpecAssertion(section="5.9", id = "hb")
public void testNoWebBeansFound() throws Exception
{
deployBeans(Salmon.class, Sole.class, Plaice.class);
@@ -192,7 +195,11 @@
}
@Test(groups="resolution")
- @SpecAssertion(section="5.9.1", id = "unknown")
+ @SpecAssertions({
+ @SpecAssertion(section="5.9.1", id = "b"),
+ @SpecAssertion(section="5.9", id = "gc"),
+ @SpecAssertion(section="5.9", id = "gd")
+ })
public void testResolveByTypeWithNonBindingMembers() throws Exception
{
Bean<Halibut> halibutBean = createSimpleBean(Halibut.class);
@@ -222,7 +229,7 @@
}
@Test(groups="resolution", expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="5.9.1", id = "unknown")
+ @SpecAssertion(section="5.9.1", id = "ca")
public void testArrayValuedAnnotationMemberWithoutNonBinding()
{
getCurrentManager().resolveByType(Animal.class, new BindingTypeWithBindingArrayTypeMemberLiteral_Broken() {
@@ -236,7 +243,7 @@
}
@Test(groups="resolution", expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="5.9.1", id = "unknown")
+ @SpecAssertion(section="5.9.1", id = "cb")
public void testAnnotationValuedAnnotationMemberWithoutNonBinding()
{
getCurrentManager().resolveByType(Animal.class, new BindingTypeWithBindingAnnotationMemberLiteral_Broken()
Modified: tck/trunk/impl/src/main/resources/tck-audit.xml
===================================================================
--- tck/trunk/impl/src/main/resources/tck-audit.xml 2009-02-20 07:47:34 UTC (rev 1612)
+++ tck/trunk/impl/src/main/resources/tck-audit.xml 2009-02-20 13:33:38 UTC (rev 1613)
@@ -1,4 +1,7 @@
-<specification xmlns="http://jboss.com/products/webbeans/tck/audit"
+<specification
+ xmlns="http://jboss.com/products/webbeans/tck/audit"
+ xmlns:xsi="http://jboss.com/products/webbeans/tck/audit http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://jboss.com/products/webbeans/tck/audit file:///Users/pmuir/workspace/hibernate-validator-parent/tck-utils/api/src/main/resources/tck-audit.xsd"
name="JSR-299: Java Contexts and Dependency Injection"
version="Revised Public Review Draft">
@@ -105,10 +108,15 @@
</section>
<section id="2.3.2" title="Defining new binding types">
- <assertion id="a">
- <text>A binding type is a Java annotation defined as @Target({METHOD, FIELD, PARAMETER, TYPE}) and @Retention(RUNTIME).</text>
+ <assertion id="aa">
+ <text>A binding type is a Java annotation defined as @Target({METHOD, FIELD, PARAMETER, TYPE})~ and @Retention(RUNTIME)~.</text>
</assertion>
+ <assertion id="ab" testable="false">
+ <text>A binding type is a Java annotation defined as ~@Target({METHOD, FIELD, PARAMETER, TYPE}) and ~@Retention(RUNTIME).</text>
+ <note>Non-runtime retention annotations are discarded by the compiler</note>
+ </assertion>
+
<assertion id="b">
<text>A binding type may be declared by specifying the @javax.inject.BindingType meta-annotation</text>
</assertion>
@@ -226,10 +234,17 @@
</section>
<section id="2.4.2" title="Defining new scope types">
- <assertion id="a">
- <text>A scope type is a Java annotation defined as @Target({TYPE, METHOD, FIELD}) and @Retention(RUNTIME)</text>
+ <assertion id="aa">
+ <text>A scope type is a Java annotation defined as @Target({TYPE, METHOD, FIELD})~ and @Retention(RUNTIME)Z</text>
</assertion>
+ <assertion id="ab" testable="false">
+ <text>A scope type is a Java annotation defined as ~@Target({TYPE, METHOD, FIELD}) and ~@Retention(RUNTIME)</text>
+ <note>Non-runtime retention annotations are discarded by the compiler</note>
+ </assertion>
+
+
+
<assertion id="b">
<text>All scope types must specify the @javax.context.ScopeType meta-annotation</text>
</assertion>
@@ -314,8 +329,9 @@
<text>A deployment type is a Java annotation defined as @Target({TYPE, METHOD, FIELD})</text>
</assertion>
- <assertion id="b">
+ <assertion id="bb" testable="false">
<text>A deployment type is a Java annotation defined with @Retention(RUNTIME)</text>
+ <note>Non-runtime retention annotations are discarded by the compiler</note>
</assertion>
<assertion id="c">
@@ -510,10 +526,29 @@
</section>
<section id="2.7.1" title="Defining new stereotypes">
- <assertion id="a">
- <text>A beans stereotype is a Java annotation defined as @Target({TYPE, METHOD, FIELD}), @Target(TYPE), @Target(METHOD), @Target(FIELD) or @Target({METHOD, FIELD}) and @Retention(RUNTIME)</text>
+ <assertion id="aa">
+ <text>A beans stereotype is a Java annotation defined as @Target({TYPE, METHOD, FIELD})~, @Target(TYPE), @Target(METHOD), @Target(FIELD) or @Target({METHOD, FIELD}) and @Retention(RUNTIME)~</text>
</assertion>
+ <assertion id="ab">
+ <text>A beans stereotype is a Java annotation defined as ~@Target({TYPE, METHOD, FIELD}),~ @Target(TYPE)~, @Target(METHOD), @Target(FIELD) or @Target({METHOD, FIELD}) and @Retention(RUNTIME)~</text>
+ </assertion>
+
+ <assertion id="ac">
+ <text>A beans stereotype is a Java annotation defined as ~@Target({TYPE, METHOD, FIELD}), @Target(TYPE), @Target(METHOD), ~@Target(FIELD) ~or @Target({METHOD, FIELD}) and @Retention(RUNTIME)~</text>
+ </assertion>
+
+ <assertion id="ad">
+ <text>A beans stereotype is a Java annotation defined as ~@Target({TYPE, METHOD, FIELD}), @Target(TYPE), @Target(METHOD), @Target(FIELD) or~ @Target({METHOD, FIELD})~ and @Retention(RUNTIME)~</text>
+ </assertion>
+
+ <assertion id="ae" testable="false">
+ <text>A beans stereotype is a Java annotation defined as ~@Target({TYPE, METHOD, FIELD}), @Target(TYPE), @Target(METHOD), @Target(FIELD) or @Target({METHOD, FIELD}) and~ @Retention(RUNTIME)</text>
+ <note>Non-runtime retention annotations are discarded by the compiler</note>
+ </assertion>
+
+
+
<assertion id="b">
<text>A stereotype may be declared by specifying the @javax.annotation.Stereotype meta-annotation</text>
</assertion>
@@ -586,7 +621,7 @@
<text>Stereotype declarations are transitive - a stereotype declared by a second stereotype is inherited by all beans and other stereotypes that declare the second stereotype</text>
</assertion>
- <assertion id="c">
+ <assertion id="c" >
<text>Stereotypes declared @Target(TYPE) may not be applied to stereotypes declared @Target({TYPE, METHOD, FIELD})</text>
</assertion>
@@ -601,6 +636,7 @@
<assertion id="f">
<text>Stereotypes declared @Target(TYPE) may not be applied to stereotypes declared @Target({METHOD, FIELD})</text>
</assertion>
+
</section>
<section id="2.7.2" title="Declaring the stereotypes for a bean using annotations">
@@ -2207,8 +2243,9 @@
<text>Even if the lower-priority bean defines a producer method, the method will be called upon an instance of the specializing bean</text>
</assertion>
- <assertion id="h">
+ <assertion id="h" testable="false">
<text>Specialization applies only to simple beans, as defined in Section 3.2.7, "Specializing a simple bean", session beans, as defined in Section 3.3.7, "Specializing a session bean" and producer methods, as defined in Section 3.4.5, "Specializing a producer method".</text>
+ <note>This is a statement of intent</note>
</assertion>
</section>
@@ -2600,10 +2637,14 @@
<text>If no bindings are passed to Manager.getInstanceByType(), the default binding @Current is assumed</text>
</assertion>
- <assertion id="i">
- <text>If a parameterized type with a type parameter or wildcard is passed to resolveByType(), an IllegalArgumentException is thrown</text>
+ <assertion id="ia">
+ <text>If a parameterized type with a type parameter ~or wildcard~ is passed to resolveByType(), an IllegalArgumentException is thrown</text>
</assertion>
+ <assertion id="ib">
+ <text>If a parameterized type with a ~type parameter or~ wildcard is passed to resolveByType(), an IllegalArgumentException is thrown</text>
+ </assertion>
+
<assertion id="j">
<text>If two instances of the same binding type are passed to getInstanceByType(), a DuplicateBindingTypeException is thrown</text>
</assertion>
@@ -2708,16 +2749,21 @@
<section id="5.9" title="Typesafe resolution algorithm">
<assertion id="a">
<text>The resolveByType() method of the Manager interface returns the result of the typesafe resolution</text>
+ <note>Here we just do a general test that resolveByType() is producing sensible results</note>
</assertion>
<assertion id="b">
<text>If no bindings are passed to Manager.resolveByType(), the default binding @Current is assumed</text>
</assertion>
- <assertion id="c">
- <text>If a parameterized type with a type parameter or wildcard is passed to Manager.resolveByType(), an IllegalArgumentException is thrown</text>
+ <assertion id="ca">
+ <text>If a parameterized type with a type parameter ~or wildcard~ is passed to Manager.resolveByType(), an IllegalArgumentException is thrown</text>
</assertion>
+ <assertion id="cb">
+ <text>If a parameterized type with a ~type parameter or~ wildcard is passed to Manager.resolveByType(), an IllegalArgumentException is thrown</text>
+ </assertion>
+
<assertion id="d">
<text>If two instances of the same binding type are passed to Manager.resolveByType(), a DuplicateBindingTypeException is thrown</text>
</assertion>
@@ -2726,31 +2772,65 @@
<text>If an instance of an annotation that is not a binding type is passed to Manager.resolveByType(), an IllegalArgumentException is thrown</text>
</assertion>
- <assertion id="f">
- <text>When the container is resolving a bean by type, it identifies the set of matching enabled beans which have the given bean type. For this purpose, primitive types are considered to be identical to their corresponding wrapper types in java.lang, array types are considered identical only if their element types are identical and parameterized types are considered identical only if both the type and all type parameters are identical</text>
+ <assertion id="fa">
+ <text>When the container is resolving a bean by type, it identifies the set of matching enabled beans which have the given bean type.</text>
</assertion>
- <assertion id="g">
- <text>When the container is resolving a bean by type, it considers the given bindings. If no bindings were passed to resolveByType(), the container assumes the binding @Current. The container narrows the set of matching beans to just those where for each given binding, the bean declares a binding with (a) the same type and (b) the same annotation member value for each member which is not annotated @NonBinding (see Section 5.9.1, "Binding annotations with members")</text>
+ <assertion id="fb">
+ <text>When the container is resolving a bean by type~, it identifies the set of matching enabled beans which have the given bean type~. For this purpose, primitive types are considered to be identical to their corresponding wrapper types in java.lang~, array types are considered identical only if their element types are identical and parameterized types are considered identical only if both the type and all type parameters are identical~</text>
</assertion>
- <assertion id="h">
- <text>When the container is resolving a bean by type, it examines the deployment types of the matching beans, as defined in Section 2.5.7, "Deployment type precedence", and returns the set of beans with the highest precedence deployment type that occurs in the set. If there are no matching beans, an empty set is returned</text>
+ <assertion id="fc">
+ <text>When the container is resolving a bean by type~, it identifies the set of matching enabled beans which have the given bean type~. For this purpose, ~primitive types are considered to be identical to their corresponding wrapper types in java.lang,~ array types are considered identical only if their element types are identical~ and parameterized types are considered identical only if both the type and all type parameters are identical~</text>
</assertion>
+
+ <assertion id="fd">
+ <text>When the container is resolving a bean by type~, it identifies the set of matching enabled beans which have the given bean type~. For this purpose, ~primitive types are considered to be identical to their corresponding wrapper types in java.lang, array types are considered identical only if their element types are identical and~ parameterized types are considered identical only if both the type and all type parameters are identical</text>
+ </assertion>
+
+ <assertion id="ga">
+ <text>When the container is resolving a bean by type, it considers the given bindings. _If no bindings were passed to resolveByType(), the container assumes the binding @Current_. </text>
+ </assertion>
+
+ <assertion id="gb">
+ <text>When the container is resolving a bean by type, it considers the given bindings. ~If no bindings were passed to resolveByType(), the container assumes the binding @Current~. The container narrows the set of matching beans to just those where for each given binding, the bean declares a binding with _(a) the same type_ and (b) the same annotation member value for each member which is not annotated @NonBinding (see Section 5.9.1, "Binding annotations with members")</text>
+ </assertion>
+
+ <assertion id="gc">
+ <text>When the container is resolving a bean by type, it considers the given bindings. ~If no bindings were passed to resolveByType(), the container assumes the binding @Current~. The container narrows the set of matching beans to just those where for each given binding, the bean declares a binding with (a) the same type and _(b) the same annotation member value for each member_ which is not annotated @NonBinding (see Section 5.9.1, "Binding annotations with members")</text>
+ </assertion>
+
+ <assertion id="gd">
+ <text>When the container is resolving a bean by type, it considers the given bindings. ~If no bindings were passed to resolveByType(), the container assumes the binding @Current~. The container narrows the set of matching beans to just those where for each given binding, the bean declares a binding with (a) the same type and (b) the same annotation member value for each member which is _not annotated @NonBinding_ (see Section 5.9.1, "Binding annotations with members")</text>
+ </assertion>
+
+ <assertion id="ha">
+ <text>When the container is resolving a bean by type, it examines the deployment types of the matching beans, as defined in Section 2.5.7, "Deployment type precedence", and returns the set of beans with the highest precedence deployment type that occurs in the set.</text>
+ </assertion>
+
+ <assertion id="hb">
+ <text>When the container is resolving a bean by type, it examines the deployment types of the matching beans, as defined in Section 2.5.7, "Deployment type precedence", and returns the set of beans with the highest precedence deployment type that occurs in the set. _If there are no matching beans, an empty set is returned_</text>
+ </assertion>
+
</section>
<section id="5.9.1" title="Binding annotations with members">
- <assertion id="a">
+ <assertion id="a" testable="false">
<text>Binding types with members are supported</text>
+ <note>A statement of intent</note>
</assertion>
<assertion id="b">
<text>An annotation member may be excluded from consideration using the @NonBinding annotation</text>
</assertion>
- <assertion id="c">
- <text>Array-valued or annotation-valued members of a binding type must be annotated @NonBinding. If an array-valued or annotation-valued member of a binding type is not annotated @NonBinding, a DefinitionException is thrown by the container at deployment time</text>
+ <assertion id="ca">
+ <text>Array-valued ~or annotation-valued~ members of a binding type must be annotated @NonBinding. If an array-valued ~or annotation-valued~ member of a binding type is not annotated @NonBinding, a DefinitionException is thrown by the container at deployment time</text>
</assertion>
+
+ <assertion id="cb">
+ <text>~Array-valued or ~annotation-valued members of a binding type must be annotated @NonBinding. If an ~array-valued or ~annotation-valued member of a binding type is not annotated @NonBinding, a DefinitionException is thrown by the container at deployment time</text>
+ </assertion>
</section>
<section id="5.9.2" title="Multiple bindings">
@@ -2772,10 +2852,17 @@
</section>
<section id="5.10" title="EL name resolution">
- <assertion id="a" testable="false">
- <text>The container must provide a Unified EL ELResolver to the servlet engine and JSF implementation that resolves bean names</text>
+
+ <assertion id="aa">
+ <text>The container must provide a Unified EL ELResolver to the servlet engine ~and JSF implementation~ that resolves bean names</text>
+ <note>This is testable implicitly by trying to resolve using EL from a servlet</note>
</assertion>
+ <assertion id="ab">
+ <text>The container must provide a Unified EL ELResolver to the ~servlet engine~ and JSF implementation that resolves bean names</text>
+ <note>This is testable implicitly by trying to resolve using EL from a JSF view</note>
+ </assertion>
+
<assertion id="b">
<text>When this resolver is called with a null base object, it calls the method Manager.getInstanceByName() to obtain an instance of the bean named in the EL expression</text>
</assertion>
@@ -2798,6 +2885,7 @@
<assertion id="f">
<text>For each distinct name that appears in the EL expression, getInstanceByName() must be called at most once</text>
+ <note>This is surely part of e?!</note>
</assertion>
<assertion id="g">
@@ -2825,9 +2913,10 @@
</section>
<section id="5.12" title="Injection into non-contextual objects">
- <assertion id="a">
+ <assertion id="a" testable="false">
<text>The container is required to perform dependency injection upon certain non-contextual objects</text>
- </assertion>
+ <note>This is a statement of intent</note>
+ </assertion>
</section>
<section id="5.12.1" title="Non-contextual instances of session beans">
@@ -2948,15 +3037,16 @@
</assertion>
<assertion id="d">
- <text>An event binding type is a Java annotation defined as[@Target({FIELD, PARAMETER})] or @Target({METHOD, FIELD, PARAMETER, TYPE}) and @Retention(RUNTIME)</text>
+ <text>An event binding type is a Java annotation defined as @Target({FIELD, PARAMETER}) ~or @Target({METHOD, FIELD, PARAMETER, TYPE}) and @Retention(RUNTIME)~</text>
</assertion>
<assertion id="e">
- <text>An event binding type is a Java annotation defined as @Target({FIELD, PARAMETER}) or [@Target({METHOD, FIELD, PARAMETER, TYPE})] and @Retention(RUNTIME)</text>
+ <text>An event binding type is a Java annotation defined as ~@Target({FIELD, PARAMETER}) or~ @Target({METHOD, FIELD, PARAMETER, TYPE}) ~and @Retention(RUNTIME)~</text>
</assertion>
-
- <assertion id="f">
- <text>An event binding type is a Java annotation defined as @Target({FIELD, PARAMETER}) or @Target({METHOD, FIELD, PARAMETER, TYPE}) and [@Retention(RUNTIME)]</text>
+
+ <assertion id="f" testable="false">
+ <text>An event binding type is a Java annotation defined as ~@Target({FIELD, PARAMETER}) or @Target({METHOD, FIELD, PARAMETER, TYPE}) and ~@Retention(RUNTIME)</text>
+ <note>The compiler discards non-runtime-retention annotation</note>
</assertion>
<assertion id="g">
17 years, 1 month
[webbeans-commits] Webbeans SVN: r1612 - tck/trunk/impl/src/main/resources.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2009-02-20 02:47:34 -0500 (Fri, 20 Feb 2009)
New Revision: 1612
Modified:
tck/trunk/impl/src/main/resources/tck-audit.xml
Log:
chapter 5 assertions
Modified: tck/trunk/impl/src/main/resources/tck-audit.xml
===================================================================
--- tck/trunk/impl/src/main/resources/tck-audit.xml 2009-02-20 02:29:34 UTC (rev 1611)
+++ tck/trunk/impl/src/main/resources/tck-audit.xml 2009-02-20 07:47:34 UTC (rev 1612)
@@ -2631,12 +2631,300 @@
<section id="5.8" title="Dynamic lookup">
- </section>
+ <assertion id="a">
+ <text>An instance of the javax.inject.Instance interface may be injected via use of the
+(a)javax.inject.Obtains binding</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>Additional bindings may be specified at the injection point</text>
+ </assertion>
+
+ <assertion id="c">
+ <text>The Instance interface provides a method for obtaining instances of beans of a specific type</text>
+ </assertion>
+
+ <assertion id="d">
+ <text>If two instances of the same binding type are passed to Instance.get(), a DuplicateBindingTypeException is thrown</text>
+ </assertion>
+
+ <assertion id="e">
+ <text>If an instance of an annotation that is not a binding type is passed to Instance.get(), an IllegalArgumentException is thrown</text>
+ </assertion>
+
+ <assertion id="f">
+ <text>The @Obtains annotation or <Obtains> element may be applied to any injection point of type Instance where an actual type parameter is specified</text>
+ </assertion>
+
+ <assertion id="g">
+ <text>If the type of the injection point is not of type Instance a DefinitionException is thrown by the container at deployment time</text>
+ </assertion>
+
+ <assertion id="h">
+ <text>If no actual type parameter is specified a DefinitionException is thrown by the container at deployment time</text>
+ </assertion>
+
+ <assertion id="i">
+ <text>If the type parameter contains a type variable a DefinitionException is thrown by the container at deployment time</text>
+ </assertion>
+
+ <assertion id="j">
+ <text>If the type parameter contains a wildcard a DefinitionException is thrown by the container at deployment time</text>
+ </assertion>
+
+ <assertion id="k">
+ <text>Whenever the @Obtains annotation appears at an injection point, an implicit bean exists with exactly the bean type and bindings that appear at the injection point</text>
+ </assertion>
+
+ <assertion id="l">
+ <text>Whenever the @Obtains annotation appears at an injection point, an implicit bean exists with deployment type @Standard</text>
+ </assertion>
+
+ <assertion id="m">
+ <text>Whenever the @Obtains annotation appears at an injection point, an implicit bean exists with @Dependent scope</text>
+ </assertion>
+
+ <assertion id="n">
+ <text>Whenever the @Obtains annotation appears at an injection point, an implicit bean exists with no bean name</text>
+ </assertion>
+
+ <assertion id="o">
+ <text>Whenever the @Obtains annotation appears at an injection point, an implicit bean exists with an implementation provided automatically by the container</text>
+ </assertion>
+
+ <assertion id="p">
+ <text>The get() method of the provided implementation of Instance must call Manager.getInstanceByType(), passing all bindings declared at the injection point, except @Obtains, and all bindings passed to Instance.get()</text>
+ </assertion>
+
+ <assertion id="q">
+ <text>The application may obtain a contextual instance by calling the Instance.get() method</text>
+ </assertion>
+
+ <assertion id="r">
+ <text>When the application calls Instance.get() to obtain a contextual instance dynamically, it may need to pass instances of binding annotation types</text>
+ </assertion>
+ </section>
<section id="5.9" title="Typesafe resolution algorithm">
+ <assertion id="a">
+ <text>The resolveByType() method of the Manager interface returns the result of the typesafe resolution</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>If no bindings are passed to Manager.resolveByType(), the default binding @Current is assumed</text>
+ </assertion>
+
+ <assertion id="c">
+ <text>If a parameterized type with a type parameter or wildcard is passed to Manager.resolveByType(), an IllegalArgumentException is thrown</text>
+ </assertion>
+
+ <assertion id="d">
+ <text>If two instances of the same binding type are passed to Manager.resolveByType(), a DuplicateBindingTypeException is thrown</text>
+ </assertion>
+
+ <assertion id="e">
+ <text>If an instance of an annotation that is not a binding type is passed to Manager.resolveByType(), an IllegalArgumentException is thrown</text>
+ </assertion>
+
+ <assertion id="f">
+ <text>When the container is resolving a bean by type, it identifies the set of matching enabled beans which have the given bean type. For this purpose, primitive types are considered to be identical to their corresponding wrapper types in java.lang, array types are considered identical only if their element types are identical and parameterized types are considered identical only if both the type and all type parameters are identical</text>
+ </assertion>
+
+ <assertion id="g">
+ <text>When the container is resolving a bean by type, it considers the given bindings. If no bindings were passed to resolveByType(), the container assumes the binding @Current. The container narrows the set of matching beans to just those where for each given binding, the bean declares a binding with (a) the same type and (b) the same annotation member value for each member which is not annotated @NonBinding (see Section 5.9.1, "Binding annotations with members")</text>
+ </assertion>
+
+ <assertion id="h">
+ <text>When the container is resolving a bean by type, it examines the deployment types of the matching beans, as defined in Section 2.5.7, "Deployment type precedence", and returns the set of beans with the highest precedence deployment type that occurs in the set. If there are no matching beans, an empty set is returned</text>
+ </assertion>
+ </section>
+ <section id="5.9.1" title="Binding annotations with members">
+ <assertion id="a">
+ <text>Binding types with members are supported</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>An annotation member may be excluded from consideration using the @NonBinding annotation</text>
+ </assertion>
+
+ <assertion id="c">
+ <text>Array-valued or annotation-valued members of a binding type must be annotated @NonBinding. If an array-valued or annotation-valued member of a binding type is not annotated @NonBinding, a DefinitionException is thrown by the container at deployment time</text>
+ </assertion>
</section>
+ <section id="5.9.2" title="Multiple bindings">
+ <assertion id="a">
+ <text>A bean class may declare multiple bindings</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>A producer method may declare multiple bindings</text>
+ </assertion>
+
+ <assertion id="c">
+ <text>A producer field may declare multiple bindings</text>
+ </assertion>
+
+ <assertion id="d">
+ <text>A bean must declare all of the bindings that are specified at the injection point to be considered a candidate for injection</text>
+ </assertion>
+ </section>
+
+ <section id="5.10" title="EL name resolution">
+ <assertion id="a" testable="false">
+ <text>The container must provide a Unified EL ELResolver to the servlet engine and JSF implementation that resolves bean names</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>When this resolver is called with a null base object, it calls the method Manager.getInstanceByName() to obtain an instance of the bean named in the EL expression</text>
+ </assertion>
+
+ <assertion id="c">
+ <text>The Manager.getInstanceByName() method must identify the bean by calling Manager.resolveByName(), passing the name</text>
+ </assertion>
+
+ <assertion id="d">
+ <text>The Manager.getInstanceByName() method must return a null value, if Manager.resolveByName() returned an empty set</text>
+ </assertion>
+
+ <assertion id="e">
+ <text>The Manager.getInstanceByName() method must throw an AmbiguousDependencyException if Manager.resolveByName() returned more than one bean</text>
+ </assertion>
+
+ <assertion id="e">
+ <text>The Manager.getInstanceByName() method must obtain an instance of the bean by calling Manager.getInstance(), passing the Bean instance representing the bean if exactly one bean was returned by Manager.resolveByName()</text>
+ </assertion>
+
+ <assertion id="f">
+ <text>For each distinct name that appears in the EL expression, getInstanceByName() must be called at most once</text>
+ </assertion>
+
+ <assertion id="g">
+ <text>Even if a
+name appears more than once in the same expression, the container may not call getInstanceByName() multiple times with that name. This restriction ensures that there is a unique instance of each bean with scope @Dependent in any EL evaluation</text>
+ </assertion>
+ </section>
+
+ <section id="5.11" title="Name resolution algorithm">
+ <assertion id="a">
+ <text>The resolveByName() method of the Manager interface performs name resolution</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>When resolving a bean by name, the container must identify the set of matching enabled beans which have the given name</text>
+ </assertion>
+
+ <assertion id="c">
+ <text>After the container identifies the set of matching beans, it examines the deployment types of the matching beans, as defined in Section 2.5.7, "Deployment type precedence", and returns the set of beans with the highest precedence deployment type that occurs in the set</text>
+ </assertion>
+
+ <assertion id="d">
+ <text>If there are no matching beans, an empty set is returned</text>
+ </assertion>
+ </section>
+
+ <section id="5.12" title="Injection into non-contextual objects">
+ <assertion id="a">
+ <text>The container is required to perform dependency injection upon certain non-contextual objects</text>
+ </assertion>
+ </section>
+
+ <section id="5.12.1" title="Non-contextual instances of session beans">
+ <assertion id="a">
+ <text>The container is required to perform dependency injection for session bean instances obtained directly from JNDI</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>The container is required to perform dependency injection for session bean instances injected using @EJB</text>
+ </assertion>
+
+ <assertion id="c">
+ <text>The container is required to perform dependency injection for session bean instances injected using @Resource</text>
+ </assertion>
+
+ <assertion id="d">
+ <text>The container is required to perform dependency injection for session bean instances created by the container to receive remote method calls</text>
+ </assertion>
+
+ <assertion id="e">
+ <text>The container is required to perform dependency injection for session bean instances created by the container to receive timeouts</text>
+ </assertion>
+
+ <assertion id="f">
+ <text>The container is required to create interceptor stacks for session bean instances obtained directly from JNDI</text>
+ </assertion>
+
+ <assertion id="g">
+ <text>The container is required to create interceptor stacks for session bean instances injected using @EJB</text>
+ </assertion>
+
+ <assertion id="h">
+ <text>The container is required to create interceptor stacks for session bean instances injected using @Resource</text>
+ </assertion>
+
+ <assertion id="i">
+ <text>The container is required to create interceptor stacks for session bean instances created by the container to receive remote method calls</text>
+ </assertion>
+
+ <assertion id="j">
+ <text>The container is required to create interceptor stacks for session bean instances created by the container to receive timeouts</text>
+ </assertion>
+
+ <assertion id="k">
+ <text>The container is required to create decorator stacks for session bean instances obtained directly from JNDI</text>
+ </assertion>
+
+ <assertion id="l">
+ <text>The container is required to create decorator stacks for session bean instances injected using @EJB</text>
+ </assertion>
+
+ <assertion id="m">
+ <text>The container is required to create decorator stacks for session bean instances injected using @Resource</text>
+ </assertion>
+
+ <assertion id="n">
+ <text>The container is required to create decorator stacks for session bean instances created by the container to receive remote method calls</text>
+ </assertion>
+
+ <assertion id="o">
+ <text>The container is required to create decorator stacks for session bean instances created by the container to receive timeouts</text>
+ </assertion>
+
+ <assertion id="p">
+ <text>For the purposes of dependency injection, the container must treat non-contextual instances of session beans as instances of the most specialized bean that specializes the bean with binding @New and deployment type @Standard defined in Section 3.3.6, "Session beans with the @New binding"</text>
+ </assertion>
+
+ <assertion id="q">
+ <text>For the purposes of interceptor stack creation, the container must treat non-contextual instances of session beans as instances of the most specialized bean that specializes the bean with binding @New and deployment type @Standard defined in Section 3.3.6, "Session beans with the @New binding"</text>
+ </assertion>
+
+ <assertion id="r">
+ <text>For the purposes of decorator stack creation, the container must treat non-contextual instances of session beans as instances of the most specialized bean that specializes the bean with binding @New and deployment type @Standard defined in Section 3.3.6, "Session beans with the @New binding"</text>
+ </assertion>
+
+ </section>
+
+ <section id="5.12.2" title="Message-driven beans">
+ <assertion id="a">
+ <text>The container performs dependency injection for message-driven bean instances according to the bean class annotations</text>
+ </assertion>
+
+ <assertion id="b">
+ <text>The container creates interceptor stacks for message-driven bean instances according to the bean class annotations</text>
+ </assertion>
+
+ <assertion id="c">
+ <text>The container creates decorator stacks for message-driven bean instances according to the bean class annotations</text>
+ </assertion>
+ </section>
+
+ <section id="5.12.3" title="Servlets">
+ <assertion id="a">
+ <text>The container performs dependency injection for servlets according to the servlet class annotations</text>
+ </assertion>
+ </section>
+
<section id="6" title="Bean lifecycle">
</section>
17 years, 1 month
[webbeans-commits] Webbeans SVN: r1611 - in tck/trunk/impl/src/main/resources: META-INF and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2009-02-19 21:29:34 -0500 (Thu, 19 Feb 2009)
New Revision: 1611
Modified:
tck/trunk/impl/src/main/resources/META-INF/tck-unit.properties
tck/trunk/impl/src/main/resources/tck-audit.xml
Log:
configurable thresholds
Modified: tck/trunk/impl/src/main/resources/META-INF/tck-unit.properties
===================================================================
--- tck/trunk/impl/src/main/resources/META-INF/tck-unit.properties 2009-02-19 23:25:01 UTC (rev 1610)
+++ tck/trunk/impl/src/main/resources/META-INF/tck-unit.properties 2009-02-20 02:29:34 UTC (rev 1611)
@@ -1,2 +1,4 @@
fisheye_base_url=http\://fisheye.jboss.org/browse/Webbeans/tck/trunk/impl...
-svn_base_url=http\://anonsvn.jboss.org/repos/webbeans/tck/trunk/impl/src/main/java/
\ No newline at end of file
+svn_base_url=http\://anonsvn.jboss.org/repos/webbeans/tck/trunk/impl/src/main/java/
+pass_threshold=75
+fail_threshold=50
\ No newline at end of file
Modified: tck/trunk/impl/src/main/resources/tck-audit.xml
===================================================================
--- tck/trunk/impl/src/main/resources/tck-audit.xml 2009-02-19 23:25:01 UTC (rev 1610)
+++ tck/trunk/impl/src/main/resources/tck-audit.xml 2009-02-20 02:29:34 UTC (rev 1611)
@@ -2637,6 +2637,14 @@
</section>
+ <section id="6" title="Bean lifecycle">
+
+ </section>
+
+ <section id="7" title="Events">
+
+ </section>
+
<section id="7.1" title="Event types and binding types">
<assertion id="a">
@@ -3181,6 +3189,10 @@
</assertion>
</section>
+ <section id="8" title="Scopes and contexts">
+
+ </section>
+
<section id="8.1" title="The Context interface">
<assertion id="a">
17 years, 1 month
[webbeans-commits] Webbeans SVN: r1609 - examples/trunk.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-02-19 16:30:08 -0500 (Thu, 19 Feb 2009)
New Revision: 1609
Modified:
examples/trunk/build.properties
examples/trunk/pom.xml
Log:
WBRI-124
Modified: examples/trunk/build.properties
===================================================================
--- examples/trunk/build.properties 2009-02-19 21:30:02 UTC (rev 1608)
+++ examples/trunk/build.properties 2009-02-19 21:30:08 UTC (rev 1609)
@@ -1 +1 @@
-#jboss.home=/Applications/jboss-5.0.0.GA
+jboss.home=/Applications/jboss-5.0.0.GA
Modified: examples/trunk/pom.xml
===================================================================
--- examples/trunk/pom.xml 2009-02-19 21:30:02 UTC (rev 1608)
+++ examples/trunk/pom.xml 2009-02-19 21:30:08 UTC (rev 1609)
@@ -45,12 +45,15 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
- <version>2.0-beta-8</version>
<configuration>
<tagBase>https://svn.jboss.org/repos/webbeans/examples/tags</tagBase>
<autoVersionSubmodules>true</autoVersionSubmodules>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ </plugin>
</plugins>
</build>
17 years, 1 month
[webbeans-commits] Webbeans SVN: r1608 - in tck/trunk: impl and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-02-19 16:30:02 -0500 (Thu, 19 Feb 2009)
New Revision: 1608
Modified:
tck/trunk/impl/pom.xml
tck/trunk/pom.xml
Log:
WBRI-124
Modified: tck/trunk/impl/pom.xml
===================================================================
--- tck/trunk/impl/pom.xml 2009-02-19 21:29:54 UTC (rev 1607)
+++ tck/trunk/impl/pom.xml 2009-02-19 21:30:02 UTC (rev 1608)
@@ -224,27 +224,34 @@
<build>
<plugins>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <id>package</id>
- <phase>package</phase>
- <configuration>
- <tasks>
- <java classname="org.jboss.jsr299.tck.api.TCK" classpathref="maven.compile.classpath" failonerror="true" fork="true">
- <jvmarg line="-DdumpArtifacts=true"/>
- <jvmarg line="-Dorg.jboss.jsr299.tck.outputDirectory=target/jsr299-artifacts" />
- <jvmarg line="-Dorg.jboss.jsr299.tck.libraryDirectory=${libraryDirectory}" />
- </java>
- <echo>Dumped artifacts to ${basedir}/target/jsr299-artifacts</echo>
- </tasks>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>generate-jsr-299-artifacts</id>
+ <phase>package</phase>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <mainClass>org.jboss.jsr299.tck.api.TCK</mainClass>
+ <systemProperties>
+ <systemProperty>
+ <key>dumpArtifacts</key>
+ <value>true</value>
+ </systemProperty>
+ <systemProperty>
+ <key>org.jboss.jsr299.tck.outputDirectory</key>
+ <value>target/jsr299-artifacts</value>
+ </systemProperty>
+ <systemProperty>
+ <key>org.jboss.jsr299.tck.libraryDirectory</key>
+ <value>${libaryDir}</value>
+ </systemProperty>
+ </systemProperties>
+ </configuration>
</plugin>
</plugins>
</build>
Modified: tck/trunk/pom.xml
===================================================================
--- tck/trunk/pom.xml 2009-02-19 21:29:54 UTC (rev 1607)
+++ tck/trunk/pom.xml 2009-02-19 21:30:02 UTC (rev 1608)
@@ -136,6 +136,7 @@
</dependencyManagement>
<build>
+ <defaultGoal>install</defaultGoal>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
@@ -160,13 +161,16 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
- <version>2.0-beta-8</version>
<configuration>
<tagBase>https://svn.jboss.org/repos/webbeans/tck/tags</tagBase>
<autoVersionSubmodules>true</autoVersionSubmodules>
<allowTimestampedSnapshots>true</allowTimestampedSnapshots>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ </plugin>
</plugins>
<pluginManagement>
<plugins>
@@ -195,6 +199,92 @@
</archive>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-report-plugin</artifactId>
+ <version>2.4.3</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.4.3</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>properties-maven-plugin</artifactId>
+ <version>1.0-alpha-1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-clean-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <version>2.4</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-install-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>2.0-beta-6</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.0.4</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.0</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>1.0-alpha-4</version>
+ <executions>
+ <execution>
+ <id>enforce</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireMavenVersion>
+ <version>2.0.9</version>
+ </requireMavenVersion>
+ <requirePluginVersions />
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <version>2.0-beta-8</version>
+ </plugin>
</plugins>
</pluginManagement>
</build>
17 years, 1 month
[webbeans-commits] Webbeans SVN: r1607 - in ri/trunk: jboss-tck-runner and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-02-19 16:29:54 -0500 (Thu, 19 Feb 2009)
New Revision: 1607
Modified:
ri/trunk/jboss-tck-runner/pom.xml
ri/trunk/pom.xml
Log:
WBRI-124
Modified: ri/trunk/jboss-tck-runner/pom.xml
===================================================================
--- ri/trunk/jboss-tck-runner/pom.xml 2009-02-19 20:45:37 UTC (rev 1606)
+++ ri/trunk/jboss-tck-runner/pom.xml 2009-02-19 21:29:54 UTC (rev 1607)
@@ -211,27 +211,34 @@
<build>
<plugins>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <id>package</id>
- <phase>package</phase>
- <configuration>
- <tasks>
- <java classname="org.jboss.jsr299.tck.api.TCK" classpathref="maven.compile.classpath" failonerror="true" fork="true">
- <jvmarg line="-DdumpArtifacts=true"/>
- <jvmarg line="-Dorg.jboss.jsr299.tck.outputDirectory=target/jsr299-artifacts" />
- <jvmarg line="-Dorg.jboss.jsr299.tck.libraryDirectory=target/dependency/lib" />
- </java>
- <echo>Dumped artifacts to ${basedir}/target/jsr299-artifacts</echo>
- </tasks>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>generate-jsr-299-artifacts</id>
+ <phase>generate-test-sources</phase>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <mainClass>org.jboss.jsr299.tck.api.TCK</mainClass>
+ <systemProperties>
+ <systemProperty>
+ <key>dumpArtifacts</key>
+ <value>true</value>
+ </systemProperty>
+ <systemProperty>
+ <key>org.jboss.jsr299.tck.outputDirectory</key>
+ <value>target/jsr299-artifacts</value>
+ </systemProperty>
+ <systemProperty>
+ <key>org.jboss.jsr299.tck.libraryDirectory</key>
+ <value>target/dependency/lib</value>
+ </systemProperty>
+ </systemProperties>
+ </configuration>
</plugin>
</plugins>
</build>
Modified: ri/trunk/pom.xml
===================================================================
--- ri/trunk/pom.xml 2009-02-19 20:45:37 UTC (rev 1606)
+++ ri/trunk/pom.xml 2009-02-19 21:29:54 UTC (rev 1607)
@@ -345,21 +345,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
- <executions>
- <execution>
- <id>enforce-versions</id>
- <goals>
- <goal>enforce</goal>
- </goals>
- <configuration>
- <rules>
- <requireMavenVersion>
- <version>2.0.9</version>
- </requireMavenVersion>
- </rules>
- </configuration>
- </execution>
- </executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -385,11 +370,6 @@
</configuration>
</plugin>
<plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>cobertura-maven-plugin</artifactId>
- <version>2.2</version>
- </plugin>
- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
@@ -420,6 +400,89 @@
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-1</version>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-clean-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <version>2.4</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-install-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>2.0-beta-6</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.0.4</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.0</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <version>2.1-alpha-1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-ejb-plugin</artifactId>
+ <version>2.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-ear-plugin</artifactId>
+ <version>2.3.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>1.0-alpha-4</version>
+ <executions>
+ <execution>
+ <id>enforce</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireMavenVersion>
+ <version>2.0.9</version>
+ </requireMavenVersion>
+ <requirePluginVersions>
+ <message>Must specify plugin versions in pluginManagement in root org.jboss.webbeans:parent pom</message>
+ </requirePluginVersions>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</pluginManagement>
</build>
17 years, 1 month
[webbeans-commits] Webbeans SVN: r1606 - in ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans: injection and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-02-19 15:45:37 -0500 (Thu, 19 Feb 2009)
New Revision: 1606
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/injection/ResolvableAnnotatedClass.java
Log:
minor
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java 2009-02-19 20:27:27 UTC (rev 1605)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java 2009-02-19 20:45:37 UTC (rev 1606)
@@ -337,7 +337,7 @@
}
if (bindings.length > element.getMetaAnnotations(BindingType.class).size())
{
- throw new DuplicateBindingTypeException(element.toString());
+ throw new DuplicateBindingTypeException("Duplicate bindings type passed " + element.toString());
}
return resolver.get(element);
}
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/injection/ResolvableAnnotatedClass.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/injection/ResolvableAnnotatedClass.java 2009-02-19 20:27:27 UTC (rev 1605)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/injection/ResolvableAnnotatedClass.java 2009-02-19 20:45:37 UTC (rev 1606)
@@ -40,12 +40,12 @@
if (type instanceof ParameterizedType)
{
this.actualTypeArguments = ((ParameterizedType) type).getActualTypeArguments();
- this._string = rawType.toString() + "<" + Arrays.asList(actualTypeArguments).toString() + ">";
+ this._string = rawType.toString() + "<" + Arrays.asList(actualTypeArguments).toString() + ">; binding types " + annotations;
}
else
{
this.actualTypeArguments = new Type[0];
- this._string = rawType.toString();
+ this._string = rawType.toString() +"; binding types " + annotations;
}
}
17 years, 1 month
[webbeans-commits] Webbeans SVN: r1605 - in ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans: injection and 1 other directories.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-02-19 15:27:27 -0500 (Thu, 19 Feb 2009)
New Revision: 1605
Added:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/injection/ResolvableAnnotatedClass.java
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/jlr/AnnotatedClassImpl.java
Log:
A lightweight annotated class for resolving
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java 2009-02-19 19:41:05 UTC (rev 1604)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java 2009-02-19 20:27:27 UTC (rev 1605)
@@ -64,6 +64,7 @@
import org.jboss.webbeans.ejb.spi.EjbResolver;
import org.jboss.webbeans.event.EventManager;
import org.jboss.webbeans.event.ObserverImpl;
+import org.jboss.webbeans.injection.ResolvableAnnotatedClass;
import org.jboss.webbeans.injection.Resolver;
import org.jboss.webbeans.introspector.AnnotatedClass;
import org.jboss.webbeans.introspector.AnnotatedItem;
@@ -288,7 +289,7 @@
*/
public <T> Set<Bean<T>> resolveByType(Class<T> type, Annotation... bindings)
{
- return resolveByType(AnnotatedClassImpl.of(type, bindings), bindings);
+ return resolveByType(ResolvableAnnotatedClass.of(type, bindings), bindings);
}
/**
@@ -303,7 +304,7 @@
*/
public <T> Set<Bean<T>> resolveByType(TypeLiteral<T> type, Annotation... bindings)
{
- return resolveByType(AnnotatedClassImpl.of(type, bindings), bindings);
+ return resolveByType(ResolvableAnnotatedClass.of(type, bindings), bindings);
}
/**
@@ -622,7 +623,7 @@
{
currentInjectionPoint.set(injectionPoint);
}
- AnnotatedItem<T, ?> element = AnnotatedClassImpl.of((Class<T>) injectionPoint.getType(), injectionPoint.getBindings().toArray(new Annotation[0]));
+ AnnotatedItem<T, ?> element = ResolvableAnnotatedClass.of((Class<T>) injectionPoint.getType(), injectionPoint.getBindings().toArray(new Annotation[0]));
Bean<T> bean = getBeanByType(element, element.getBindingsAsArray());
if (creationalContext instanceof CreationalContextImpl)
{
@@ -689,7 +690,7 @@
*/
public <T> T getInstanceByType(Class<T> type, Annotation... bindings)
{
- return getInstanceByType(AnnotatedClassImpl.of(type, bindings), bindings);
+ return getInstanceByType(ResolvableAnnotatedClass.of(type, bindings), bindings);
}
@@ -705,7 +706,7 @@
*/
public <T> T getInstanceByType(TypeLiteral<T> type, Annotation... bindings)
{
- return getInstanceByType(AnnotatedClassImpl.of(type, bindings), bindings);
+ return getInstanceByType(ResolvableAnnotatedClass.of(type, bindings), bindings);
}
/**
Added: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/injection/ResolvableAnnotatedClass.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/injection/ResolvableAnnotatedClass.java (rev 0)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/injection/ResolvableAnnotatedClass.java 2009-02-19 20:27:27 UTC (rev 1605)
@@ -0,0 +1,94 @@
+package org.jboss.webbeans.injection;
+
+import java.lang.annotation.Annotation;
+import java.lang.reflect.ParameterizedType;
+import java.lang.reflect.Type;
+import java.util.Arrays;
+
+import javax.inject.TypeLiteral;
+
+import org.jboss.webbeans.introspector.AnnotationStore;
+import org.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem;
+
+/**
+ * Extension of an element which bases equality not only on type, but also on
+ * binding type
+ */
+public class ResolvableAnnotatedClass<T> extends AbstractAnnotatedItem<T, Class<T>>
+{
+
+ private static final Annotation[] EMPTY_ANNOTATION_ARRAY = new Annotation[0];
+ private final Class<T> rawType;
+ private final Type[] actualTypeArguments;
+
+ private final String _string;
+
+ public static <T> ResolvableAnnotatedClass<T> of(TypeLiteral<T> typeLiteral, Annotation[] annotations)
+ {
+ return new ResolvableAnnotatedClass<T>(typeLiteral.getRawType(), typeLiteral.getType(), annotations);
+ }
+
+ public static <T> ResolvableAnnotatedClass<T> of(Class<T> clazz, Annotation[] annotations)
+ {
+ return new ResolvableAnnotatedClass<T>(clazz, clazz, annotations);
+ }
+
+ private ResolvableAnnotatedClass(Class<T> rawType, Type type, Annotation[] annotations)
+ {
+ super(AnnotationStore.of(annotations, EMPTY_ANNOTATION_ARRAY));
+ this.rawType = rawType;
+ if (type instanceof ParameterizedType)
+ {
+ this.actualTypeArguments = ((ParameterizedType) type).getActualTypeArguments();
+ this._string = rawType.toString() + "<" + Arrays.asList(actualTypeArguments).toString() + ">";
+ }
+ else
+ {
+ this.actualTypeArguments = new Type[0];
+ this._string = rawType.toString();
+ }
+ }
+
+ @Override
+ public String toString()
+ {
+ return _string;
+ }
+
+ @Override
+ public Class<T> getDelegate()
+ {
+ return rawType;
+ }
+
+ public Type[] getActualTypeArguments()
+ {
+ return actualTypeArguments;
+ }
+
+ public String getName()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public Class<T> getType()
+ {
+ return rawType;
+ }
+
+ public boolean isFinal()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public boolean isPublic()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ public boolean isStatic()
+ {
+ throw new UnsupportedOperationException();
+ }
+
+}
\ No newline at end of file
Property changes on: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/injection/ResolvableAnnotatedClass.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/jlr/AnnotatedClassImpl.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/jlr/AnnotatedClassImpl.java 2009-02-19 19:41:05 UTC (rev 1604)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/jlr/AnnotatedClassImpl.java 2009-02-19 20:27:27 UTC (rev 1605)
@@ -31,8 +31,6 @@
import java.util.Map;
import java.util.Set;
-import javax.inject.TypeLiteral;
-
import org.jboss.webbeans.introspector.AnnotatedClass;
import org.jboss.webbeans.introspector.AnnotatedConstructor;
import org.jboss.webbeans.introspector.AnnotatedField;
@@ -265,20 +263,6 @@
{
return new AnnotatedClassImpl<T>(clazz, clazz, clazz.getAnnotations(), clazz.getDeclaredAnnotations());
}
-
- // TODO Introduce a lightweight implementation for resolution
- @Deprecated
- public static <T> AnnotatedClassImpl<T> of(TypeLiteral<T> typeLiteral, Annotation[] annotations)
- {
- return new AnnotatedClassImpl<T>(typeLiteral.getRawType(), typeLiteral.getType(), annotations, annotations);
- }
-
- // TODO Introduce a lightweight implementation for resolution
- @Deprecated
- public static <T> AnnotatedClassImpl<T> of(Class<T> clazz, Annotation[] annotations)
- {
- return new AnnotatedClassImpl<T>(clazz, clazz, annotations, annotations);
- }
private AnnotatedClassImpl(Class<T> rawType, Type type, Annotation[] annotations, Annotation[] declaredAnnotations)
{
17 years, 1 month
[webbeans-commits] Webbeans SVN: r1604 - tck/trunk/impl/src/main/resources.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-02-19 14:41:05 -0500 (Thu, 19 Feb 2009)
New Revision: 1604
Modified:
tck/trunk/impl/src/main/resources/tck-audit.xml
Log:
minor
Modified: tck/trunk/impl/src/main/resources/tck-audit.xml
===================================================================
--- tck/trunk/impl/src/main/resources/tck-audit.xml 2009-02-19 19:28:32 UTC (rev 1603)
+++ tck/trunk/impl/src/main/resources/tck-audit.xml 2009-02-19 19:41:05 UTC (rev 1604)
@@ -3706,13 +3706,5 @@
</assertion>
</section>
- <section id="review" title="Tests to review">
- <assertion id="review" />
- </section>
-
- <section id="outdated" title="Tests which seem to be outdated">
- <assertion id="outdated" />
- </section>
-
</specification>
17 years, 1 month