[webbeans-commits] Webbeans SVN: r3067 - ri/tags.
by webbeans-commits@lists.jboss.org
Author: rogerk
Date: 2009-07-16 15:20:03 -0400 (Thu, 16 Jul 2009)
New Revision: 3067
Added:
ri/tags/1.0.0.PREVIEW2-PATCH2.SP1/
Log:
Tag for 1.0.0.PREVIEW2-PATCH2 branch
Copied: ri/tags/1.0.0.PREVIEW2-PATCH2.SP1 (from rev 3066, ri/branches/1.0.0.PREVIEW2-PATCH2)
15 years, 4 months
[webbeans-commits] Webbeans SVN: r3066 - in tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event: resolve/nonbinding and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2009-07-16 07:50:06 -0400 (Thu, 16 Jul 2009)
New Revision: 3066
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/nonbinding/NonBindingTypePassedToFireTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/resolve/nonbinding/NonBindingTypesWhenResolvingTest.java
Log:
matched non binding tests to assertions
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/nonbinding/NonBindingTypePassedToFireTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/nonbinding/NonBindingTypePassedToFireTest.java 2009-07-16 05:37:35 UTC (rev 3065)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/fires/nonbinding/NonBindingTypePassedToFireTest.java 2009-07-16 11:50:06 UTC (rev 3066)
@@ -5,11 +5,16 @@
import org.jboss.testharness.impl.packaging.Artifact;
import org.testng.annotations.Test;
+/**
+ *
+ * Spec version: 20090625
+ *
+ */
@Artifact
public class NonBindingTypePassedToFireTest extends AbstractJSR299Test
{
@Test(groups = { "events" }, expectedExceptions = { IllegalArgumentException.class })
- @SpecAssertion(section = "11.2.8", id = "e")
+ @SpecAssertion(section = "11.3.10", id = "e")
public void testExceptionThrownIfNonBindingTypePassedToFire() throws Exception
{
new RunInDependentContext()
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/resolve/nonbinding/NonBindingTypesWhenResolvingTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/resolve/nonbinding/NonBindingTypesWhenResolvingTest.java 2009-07-16 05:37:35 UTC (rev 3065)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/resolve/nonbinding/NonBindingTypesWhenResolvingTest.java 2009-07-16 11:50:06 UTC (rev 3066)
@@ -11,7 +11,7 @@
import org.testng.annotations.Test;
/**
- * Spec version: 20090519
+ * Spec version: 20090625
*/
@Artifact
public class NonBindingTypesWhenResolvingTest extends AbstractJSR299Test
@@ -31,7 +31,7 @@
}
@Test(groups = { "events" }, expectedExceptions = { IllegalArgumentException.class })
- @SpecAssertion(section = "11.2.9", id = "e")
+ @SpecAssertion(section = "11.3.11", id = "e")
public void testNonBindingTypeAnnotationWhenResolvingFails()
{
Set<ObserverMethod<?, AnEventType>> resolvedObservers = getCurrentManager().resolveObserverMethods(new AnEventType(), new AnimalStereotypeAnnotationLiteral());
15 years, 4 months
[webbeans-commits] Webbeans SVN: r3065 - in tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context: dependent and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2009-07-16 01:37:35 -0400 (Thu, 16 Jul 2009)
New Revision: 3065
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/ConversationContextTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/dependent/DependentContextTest.java
Log:
matched conversation and dependent context tests
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/ConversationContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/ConversationContextTest.java 2009-07-16 05:24:38 UTC (rev 3064)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/conversation/ConversationContextTest.java 2009-07-16 05:37:35 UTC (rev 3065)
@@ -16,7 +16,7 @@
*
* @author Nicklas Karlsson
*
- * Spec version: 20090519
+ * Spec version: 20090625
*/
@Artifact
public class ConversationContextTest extends AbstractJSR299Test
@@ -30,28 +30,28 @@
}
@Test(groups = { "contexts" })
- @SpecAssertion(section = "6.7.4", id = "iaa")
+ @SpecAssertion(section = "6.7.5", id = "iaa")
public void testBeanWithTypeConversation()
{
assert getBeans(Conversation.class).size() == 1;
}
@Test(groups = { "contexts" })
- @SpecAssertion(section = "6.7.4", id = "ib")
+ @SpecAssertion(section = "6.7.5", id = "ib")
public void testBeanWithRequestScope()
{
assert getBeans(Conversation.class).iterator().next().getScopeType().equals(RequestScoped.class);
}
@Test(groups = { "contexts" })
- @SpecAssertion(section = "6.7.4", id = "ic")
+ @SpecAssertion(section = "6.7.5", id = "ic")
public void testBeanWithDeploymentTypeStandard()
{
assert getBeans(Conversation.class).iterator().next().getDeploymentType().equals(Standard.class);
}
@Test(groups = { "contexts" })
- @SpecAssertion(section = "6.7.4", id = "id")
+ @SpecAssertion(section = "6.7.5", id = "id")
public void testBeanWithBindingCurrent()
{
boolean found = false;
@@ -66,8 +66,8 @@
}
@Test(groups = { "contexts", "ri-broken" })
- @SpecAssertion(section = "6.7.4", id = "ie")
- public void testBeanWithNameJavaxContextConversation()
+ @SpecAssertion(section = "6.7.5", id = "ie")
+ public void testBeanWithNameJavaxEnterpriseContextConversation()
{
assert getBeans(Conversation.class).iterator().next().getName().equals("javax.enterprise.context.conversation");
}
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/dependent/DependentContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/dependent/DependentContextTest.java 2009-07-16 05:24:38 UTC (rev 3064)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/dependent/DependentContextTest.java 2009-07-16 05:37:35 UTC (rev 3065)
@@ -19,7 +19,7 @@
import org.testng.annotations.Test;
/**
- * Spec version: 20090519
+ * Spec version: 20090625
*/
@Artifact
@BeansXml("beans.xml")
@@ -174,7 +174,7 @@
@Test(groups = { "contexts", "ri-broken" }, expectedExceptions = ContextNotActiveException.class)
@SpecAssertions({
@SpecAssertion(section = "6.2", id = "ha"),
- @SpecAssertion(section = "6.4.1", id = "ga")
+ @SpecAssertion(section = "6.4", id = "g") // Dependent context is now always active
})
public void testContextIsInactive()
{
@@ -185,7 +185,7 @@
@Test(groups = { "contexts", "producerMethod" })
@SpecAssertions({
@SpecAssertion(section = "6.2", id = "ha"),
- @SpecAssertion(section = "6.4.1", id = "gb")
+ @SpecAssertion(section = "6.4", id = "g") // Dependent context is now always active
})
public void testContextIsActiveWhenInvokingProducerMethod()
{
@@ -197,7 +197,7 @@
}
@Test(groups = { "contexts", "producerField"})
- @SpecAssertion(section = "6.4.1", id = "gc")
+ @SpecAssertion(section = "6.4", id = "g") // Dependent context is now always active
public void testContextIsActiveWhenInvokingProducerField()
{
// Reset test class
@@ -208,7 +208,7 @@
@Test(groups = { "contexts", "disposalMethod" })
@SpecAssertions({
- @SpecAssertion(section = "6.4.1", id = "gd"),
+ @SpecAssertion(section = "6.4", id = "g"),
@SpecAssertion(section = "11.1", id = "a")
})
public void testContextIsActiveWhenInvokingDisposalMethod()
@@ -223,10 +223,7 @@
}
@Test(groups = { "contexts", "observerMethod" })
- @SpecAssertions({
- @SpecAssertion(section = "6.4.1", id = "ge"),
- @SpecAssertion(section = "6.4.1", id = "i")
- })
+ @SpecAssertion(section = "6.4", id = "g") // Dependent context is now always active
public void testContextIsActiveWhenCreatingObserverMethodInstance()
{
getCurrentManager().fireEvent(new HorseInStableEvent());
@@ -234,7 +231,7 @@
}
@Test(groups = { "contexts", "el" })
- @SpecAssertion(section = "6.4.1", id = "h")
+ @SpecAssertion(section = "6.4", id = "g") // Dependent context is now always active
public void testContextIsActiveWhenEvaluatingElExpression() throws Exception
{
SensitiveFox.setManager(getCurrentManager());
@@ -251,7 +248,7 @@
}
@Test(groups = { "contexts", "beanLifecycle" })
- @SpecAssertion(section = "6.4.1", id = "ja")
+ @SpecAssertion(section = "6.4", id = "g") // Dependent context is now always active
public void testContextIsActiveDuringBeanCreation() throws Exception
{
SensitiveFox.setManager(getCurrentManager());
@@ -270,7 +267,7 @@
}
@Test(groups = { "contexts", "injection" })
- @SpecAssertion(section = "6.4.1", id = "jc")
+ @SpecAssertion(section = "6.4", id = "g") // Dependent context is now always active
public void testContextIsActiveDuringInjection()
{
Bean<FoxRun> foxRunBean = getBeans(FoxRun.class).iterator().next();
@@ -280,7 +277,7 @@
@Test(groups = { "contexts", "beanDestruction"})
@SpecAssertions({
- @SpecAssertion(section = "6.4.3", id = "a"),
+ @SpecAssertion(section = "6.4.2", id = "aaa"),
@SpecAssertion(section = "6.4", id = "b")
})
public void testDestroyingSimpleParentDestroysDependents() throws Exception
@@ -308,10 +305,10 @@
@Test(groups = { "contexts", "beanDestruction"})
@SpecAssertions({
- @SpecAssertion(section = "6.4.3", id = "a"),
+ @SpecAssertion(section = "6.4.2", id = "aaa"),
@SpecAssertion(section = "6.4", id = "b")
})
- public void testDestroyingSimpleParentDestroysDependentsOfSameBean() throws Exception
+ public void testDestroyingManagedParentDestroysDependentsOfSameBean() throws Exception
{
new RunInDependentContext()
{
@@ -337,7 +334,7 @@
}
@Test(groups = { "contexts", "el"})
- @SpecAssertion(section = "6.4.3", id = "c")
+ @SpecAssertion(section = "6.4.2", id = "eee")
public void testDependentsDestroyedWhenElEvaluationCompletes() throws Exception
{
new RunInDependentContext()
@@ -357,7 +354,7 @@
}
@Test(groups = { "contexts", "producerMethod" })
- @SpecAssertion(section = "6.4.3", id = "da")
+ @SpecAssertion(section = "6.4.2", id = "ddd")
public void testDependentsDestroyedWhenProducerMethodCompletes() throws Exception
{
// Reset the test class
@@ -369,7 +366,7 @@
}
@Test(groups = { "contexts", "producerField" })
- @SpecAssertion(section = "6.4.3", id = "db")
+ @SpecAssertion(section = "6.4.2", id = "ddd")
public void testDependentsDestroyedWhenProducerFieldCompletes() throws Exception
{
new RunInDependentContext()
@@ -391,8 +388,8 @@
}
@Test(groups = { "contexts", "disposalMethod", "ri-broken" })
- @SpecAssertion(section = "6.4.3", id = "dc")
- public void testDependentsDestroyedWhenDisposalMethodCompletes() throws Exception
+ @SpecAssertion(section = "6.4.2", id = "ddd")
+ public void testDependentsDestroyedWhenDisposerMethodCompletes() throws Exception
{
new RunInDependentContext()
{
@@ -416,7 +413,7 @@
}
@Test(groups = { "contexts", "observerMethod" })
- @SpecAssertion(section = "6.4.3", id = "dd")
+ @SpecAssertion(section = "6.4.2", id = "ddd")
public void testDependentsDestroyedWhenObserverMethodEvaluationCompletes() throws Exception
{
new RunInDependentContext()
15 years, 4 months
[webbeans-commits] Webbeans SVN: r3064 - in tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests: lookup/injectionpoint and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2009-07-16 01:24:38 -0400 (Thu, 16 Jul 2009)
New Revision: 3064
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/EnterpriseBeanDefinitionTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injectionpoint/InjectionPointTest.java
Log:
matched enterprise bean and injection point tests
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/EnterpriseBeanDefinitionTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/EnterpriseBeanDefinitionTest.java 2009-07-16 04:32:53 UTC (rev 3063)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/enterprise/definition/EnterpriseBeanDefinitionTest.java 2009-07-16 05:24:38 UTC (rev 3064)
@@ -19,7 +19,7 @@
/**
* @author Nicklas Karlsson
*
- * Spec version: 20090519
+ * Spec version: 20090625
*/
@Artifact
@Packaging(PackagingType.EAR)
@@ -27,7 +27,7 @@
public class EnterpriseBeanDefinitionTest extends AbstractJSR299Test
{
@Test(groups = { "enterpriseBeans" })
- @SpecAssertion(section = "3.3", id = "b")
+ @SpecAssertion(section = "3.2", id = "b")
public void testStatelessMustBeDependentScoped()
{
assert getBeans(GiraffeLocal.class).size() == 1;
@@ -35,14 +35,14 @@
}
@Test(groups = { "enterpriseBeans" })
- @SpecAssertion(section = "3.3", id = "c")
+ @SpecAssertion(section = "3.2", id = "c")
public void testSingletonWithDependentScopeOK()
{
assert getBeans(Labrador.class).size() == 1;
}
@Test(groups = { "enterpriseBeans" })
- @SpecAssertion(section = "3.3", id = "c")
+ @SpecAssertion(section = "3.2", id = "c")
public void testSingletonWithApplicationScopeOK()
{
assert getBeans(Laika.class).size() == 1;
@@ -50,9 +50,9 @@
@Test(groups = { "enterpriseBeans" })
@SpecAssertions( {
- @SpecAssertion(section = "3.2.1", id = "f"),
- @SpecAssertion(section = "3.3.2", id = "aa"),
- @SpecAssertion(section = "3.3.3", id = "c") } )
+ @SpecAssertion(section = "3.1.1", id = "f"),
+ @SpecAssertion(section = "3.2.2", id = "aa"),
+ @SpecAssertion(section = "3.2.3", id = "c") } )
public void testBeanTypesAreLocalInterfacesWithoutWildcardTypesOrTypeVariablesWithSuperInterfaces()
{
Bean<DogLocal> dogBean = getBeans(DogLocal.class).iterator().next();
@@ -67,7 +67,7 @@
* superclasses.
*/
@Test(groups = { "ejb 3.1", "ri-broken" })
- @SpecAssertion(section = "3.3.2", id = "ba")
+ @SpecAssertion(section = "3.2.2", id = "ba")
public void testEnterpriseBeanWithLocalViewAndNotParameterizedTypeHasClassAndSuperclassesAsBeanTypes()
{
//TODO We need a 3.1 compliant container for this test
@@ -77,8 +77,8 @@
@Test(groups = "enterpriseBeans")
@SpecAssertions({
- @SpecAssertion(section = "3.3.2", id = "c"),
- @SpecAssertion(section = "3.3.3", id = "a"),
+ @SpecAssertion(section = "3.2.2", id = "c"),
+ @SpecAssertion(section = "3.2.3", id = "a"),
@SpecAssertion(section = "2.2", id = "l")
})
public void testObjectIsInAPITypes()
@@ -88,7 +88,7 @@
}
@Test(groups = { "enterpriseBeans" })
- @SpecAssertion(section = "3.3.2", id = "d")
+ @SpecAssertion(section = "3.2.2", id = "d")
public void testRemoteInterfacesAreNotInAPITypes()
{
Bean<DogLocal> dogBean = getBeans(DogLocal.class).iterator().next();
@@ -96,7 +96,7 @@
}
@Test(groups = "enterpriseBeans")
- @SpecAssertion(section = "3.3.3", id = "ba")
+ @SpecAssertion(section = "3.2.3", id = "ba")
public void testBeanWithScopeAnnotation()
{
Bean<LionLocal> lionBean = getBeans(LionLocal.class).iterator().next();
@@ -104,7 +104,7 @@
}
@Test(groups = "enterpriseBeans")
- @SpecAssertion(section = "3.3.3", id = "bb")
+ @SpecAssertion(section = "3.2.3", id = "bb")
public void testBeanWithNamedAnnotation()
{
Bean<MonkeyLocal> monkeyBean = getBeans(MonkeyLocal.class).iterator().next();
@@ -112,7 +112,7 @@
}
@Test(groups = "enterpriseBeans")
- @SpecAssertion(section = "3.3.3", id = "bc")
+ @SpecAssertion(section = "3.2.3", id = "bc")
public void testBeanWithDeploymentType()
{
Bean<MonkeyLocal> monkeyBean = getBeans(MonkeyLocal.class).iterator().next();
@@ -120,7 +120,7 @@
}
@Test(groups = "enterpriseBeans")
- @SpecAssertion(section = "3.3.3", id = "bd")
+ @SpecAssertion(section = "3.2.3", id = "bd")
public void testBeanWithStereotype()
{
Bean<PolarBearLocal> polarBearBean = getBeans(PolarBearLocal.class).iterator().next();
@@ -130,7 +130,7 @@
}
@Test(groups = "enterpriseBeans")
- @SpecAssertion(section = "3.3.3", id = "be")
+ @SpecAssertion(section = "3.2.3", id = "be")
public void testBeanWithBindings()
{
Annotation tame = new AnnotationLiteral<Tame>(){};
@@ -139,7 +139,7 @@
}
@Test(groups = "enterpriseBeans")
- @SpecAssertion(section = "3.3.5", id = "a")
+ @SpecAssertion(section = "3.2.5", id = "a")
public void testDefaultName()
{
assert getBeans(PitbullLocal.class).size() == 1;
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injectionpoint/InjectionPointTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injectionpoint/InjectionPointTest.java 2009-07-16 04:32:53 UTC (rev 3063)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injectionpoint/InjectionPointTest.java 2009-07-16 05:24:38 UTC (rev 3064)
@@ -40,14 +40,14 @@
*
* @author David Allen
*
- * Spec version: 20090519
+ * Spec version: 20090625
*/
@Artifact
public class InjectionPointTest extends AbstractJSR299Test
{
@Test(groups = { "injectionPoint" })
- @SpecAssertion(section = "5.4.9", id = "aa")
+ @SpecAssertion(section = "5.6.9", id = "aa")
public void testGetBean() throws Exception
{
@@ -70,7 +70,7 @@
}
@Test(groups = { "injectionPoint" })
- @SpecAssertion(section = "5.4.9", id = "ba")
+ @SpecAssertion(section = "5.6.9", id = "ba")
public void testGetType() throws Exception
{
// Get an instance of the bean which has another bean injected into it
@@ -89,7 +89,7 @@
}
@Test(groups = { "injectionPoint" })
- @SpecAssertion(section = "5.4.9", id = "bc")
+ @SpecAssertion(section = "5.6.9", id = "bc")
public void testGetBindingTypes() throws Exception
{
// Get an instance of the bean which has another bean injected into it
@@ -110,7 +110,7 @@
}
@Test(groups = { "injectionPoint" })
- @SpecAssertion(section = "5.4.9", id = "ca")
+ @SpecAssertion(section = "5.6.9", id = "ca")
public void testGetMemberField() throws Exception
{
// Get an instance of the bean which has another bean injected into it
@@ -129,7 +129,7 @@
}
@Test(groups = { "injectionPoint" })
- @SpecAssertion(section = "5.4.9", id = "cb")
+ @SpecAssertion(section = "5.6.9", id = "cb")
public void testGetMemberMethod() throws Exception
{
// Get an instance of the bean which has another bean injected into it
@@ -153,7 +153,7 @@
}
@Test(groups = { "injectionPoint" })
- @SpecAssertion(section = "5.4.9", id = "cc")
+ @SpecAssertion(section = "5.6.9", id = "cc")
public void testGetMemberConstructor() throws Exception
{
// Get an instance of the bean which has another bean injected into it
@@ -177,7 +177,7 @@
}
@Test(groups = { "injectionPoint", "rewrite" })
- @SpecAssertion(section = "5.4.9", id = "daa")
+ @SpecAssertion(section = "5.6.9", id = "daa")
public void testGetAnnotation() throws Exception
{
// Get an instance of the bean which has another bean injected into it
@@ -195,10 +195,10 @@
}.run();
}
- @Test(groups = { "injectionPoint" })
+ @Test(groups = { "injectionPoint", "deployment" })
@SpecAssertions({
- @SpecAssertion(section = "5.4.9", id = "e"),
- @SpecAssertion(section = "2.5.1", id="a")
+ @SpecAssertion(section = "5.6.9", id = "e"),
+ @SpecAssertion(section = "2.5.1", id="review") // deployment types removed from spec
})
public void testStandardDeployment() throws Exception
{
@@ -216,7 +216,7 @@
}
@Test(groups = { "injectionPoint" })
- @SpecAssertion(section = "5.4.9", id = "e")
+ @SpecAssertion(section = "5.6.9", id = "e")
public void testDependentScope() throws Exception
{
new RunInDependentContext()
@@ -234,7 +234,7 @@
@Test(groups = { "injectionPoint" })
@SpecAssertions({
- @SpecAssertion(section = "5.4.9", id = "e")
+ @SpecAssertion(section = "5.6.9", id = "e")
})
public void testApiTypeInjectionPoint() throws Exception
{
@@ -255,7 +255,7 @@
@Test(groups = { "injectionPoint" })
@SpecAssertions({
- @SpecAssertion(section = "5.4.9", id = "e")
+ @SpecAssertion(section = "5.6.9", id = "e")
})
public void testCurrentBinding() throws Exception
{
15 years, 4 months
[webbeans-commits] Webbeans SVN: r3063 - tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2009-07-16 00:32:53 -0400 (Thu, 16 Jul 2009)
New Revision: 3063
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/EventTest.java
Log:
matched assertions for event tests
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/EventTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/EventTest.java 2009-07-16 04:32:21 UTC (rev 3062)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/EventTest.java 2009-07-16 04:32:53 UTC (rev 3063)
@@ -22,7 +22,7 @@
* @author Nicklas Karlsson
* @author David Allen
*
- * Spec version: Public Release Draft 2
+ * Spec version: 20090625
*/
@Artifact
@BeansXml("beans.xml")
@@ -80,7 +80,7 @@
@Test(groups = { "events" }, expectedExceptions = { IllegalArgumentException.class } )
@SpecAssertions({
@SpecAssertion(section = "10.1", id = "g"),
- @SpecAssertion(section = "11.2.8", id = "e")
+ @SpecAssertion(section = "11.3.10", id = "e")
})
public void testManagerFireEventWithNonBindingAnnotationsFails()
{
@@ -90,7 +90,7 @@
@Test(groups = { "events" }, expectedExceptions = { IllegalArgumentException.class })
@SpecAssertions({
@SpecAssertion(section = "10.1", id = "aa"),
- @SpecAssertion(section = "11.2.8", id = "c")
+ @SpecAssertion(section = "11.3.10", id = "c")
})
public void testManagerFireEventWithEventTypeParametersFails()
{
@@ -101,16 +101,16 @@
@Test(groups = { "events" }, expectedExceptions = { IllegalArgumentException.class })
@SpecAssertions({
@SpecAssertion(section = "10.1", id = "aa"),
- @SpecAssertion(section = "11.2.8", id = "c")
+ @SpecAssertion(section = "11.3.10", id = "c")
})
- public void testManagerFireEventWithEventTypeWildcardsFails()
+ public void testBeanManagerFireEventWithEventTypeWildcardsFails()
{
ATemplatedEventType<?> anEventOnAnyType = new ATemplatedEventType<String>();
getCurrentManager().fireEvent(anEventOnAnyType);
}
@Test(groups = { "events" }, expectedExceptions = { IllegalArgumentException.class })
- @SpecAssertion(section = "11.2.8", id = "d")
+ @SpecAssertion(section = "11.3.10", id = "d")
public void testDuplicateBindingsToFireEventFails() throws Exception
{
getCurrentManager().fireEvent("string event", new TameAnnotationLiteral(), new TameAnnotationLiteral());
@@ -118,20 +118,20 @@
@Test(groups = { "events" })
@SpecAssertions({
- @SpecAssertion(section = "11.2.8", id = "a"),
- @SpecAssertion(section = "11.2.8", id = "b")
+ @SpecAssertion(section = "11.3.10", id = "a"),
+ @SpecAssertion(section = "11.3.10", id = "b")
})
- public void testManagerInterfaceForFireEventMethod() throws Exception
+ public void testBeanManagerInterfaceForFireEventMethod() throws Exception
{
assert BeanManager.class.getDeclaredMethod(FIRE_EVENT_METHOD_NAME, Object.class, Annotation[].class) != null;
}
/**
- * The Manager interface provides a method for firing events:
+ * The BeanManager interface provides a method for firing events:
*/
@Test(groups = { "events" })
- @SpecAssertion(section = "11.2.8", id = "a")
- public void testManagerFireEvent()
+ @SpecAssertion(section = "11.3.10", id = "a")
+ public void testBeanManagerFireEvent()
{
// First a simple event with no bindings is fired
AnEventType anEvent = new AnEventType();
@@ -143,18 +143,18 @@
@Test(groups = { "events" })
@SpecAssertions({
- @SpecAssertion(section = "11.2.9", id = "a"),
- @SpecAssertion(section = "11.2.9", id = "b")
+ @SpecAssertion(section = "11.3.11", id = "a"),
+ @SpecAssertion(section = "11.3.11", id = "b")
})
- public void testManagerResolveObserversSignature() throws Exception
+ public void testBeanManagerResolveObserversSignature() throws Exception
{
assert getCurrentManager().getClass().getDeclaredMethod(RESOLVE_OBSERVERS_METHOD_NAME, Object.class, Annotation[].class) != null;
}
@Test(groups = { "events" })
@SpecAssertions({
- @SpecAssertion(section = "10.5", id = "a"),
- @SpecAssertion(section = "10.5.2", id = "a"),
+ @SpecAssertion(section = "10.5", id = "aa"),
+ @SpecAssertion(section = "10.4.2", id = "a"),
@SpecAssertion(section = "12.3", id = "o")
})
public void testObserverMethodAutomaticallyRegistered()
@@ -163,7 +163,7 @@
}
@Test(groups = { "events", "ri-broken" })
- @SpecAssertion(section = "12.3", id = "o")
+ @SpecAssertion(section = "12.3", id = "oa")
public void testObserverMethodNotAutomaticallyRegisteredForDisabledBeans()
{
Set<ObserverMethod<?, String>> observers = getCurrentManager().resolveObserverMethods(new String());
@@ -176,14 +176,14 @@
}
@Test(groups = { "events" })
- @SpecAssertion(section = "10.5", id = "e")
+ @SpecAssertion(section = "10.4", id = "e")
public void testMultipleObserverMethodsForSameEventPermissible()
{
assert getCurrentManager().resolveObserverMethods(new String()).size() > 1;
}
@Test(groups = { "events" })
- @SpecAssertion(section = "10.5", id = "f")
+ @SpecAssertion(section = "10.4", id = "f")
public void testMultipleObserverMethodsOnBeanPermissible()
{
// Resolve the observers for types 1 and 2
@@ -193,14 +193,14 @@
}
@Test(groups = { "events", "ejb" })
- @SpecAssertion(section = "10.5", id = "d")
+ @SpecAssertion(section = "10.4", id = "d")
public void testObserverMethodOnEnterpriseBeanIsBusinessMethodOrStatic()
{
assert getCurrentManager().resolveObserverMethods(new EJBEvent()).size() == 2;
}
@Test(groups = { "events" })
- @SpecAssertion(section = "10.5.1", id = "b")
+ @SpecAssertion(section = "10.4.1", id = "b")
public void testObserverMethodWithoutBindingTypesObservesEventsWithoutBindingTypes()
{
// Resolve registered observers with an event containing no binding types
@@ -209,9 +209,9 @@
@Test(groups = { "events" })
@SpecAssertions( {
- @SpecAssertion(section = "10.5.2", id = "c"),
- @SpecAssertion(section = "10.2.1", id = "a"),
- @SpecAssertion(section = "10.2.2", id = "a")
+ @SpecAssertion(section = "10.4.2", id = "c"),
+ @SpecAssertion(section = "10.2.2", id = "a"),
+ @SpecAssertion(section = "10.2.3", id = "a")
})
public void testObserverMethodMayHaveMultipleBindingTypes()
{
@@ -221,8 +221,8 @@
@Test(groups = { "events" })
@SpecAssertions( {
- @SpecAssertion(section = "10.5.3", id = "a"),
- @SpecAssertion(section = "5.4.8", id = "c")
+ @SpecAssertion(section = "10.4.3", id = "a"),
+ @SpecAssertion(section = "5.6.8", id = "c")
})
public void testObserverMethodReceivesInjectionsOnNonObservesParameters()
{
@@ -231,8 +231,8 @@
@Test(groups = { "events" })
@SpecAssertions( {
- @SpecAssertion(section = "10.5.4", id = "a"),
- @SpecAssertion(section = "5.4.8", id = "b")
+ @SpecAssertion(section = "10.4.4", id = "a"),
+ @SpecAssertion(section = "5.6.8", id = "b")
} )
public void testConditionalObserver() throws Exception
{
@@ -261,7 +261,7 @@
}
@Test(groups = { "events" })
- @SpecAssertion(section = "10.6.1", id = "aa")
+ @SpecAssertion(section = "10.5", id = "aa")
public void testObserverMethodRegistration()
{
// Resolve registered observers with an event containing no binding types
@@ -270,8 +270,8 @@
@Test(groups = { "events" })
@SpecAssertions({
- @SpecAssertion(section = "10.6.1", id = "b"),
- @SpecAssertion(section = "10.6.1", id = "h")
+ @SpecAssertion(section = "10.5", id = "review"), // was b
+ @SpecAssertion(section = "10.5", id = "review") // was h
})
public void testObserverMethodCalledImmediately() throws Exception
{
@@ -295,8 +295,8 @@
*/
@Test(groups = { "events" })
@SpecAssertions({
- @SpecAssertion(section = "10.5", id = "c"),
- @SpecAssertion(section = "5.4.8", id = "k")
+ @SpecAssertion(section = "10.4", id = "c"),
+ @SpecAssertion(section = "5.6.8", id = "a")
})
public void testStaticObserverMethodInvoked() throws Exception
{
@@ -317,7 +317,7 @@
@Test(groups = { "events" })
@SpecAssertions({
@SpecAssertion(section = "4.3.2", id = "a"),
- @SpecAssertion(section = "5.4.8", id = "b")
+ @SpecAssertion(section = "5.6.8", id = "ba")
})
public void testObserverCalledOnMostSpecializedInstance()
{
@@ -327,7 +327,7 @@
}
@Test(groups = { "events" })
- @SpecAssertion(section = "5.4.8", id = "b")
+ @SpecAssertion(section = "5.6.8", id = "ba")
public void testObserverMethodInvokedOnReturnedInstanceFromContext()
{
RecluseSpider spider = getInstanceByType(RecluseSpider.class);
@@ -338,7 +338,7 @@
}
@Test(groups = { "events", "stub" })
- @SpecAssertion(section = "10.6.1", id = "p")
+ @SpecAssertion(section = "10.5", id = "ca")
public void testAsynchronousObserverThrowsExceptionIsLogged() throws Exception
{
new RunInDependentContext()
@@ -356,14 +356,14 @@
}
@Test(groups = { "events", "stub" })
- @SpecAssertion(section = "10.6.2", id = "a")
+ @SpecAssertion(section = "10.5.1", id = "review") // I think this has been removed from the spec
public void testAsynchronousObserverMethodContexts()
{
assert false;
}
@Test(groups = { "events" }, expectedExceptions = { IllegalArgumentException.class })
- @SpecAssertion(section = "11.2.8", id = "d")
+ @SpecAssertion(section = "11.3.10", id = "d")
public void testDuplicateBindingsToFireFails() throws Exception
{
new RunInDependentContext()
@@ -378,12 +378,9 @@
}.run();
}
- // FIXME the assertion is being verified indirectly by verifying outcome
- // to verify directly, would need to mock BeanManager (very hard) or
- // intercept the call to BeanManager#fireEvent() (equally hard)
@Test(groups = { "events" })
- @SpecAssertion(section = "10.4.1", id = "ed")
- public void testFireMethodCallsManagerFireWithEventObject()
+ @SpecAssertion(section = "10.3.1", id = "eda")
+ public void testEventFireFiresEvent()
{
BullTerrier.reset();
getInstanceByType(DogWhisperer.class).issueTamingCommand();
@@ -393,21 +390,21 @@
}
@Test(groups = { "events", "underInvestigation" })
- @SpecAssertion(section = "11.2.7", id = "a")
+ @SpecAssertion(section = "11.2.7", id = "review") // removed from spec?
public void testObserverMethodCallsManagerAddObserverWithObserverObject()
{
assert false;
}
@Test(groups = { "events", "underInvestigation" })
- @SpecAssertion(section = "10.4.1", id = "ee")
+ @SpecAssertion(section = "10.4.1", id = "review") // removed from spec?
public void testObserverMethodCallsManagerAddObserverWithAllBindingAnnotationsExceptFires()
{
assert false;
}
@Test(groups = { "events" }, expectedExceptions = IllegalArgumentException.class)
- @SpecAssertion(section = "11.2.9", id = "c")
+ @SpecAssertion(section = "11.3.11", id = "c")
public void testEventObjectContainsTypeVariablesWhenResolvingFails()
{
eventObjectContainsTypeVariables(new ArrayList<String>());
@@ -434,8 +431,8 @@
@Test(groups = { "events" })
@SpecAssertions( {
- @SpecAssertion(section = "10.2.2", id = "b"),
- @SpecAssertion(section = "10.2.2", id = "c")
+ @SpecAssertion(section = "10.2.3", id = "b"),
+ @SpecAssertion(section = "10.2.3", id = "c")
} )
public void testObserverMethodNotifiedWhenBindingsMatch()
{
@@ -445,56 +442,56 @@
}
@Test(groups = { "events", "stub" })
- @SpecAssertions( { @SpecAssertion(section = "10.7", id = "a") })
+ @SpecAssertions( { @SpecAssertion(section = "10.7", id = "review") }) // removed from spec?
public void testEventTypeMappedToJmsTopic()
{
assert false;
}
@Test(groups = { "events", "stub" })
- @SpecAssertions( { @SpecAssertion(section = "10.7", id = "b") })
+ @SpecAssertions( { @SpecAssertion(section = "10.7", id = "review") }) // removed from spec?
public void testEventMappingIsObserverMethodDeclaredByInterface()
{
assert false;
}
@Test(groups = { "events", "stub" })
- @SpecAssertions( { @SpecAssertion(section = "10.7", id = "c") })
+ @SpecAssertions( { @SpecAssertion(section = "10.7", id = "review") }) // removed from spec?
public void testEventParameterSpecifiesMappedEventTypeAndBindings()
{
assert false;
}
@Test(groups = { "events", "stub" })
- @SpecAssertions( { @SpecAssertion(section = "10.7", id = "d") })
+ @SpecAssertions( { @SpecAssertion(section = "10.7", id = "review") }) // removed from spec?
public void testMessageDestinationInjectedIsMappedTopic()
{
assert false;
}
@Test(groups = { "events", "stub" })
- @SpecAssertions( { @SpecAssertion(section = "10.7", id = "e") })
+ @SpecAssertions( { @SpecAssertion(section = "10.7", id = "review") }) // removed from spec?
public void testEventMappingMemberOfAnyInterface()
{
assert false;
}
@Test(groups = { "events", "stub" })
- @SpecAssertions( { @SpecAssertion(section = "10.7", id = "f") })
+ @SpecAssertions( { @SpecAssertion(section = "10.7", id = "review") }) // removed from spec?
public void testObserversOfJmsTopicMustBeAsynchronous()
{
assert false;
}
@Test(groups = { "events", "stub" })
- @SpecAssertions( { @SpecAssertion(section = "10.7", id = "g") })
+ @SpecAssertions( { @SpecAssertion(section = "10.7", id = "review") }) // removed from spec?
public void testObserversNotifiedOfEventFromJmsTopic()
{
assert false;
}
@Test(groups = { "events", "stub" })
- @SpecAssertions( { @SpecAssertion(section = "10.7", id = "g") })
+ @SpecAssertions( { @SpecAssertion(section = "10.7", id = "review") }) // removed from spec?
public void testEventsDistributedToProcessesWithSameTypeAndJmsTopic()
{
assert false;
15 years, 4 months
[webbeans-commits] Webbeans SVN: r3062 - tck/trunk/impl/src/main/resources.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2009-07-16 00:32:21 -0400 (Thu, 16 Jul 2009)
New Revision: 3062
Modified:
tck/trunk/impl/src/main/resources/tck-audit.xml
Log:
clarified assertion
Modified: tck/trunk/impl/src/main/resources/tck-audit.xml
===================================================================
--- tck/trunk/impl/src/main/resources/tck-audit.xml 2009-07-16 03:55:20 UTC (rev 3061)
+++ tck/trunk/impl/src/main/resources/tck-audit.xml 2009-07-16 04:32:21 UTC (rev 3062)
@@ -3729,11 +3729,11 @@
</assertion>
<assertion id="c">
- <text>If the observer method is any other kind of transactional observer method, it is called in an unspecified transaction context, but with the same client security context and lifecycle contexts as the transaction that just completed.</text>
+ <text>If the observer method is any other kind of transactional observer method, it is called in an unspecified transaction context, but with the same client security context and lifecycle contexts as the transaction that just completed.</text>
</assertion>
- <assertion id="d">
- <text>If an observer method is not an asynchronous observer method, and not a before completion transactional method, and not any other kind of transactional observer method, then the observer method is called in the same transaction context, client security context and lifecycle contexts as the invocation of |Event.fire()| or |BeanManager.fireEvent()|.</text>
+ <assertion id="da">
+ <text>If an observer method is not a before completion transactional method, and not any other kind of transactional observer method, then the observer method is called in the same transaction context, client security context and lifecycle contexts as the invocation of |Event.fire()| or |BeanManager.fireEvent()|.</text>
</assertion>
<assertion id="e">
15 years, 4 months
[webbeans-commits] Webbeans SVN: r3061 - in tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests: decorators/definition/broken/tooManyDecoratorsElements and 5 other directories.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2009-07-15 23:55:20 -0400 (Wed, 15 Jul 2009)
New Revision: 3061
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/enabledDecoratorIsNotDecorator/EnabledDecoratorNotADecoratorTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/tooManyDecoratorsElements/TooManyDecoratorElementsTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/name/NameDefinitionTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/broken/nonEmptyNamed/NonEmptyNamedTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/broken/tooManyDeploymentTypes/TooManyDeploymentTypesTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/defaultNamed/DefaultNamedTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/manager/ManagerTest.java
Log:
matched bean manager tests, default name tests, other misc tests
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/enabledDecoratorIsNotDecorator/EnabledDecoratorNotADecoratorTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/enabledDecoratorIsNotDecorator/EnabledDecoratorNotADecoratorTest.java 2009-07-16 02:07:29 UTC (rev 3060)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/enabledDecoratorIsNotDecorator/EnabledDecoratorNotADecoratorTest.java 2009-07-16 03:55:20 UTC (rev 3061)
@@ -27,6 +27,7 @@
/**
* @author pmuir
*
+ * Spec version: 20090625
*/
@Artifact
@ExpectedDeploymentException(DeploymentError.class)
@@ -35,7 +36,7 @@
{
@Test
- @SpecAssertion(section="8.2", id="c")
+ @SpecAssertion(section="8.2", id="review") // This assertion doesn't seem to be in the latest version of the spec
public void testEnabledDecoratorNotADecoratorTest()
{
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/tooManyDecoratorsElements/TooManyDecoratorElementsTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/tooManyDecoratorsElements/TooManyDecoratorElementsTest.java 2009-07-16 02:07:29 UTC (rev 3060)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/broken/tooManyDecoratorsElements/TooManyDecoratorElementsTest.java 2009-07-16 03:55:20 UTC (rev 3061)
@@ -31,6 +31,7 @@
/**
* @author pmuir
*
+ * Spec version: 20090625
*/
@Artifact
@ExpectedDeploymentException(DeploymentError.class)
@@ -44,7 +45,7 @@
{
@Test
- @SpecAssertion(section="8.2", id="e")
+ @SpecAssertion(section="8.2", id="review") // This assertion has been removed from the spec
public void testTooManyDecoratorElements()
{
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/name/NameDefinitionTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/name/NameDefinitionTest.java 2009-07-16 02:07:29 UTC (rev 3060)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/name/NameDefinitionTest.java 2009-07-16 03:55:20 UTC (rev 3061)
@@ -10,7 +10,7 @@
/**
*
- * Spec version: 20090519
+ * Spec version: 20090625
*
*/
@Artifact
@@ -19,7 +19,7 @@
@Test
@SpecAssertions({
- @SpecAssertion(section="2.6.1", id = "a"),
+ @SpecAssertion(section="2.5.1", id = "a"),
@SpecAssertion(section="2", id="e"),
@SpecAssertion(section = "3.2.3", id = "bb")
})
@@ -32,9 +32,9 @@
@Test
@SpecAssertions({
- @SpecAssertion(section= "2.6.2", id = "a"),
+ @SpecAssertion(section= "2.5.2", id = "a"),
@SpecAssertion(section = "3.2.6", id = "a"),
- @SpecAssertion(section = "2.6.1", id = "d")
+ @SpecAssertion(section = "2.5.1", id = "d")
})
public void testDefaultNamed()
{
@@ -47,7 +47,7 @@
@Test
@SpecAssertions({
@SpecAssertion(section = "2.7", id = "a"),
- @SpecAssertion(section = "2.7.1.3", id = "b")
+ @SpecAssertion(section = "2.7.1.3", id = "aaa")
})
public void testSterotypeDefaultsName()
{
@@ -58,7 +58,7 @@
@Test
@SpecAssertions({
- @SpecAssertion(section="2.6.3", id = "a"),
+ @SpecAssertion(section="2.5.3", id = "a"),
@SpecAssertion(section="2", id="e")
})
public void testNotNamedInJava()
@@ -68,7 +68,7 @@
assert bean.getName() == null;
}
- @Test @SpecAssertion(section="2.6.3", id = "a")
+ @Test @SpecAssertion(section="2.5.3", id = "a")
public void testNotNamedInStereotype()
{
assert getBeans(Minnow.class).size() == 1;
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/broken/nonEmptyNamed/NonEmptyNamedTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/broken/nonEmptyNamed/NonEmptyNamedTest.java 2009-07-16 02:07:29 UTC (rev 3060)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/broken/nonEmptyNamed/NonEmptyNamedTest.java 2009-07-16 03:55:20 UTC (rev 3061)
@@ -10,17 +10,16 @@
import org.testng.annotations.Test;
/**
- * Spec version: 20090519
+ * Spec version: 20090625
*/
@Artifact
@ExpectedDeploymentException(DefinitionError.class)
public class NonEmptyNamedTest extends AbstractJSR299Test
{
-
@Test
@SpecAssertions({
- @SpecAssertion(section = "2.7.1.3", id = "aa"),
- @SpecAssertion(section = "2.6.2", id = "e")
+ @SpecAssertion(section = "2.7.1.3", id = "aab"),
+ @SpecAssertion(section = "2.5.2", id = "e")
})
public void testStereotypeWithNonEmptyNamed()
{
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/broken/tooManyDeploymentTypes/TooManyDeploymentTypesTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/broken/tooManyDeploymentTypes/TooManyDeploymentTypesTest.java 2009-07-16 02:07:29 UTC (rev 3060)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/broken/tooManyDeploymentTypes/TooManyDeploymentTypesTest.java 2009-07-16 03:55:20 UTC (rev 3061)
@@ -17,7 +17,7 @@
{
@Test
- @SpecAssertion(section = "2.7.1.1", id = "bb")
+ @SpecAssertion(section = "2.7.1.1", id = "review") // Deployment types have been removed from the spec
public void testStereotypeWithTooManyDeploymentTypes()
{
assert false;
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/defaultNamed/DefaultNamedTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/defaultNamed/DefaultNamedTest.java 2009-07-16 02:07:29 UTC (rev 3060)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/definition/stereotype/defaultNamed/DefaultNamedTest.java 2009-07-16 03:55:20 UTC (rev 3061)
@@ -7,7 +7,7 @@
import org.testng.annotations.Test;
/**
- * Spec version: 20090519
+ * Spec version: 20090625
*/
@Artifact
public class DefaultNamedTest extends AbstractJSR299Test
@@ -15,8 +15,8 @@
@Test
@SpecAssertions({
- @SpecAssertion(section = "2.7.1.3", id = "b"),
- @SpecAssertion(section = "2.6.2", id = "e")
+ @SpecAssertion(section = "2.7.1.3", id = "aaa"),
+ @SpecAssertion(section = "2.5.2", id = "e")
})
public void testStereotypeWithEmptyNamed()
{
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/manager/ManagerTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/manager/ManagerTest.java 2009-07-16 02:07:29 UTC (rev 3060)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/manager/ManagerTest.java 2009-07-16 03:55:20 UTC (rev 3061)
@@ -15,14 +15,14 @@
/**
*
- * Spec version: 20090519
+ * Spec version: 20090625
*
*/
@Artifact
public class ManagerTest extends AbstractJSR299Test
{
@Test(groups={"manager", "injection", "deployment"})
- @SpecAssertion(section="11.2", id = "c")
+ @SpecAssertion(section="11.3", id = "c")
public void testInjectingManager() throws Exception
{
new RunInDependentContext()
@@ -39,22 +39,22 @@
}
@Test
- @SpecAssertion(section = "11.2", id = "a")
+ @SpecAssertion(section = "11.3", id = "a")
public void testContainerProvidesManagerBean()
{
assert getBeans(BeanManager.class).size() > 0;
}
@Test
- @SpecAssertion(section = "11.2", id = "a")
+ @SpecAssertion(section = "11.3", id = "a")
public void testManagerBeanIsDependentScoped()
{
Bean<BeanManager> beanManager = getBeans(BeanManager.class).iterator().next();
assert beanManager.getScopeType().equals(Dependent.class);
}
- @Test
- @SpecAssertion(section = "11.2", id = "a")
+ @Test(groups = {"deployment"})
+ @SpecAssertion(section = "11.3", id = "review") // deployment types removed from spec
public void testManagerBeanHasStandardDeployment()
{
Bean<BeanManager> beanManager = getBeans(BeanManager.class).iterator().next();
@@ -62,7 +62,7 @@
}
@Test
- @SpecAssertion(section = "11.2", id = "a")
+ @SpecAssertion(section = "11.3", id = "a")
public void testManagerBeanHasCurrentBinding()
{
Bean<BeanManager> beanManager = getBeans(BeanManager.class).iterator().next();
@@ -71,8 +71,8 @@
@Test
@SpecAssertions({
- @SpecAssertion(section = "11.2.1", id = "a"),
- @SpecAssertion(section = "11.2.1", id = "b")
+ @SpecAssertion(section = "11.3.1", id = "a"),
+ @SpecAssertion(section = "11.3.1", id = "b")
})
public void testGetReferenceReturnsContextualInstance()
{
15 years, 4 months
[webbeans-commits] Webbeans SVN: r3060 - tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2009-07-15 22:07:29 -0400 (Wed, 15 Jul 2009)
New Revision: 3060
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/PassivatingContextTest.java
Log:
updated passivation tests - needs major review
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/PassivatingContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/PassivatingContextTest.java 2009-07-16 01:47:19 UTC (rev 3059)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/PassivatingContextTest.java 2009-07-16 02:07:29 UTC (rev 3060)
@@ -24,31 +24,30 @@
* @author Nicklas Karlsson
* @author David Allen
*
- * Spec version: PRD2
+ * Spec version: 20090625
*/
@Artifact
@BeansXml("beans.xml")
@Packaging(PackagingType.EAR)
public class PassivatingContextTest extends AbstractJSR299Test
{
-
private static final Annotation BIG_LITERAL = new AnnotationLiteral<Big>() {};
- @Test(groups = { "contexts", "passivation" })
- @SpecAssertion(section = "8.4", id = "b")
- public void testSimpleWebBeanWithSerializableImplementationClassOK()
+ @Test(groups = { "contexts", "passivation", "review" })
+ @SpecAssertion(section = "6.6.1", id = "b")
+ public void testManagedWebBeanWithSerializableImplementationClassOK()
{
Set<Bean<Jyvaskyla>> beans = getBeans(Jyvaskyla.class);
assert !beans.isEmpty();
}
- @Test @SpecAssertion(section="8.4", id = "ca")
+ @Test @SpecAssertion(section="unknown", id = "unknown")
public void testInjectionOfDependentSerializableProductIntoNormalBean()
{
getInstanceByType(NumberConsumer.class).ping();
}
- @Test @SpecAssertion(section="8.4", id = "cb")
+ @Test @SpecAssertion(section="unknown", id = "unknown")
public void testInjectionOfDependentPrimitiveProductIntoNormalBean()
{
getInstanceByType(FooConsumer.class).ping();
@@ -56,10 +55,10 @@
@Test(groups = { "contexts", "passivation" })
@SpecAssertions({
- @SpecAssertion(section = "8.4", id = "f"),
- @SpecAssertion(section = "8.4", id = "i")
+ @SpecAssertion(section = "6.6.4", id = "unknown"),
+ @SpecAssertion(section = "6.6.4", id = "unknown")
})
- public void testSimpleWebBeanDeclaringPassivatingScopeIsSerializedWhenContextIsPassivated() throws IOException, ClassNotFoundException
+ public void testManagedWebBeanDeclaringPassivatingScopeIsSerializedWhenContextIsPassivated() throws IOException, ClassNotFoundException
{
Kajaani instance = getInstanceByType(Kajaani.class);
instance.setTheNumber(100);
@@ -85,7 +84,7 @@
* @throws IOException
*/
@Test(groups = { "contexts", "passivation", "ri-broken" })
- @SpecAssertion(section = "8.4", id = "j")
+ @SpecAssertion(section = "6.6.2", id = "unknown")
public void testDependentEJBsAreSerializable() throws IOException, ClassNotFoundException
{
Set<Bean<Vaasa>> vaasaBeans = getBeans(Vaasa.class);
@@ -94,22 +93,22 @@
}
@Test(groups = { "contexts", "passivation" })
- @SpecAssertion(section = "8.4", id = "l")
- public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoTransientFieldOK()
+ @SpecAssertion(section = "6.6.2", id = "unknown")
+ public void testManagedDependentWebBeanWithNonSerializableImplementationInjectedIntoTransientFieldOK()
{
Set<Bean<Joensuu>> beans = getBeans(Joensuu.class);
assert !beans.isEmpty();
}
@Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "8.4", id = "q")
+ @SpecAssertion(section = "6.6.2", id = "unknown")
public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoNonTransientFieldOfWebBeanWithPassivatingScopeFails()
{
getInstanceByType(Nokia_Broken.class).ping();
}
@Test(groups = { "contexts", "passivation" })
- @SpecAssertion(section = "8.4", id = "q")
+ @SpecAssertion(section = "unknown", id = "unknown")
public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoTransientFieldOfWebBeanWithPassivatingScopeOK()
{
Set<Bean<Hyvinkaa>> beans = getBeans(Hyvinkaa.class);
@@ -117,56 +116,56 @@
}
@Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "8.4", id = "r")
+ @SpecAssertion(section = "unknown", id = "unknown")
public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoConstructorParameterOfWebBeanWithPassivatingScopeFails()
{
getInstanceByType(Loviisa_Broken.class).ping();
}
@Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "8.4", id = "s")
+ @SpecAssertion(section = "unknown", id = "unknown")
public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoInitializerParameterOfWebBeanWithPassivatingScopeFails()
{
getInstanceByType(Kuopio_Broken.class).ping();
}
@Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "8.4", id = "t")
+ @SpecAssertion(section = "unknown", id = "unknown")
public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoProducerMethodParameterWithPassivatingScopeFails()
{
getInstanceByType(Violation2.class).ping();
}
@Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "8.4", id = "q")
+ @SpecAssertion(section = "unknown", id = "unknown")
public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoNonTransientFieldOfWebBeanWithPassivatingScopeFails()
{
getInstanceByType(Uusikaupunki_Broken.class).ping();
}
@Test(groups = { "contexts", "passivation" })
- @SpecAssertion(section = "8.4", id = "q")
+ @SpecAssertion(section = "unknown", id = "unknown")
public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoTransientFieldOfWebBeanWithPassivatingScopeOK()
{
getInstanceByType(Salo_Broken.class).ping();
}
@Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "8.4", id = "r")
+ @SpecAssertion(section = "unknown", id = "unknown")
public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoConstructorParameterOfWebBeanWithPassivatingScopeFails()
{
getInstanceByType(Loviisa_Broken.class).ping();
}
@Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "8.4", id = "s")
+ @SpecAssertion(section = "unknown", id = "unknown")
public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoInitializerParameterOfWebBeanWithPassivatingScopeFails()
{
getInstanceByType(Mikkeli_Broken.class).ping();
}
@Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "8.4", id = "t")
+ @SpecAssertion(section = "unknown", id = "unknown")
public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoProducerMethodParameterWithPassivatingScopeFails()
{
getInstanceByType(Violation2.class,BIG_LITERAL).ping();
@@ -181,14 +180,14 @@
}
@Test(expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "8.4", id = "cc")
+ @SpecAssertion(section = "unknown", id = "unknown")
public void testNonSerializableProducerFieldDeclaredPassivatingThrowsIllegalProductException()
{
getInstanceByType(HelsinkiNonSerializable.class).ping();
}
@Test(groups = { "contexts", "passivation" })
- @SpecAssertion(section = "8.4", id = "v")
+ @SpecAssertion(section = "unknown", id = "unknown")
public void testIsSerializableOnBean()
{
assert !getBeans(Sysma.class).iterator().next().isSerializable();
15 years, 4 months
[webbeans-commits] Webbeans SVN: r3059 - in tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests: implementation/producer/field/definition and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2009-07-15 21:47:19 -0400 (Wed, 15 Jul 2009)
New Revision: 3059
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/DecoratorDefinitionTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/producer/field/definition/ProducerFieldDefinitionTest.java
Log:
matched decorator and producer field tests
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/DecoratorDefinitionTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/DecoratorDefinitionTest.java 2009-07-16 01:31:46 UTC (rev 3058)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/decorators/definition/DecoratorDefinitionTest.java 2009-07-16 01:47:19 UTC (rev 3059)
@@ -35,12 +35,12 @@
/**
* @author pmuir
*
+ * Spec version: 20090625
*/
@Artifact
@BeansXml("beans.xml")
public class DecoratorDefinitionTest extends AbstractJSR299Test
{
-
@Test
@SpecAssertions
({
@@ -48,7 +48,7 @@
@SpecAssertion(section="8.1", id="d"),
@SpecAssertion(section="8.1.1", id="a"),
@SpecAssertion(section="8.1.3", id="c"),
- @SpecAssertion(section="8.3", id="a"),
+ @SpecAssertion(section="8.3", id="aa"),
@SpecAssertion(section="11.1.1", id="a")
})
@@ -121,7 +121,7 @@
@Test
@SpecAssertions({
@SpecAssertion(section="8.2", id="b"),
- @SpecAssertion(section="8.3", id="a")
+ @SpecAssertion(section="8.3", id="aa")
})
public void testDecoratorOrdering()
{
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/producer/field/definition/ProducerFieldDefinitionTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/producer/field/definition/ProducerFieldDefinitionTest.java 2009-07-16 01:31:46 UTC (rev 3058)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/producer/field/definition/ProducerFieldDefinitionTest.java 2009-07-16 01:47:19 UTC (rev 3059)
@@ -18,20 +18,19 @@
/**
*
- * Spec version: 20090519
+ * Spec version: 20090625
*
*/
@Artifact
@BeansXml("beans.xml")
public class ProducerFieldDefinitionTest extends AbstractJSR299Test
-{
-
+{
private static final Annotation TAME_LITERAL = new AnnotationLiteral<Tame>() {};
private static final Annotation FOO_LITERAL = new AnnotationLiteral<Foo>() {};
private static final Annotation STATIC_LITERAL = new AnnotationLiteral<Static>() {};
- @Test(groups = { "producerField" })
- @SpecAssertion(section = "2.5.3", id = "h")
+ @Test(groups = { "producerField", "deployment" })
+ @SpecAssertion(section = "review", id = "review")
public void testProducerFieldInheritsDeploymentTypeOfDeclaringWebBean() throws Exception
{
Set<Bean<Tarantula>> tarantulaBeans = getBeans(Tarantula.class);
@@ -40,7 +39,7 @@
}
@Test(groups = "producerField")
- @SpecAssertion(section = "3.5", id = "fa")
+ @SpecAssertion(section = "3.4", id = "fa")
public void testParameterizedReturnType() throws Exception
{
new RunInDependentContext()
@@ -57,9 +56,9 @@
@Test(groups = { "producerField", "deployment" })
@SpecAssertions({
- @SpecAssertion(section = "3.5", id = "j"),
- @SpecAssertion(section = "3.5", id = "c"),
- @SpecAssertion(section = "3.5.2", id ="a")
+ @SpecAssertion(section = "3.4", id = "j"),
+ @SpecAssertion(section = "3.4", id = "c"),
+ @SpecAssertion(section = "3.4.2", id ="a")
})
public void testBeanDeclaresMultipleProducerFields()
{
@@ -81,7 +80,7 @@
}
@Test(groups = "producerField")
- @SpecAssertion(section = "3.5.1", id = "c")
+ @SpecAssertion(section = "3.4.1", id = "c")
public void testApiTypeForClassReturn()
{
Set<Bean<Tarantula>> tarantulaBeans = getBeans(Tarantula.class);
@@ -97,7 +96,7 @@
}
@Test(groups = { "producerField" })
- @SpecAssertion(section = "3.5.1", id = "a")
+ @SpecAssertion(section = "3.4.1", id = "a")
public void testApiTypeForInterfaceReturn()
{
Set<Bean<Animal>> animalBeans = getBeans(Animal.class, new AnnotationLiteral<AsAnimal>() {});
@@ -109,7 +108,7 @@
}
@Test(groups = { "producerField" })
- @SpecAssertion(section = "3.5.1", id = "b")
+ @SpecAssertion(section = "3.4.1", id = "b")
public void testApiTypeForPrimitiveReturn()
{
Set<Bean<?>> beans = getCurrentManager().getBeans("SpiderSize");
@@ -122,7 +121,7 @@
@Test(groups = { "producerField" })
@SpecAssertions({
- @SpecAssertion(section = "3.5.1", id = "b"),
+ @SpecAssertion(section = "3.4.1", id = "b"),
@SpecAssertion(section = "2.2.1", id = "i")
})
public void testApiTypeForArrayTypeReturn()
@@ -137,7 +136,7 @@
@Test(groups = "producerField")
@SpecAssertions({
- @SpecAssertion(section = "3.5.2", id = "f"),
+ @SpecAssertion(section = "3.4.2", id = "f"),
@SpecAssertion(section="2.3.3", id="c")
})
public void testBindingType()
@@ -150,7 +149,7 @@
}
@Test(groups = "producerField")
- @SpecAssertion(section = "3.5.2", id = "b")
+ @SpecAssertion(section = "3.4.2", id = "b")
public void testScopeType()
{
Set<Bean<Tarantula>> tarantulaBeans = getBeans(Tarantula.class, TAME_LITERAL, FOO_LITERAL);
@@ -160,7 +159,7 @@
}
@Test(groups = "producerField")
- @SpecAssertion(section = "3.5.2", id = "d")
+ @SpecAssertion(section = "3.4.2", id = "review")
public void testDeploymentType()
{
Set<Bean<Tarantula>> tarantulaBeans = getBeans(Tarantula.class, TAME_LITERAL, FOO_LITERAL);
@@ -171,8 +170,8 @@
@Test(groups = "producerField")
@SpecAssertions({
- @SpecAssertion(section = "3.5.2", id = "c"),
- @SpecAssertion(section="2.6.1", id = "c")
+ @SpecAssertion(section = "3.4.2", id = "c"),
+ @SpecAssertion(section="2.5.1", id = "c")
})
public void testNamedField()
{
@@ -186,9 +185,9 @@
@Test(groups = { "producerField" })
@SpecAssertions({
- @SpecAssertion(section = "2.6.3", id = "a"),
- @SpecAssertion(section = "3.5.4", id = "a"),
- @SpecAssertion(section = "2.6.1", id = "d")
+ @SpecAssertion(section = "2.5.3", id = "a"),
+ @SpecAssertion(section = "3.4.3", id = "a"),
+ @SpecAssertion(section = "2.5.1", id = "d")
})
public void testDefaultNamedField()
{
@@ -202,7 +201,7 @@
@Test(groups = "producerField")
@SpecAssertions({
@SpecAssertion(section = "2.7.2", id = "c"),
- @SpecAssertion(section = "3.5.2", id = "e")
+ @SpecAssertion(section = "3.4.2", id = "e")
})
public void testStereotype()
{
15 years, 4 months
[webbeans-commits] Webbeans SVN: r3053 - tck/trunk/impl/src/main/resources.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2009-07-15 01:38:27 -0400 (Wed, 15 Jul 2009)
New Revision: 3053
Modified:
tck/trunk/impl/src/main/resources/tck-audit.xml
Log:
updated section 12 assertions to latest version of spec
Modified: tck/trunk/impl/src/main/resources/tck-audit.xml
===================================================================
--- tck/trunk/impl/src/main/resources/tck-audit.xml 2009-07-15 04:20:28 UTC (rev 3052)
+++ tck/trunk/impl/src/main/resources/tck-audit.xml 2009-07-15 05:38:27 UTC (rev 3053)
@@ -4450,17 +4450,49 @@
</section>
<section id="12.1" title="Bean deployment archives">
- <assertion id="a">
- <text>Bean classes must be deployed in any EAR, JAR, WAR, EJB-JAR or RAR archive or directory in the application classpath that has a file named |beans.xml| in the metadata directory (META-INF, or WEB-INF in the case of a WAR). Any such archive or directory is called a bean deployment archive.</text>
+ <assertion id="aa" testable="false">
+ <text>Bean classes must be deployed in bean deployment archives.</text>
</assertion>
-
- <assertion id="b">
- <text>When searching for beans, the container considers any Java class in any bean deployment archive, and any |ejb-jar.xml| file in any bean deployment archive.</text>
+
+ <assertion id="ab">
+ <text>A library jar, EJB jar or rar archive is a bean deployment archive if it has a file named |beans.xml| in the |META-INF| directory.</text>
</assertion>
+
+ <assertion id="ac">
+ <text>The |WEB-INF/classes| directory of a war is a bean deployment archive if there is a file named |beans.xml| in the |WEBINF| directory of the war.</text>
+ </assertion>
+
+ <assertion id="ad">
+ <text>A directory in the JVM classpath is a bean deployment archive if it has a file named |beans.xml| in the |META-INF| directory.</text>
+ </assertion>
- <assertion id="c">
- <text>If a bean is deployed to a location that is not in the application classpath, or does not contain a file named |beans.xml| in the metadata directory, it will not be discovered by the container.</text>
+ <assertion id="ba">
+ <text>The container searches for beans in bean deployment archives in the application classpath.</text>
</assertion>
+
+ <assertion id="bb">
+ <text>In an application deployed as an ear, the container searches every bean deployment archive belonging to the ear, including bean deployment archives contained inside wars. The bean deployment archives might be library jars, EJB jars, rars or war |WEB-INF/classes| directories.</text>
+ </assertion>
+
+ <assertion id="bc">
+ <text>In an application deployed as a war, the container searches every bean deployment archive contained in the war. The bean deployment archives might be library jars or the |WEB-INF/classes| directory.</text>
+ </assertion>
+
+ <assertion id="bd">
+ <text>An embeddable EJB container searches each bean deployment archive in the JVM classpath that is listed in the value of the embeddable container initialization property |javax.ejb.embeddable.modules|, or every bean deployment archive in the JVM classpath if the property is not specified. The bean deployment archives might be directories, library jars or EJB jars.</text>
+ </assertion>
+
+ <assertion id="be">
+ <text>When searching for beans, the container considers any Java class in any bean deployment archive, and any |ejb-jar.xml| file in the metadata directory of any EJB bean deployment archive.</text>
+ </assertion>
+
+ <assertion id="ca">
+ <text>If a bean is deployed in an archive or directory that does not contain a file named |beans.xml| in the metadata directory, it will not be discovered by the container.</text>
+ </assertion>
+
+ <assertion id="d">
+ <text>If a bean class is deployed in two different bean deployment archives, non-portable behaviour results. Portable applications must deploy each bean class in exactly one bean deployment archive.</text>
+ </assertion>
</section>
<section id="12.2" title="Application initialization lifecycle">
@@ -4503,12 +4535,11 @@
</assertion>
<assertion id="b">
- <text>For each Java class in any bean deployment archive, the container must create an |AnnotatedType| representing the class and fire an event of type |ProcessAnnotatedType|, as defined in Section
-11.5.5, "ProcessAnnotatedType event".</text>
+ <text>For each Java class in any bean deployment archive, the container must create an |AnnotatedType| representing the class and fire an event of type |ProcessAnnotatedType|, as defined in Section 11.5.5, "ProcessAnnotatedType event".</text>
</assertion>
<assertion id="c">
- <text>For each Java class in any bean deployment archive, the container must inspect the class metadata to determine if it is a bean or other Java EE component class supporting injection.</text>
+ <text>For each Java class in any bean deployment archive, the container must inspect the class metadata to determine if it is a bean or other Java EE component class supporting injection, or if it declares event mappings.</text>
</assertion>
<assertion id="d">
@@ -4516,47 +4547,44 @@
</assertion>
<assertion id="e">
- <text>For each Java class in any bean deployment archive, the container must, if the class is a managed bean, session bean, producer method or field, or other Java EE component class supporting injection, create an |InjectionTarget| for the class, as defined in Section 11.4.1, "The InjectionTarget interface", and fire an event of type |ProcessInjectionTarget|, as defined in Section 11.5.6, "ProcessInjectionTarget event"</text>
+ <text>For each Java class in any bean deployment archive, the container must, if the class is a managed bean, session bean, producer method or field, or other Java EE component class supporting injection, create an |InjectionTarget| for the class, as defined in Section 11.2, "The Producer and InjectionTarget interfaces", and fire an event of type |ProcessInjectionTarget|, as defined in Section 11.5.6, "ProcessInjectionTarget event"</text>
</assertion>
- <assertion id="f">
- <text>For each Java class in any bean deployment archive, the container must, if the class is a bean, create a |Bean| object that implements the rules defined in Chapter 7, "Bean lifecycle", and fire an event of type |ProcessBean|, as defined in Section 11.5.7, "ProcessBean event".</text>
+ <assertion id="fa">
+ <text>For each Java class in any bean deployment archive, the container must, if the class is a bean, create a |Bean| object that implements the rules defined in Section 7.3.1, "Lifecycle of managed beans", Section 7.3.2, "Lifecycle of stateful session beans" or Section 7.3.3, "Lifecycle of stateless session and singleton beans", and fire an event which is a subtype of |ProcessBean|, as defined in Section 11.5.8, "ProcessBean event".</text>
</assertion>
-
- <assertion id="g">
- <text>If the class is a bean, the container must search the class for producer methods and fields, and for each producer method or field create an InjectionTarget, as defined in Section 11.4.1, "The InjectionTarget interface", for the producer method or field and fire an event of type |ProcessInjectionTarget|, as defined in Section 11.5.6, "ProcessInjectionTarget event".</text>
+
+ <assertion id="fb">
+ <text>For each session bean declared in |ejb-jar.xml| in each EJB bean deployment archive the container must create a |Bean| object that implements the rules defined in Section 7.3.2, "Lifecycle of stateful session beans" or Section 7.3.3, "Lifecycle of stateless session and singleton beans", and fire an event of type |ProcessSessionBean|, as defined in Section 11.5.8, "ProcessBean event".</text>
</assertion>
-
- <assertion id="h">
- <text>If the class is a bean, the container must search the class for producer methods and fields, and for each producer method or field create a Bean object that implements the rules defined in Chapter 7, Bean lifecycle and fire an event of type |ProcessBean|, as defined in Section 11.5.7, "ProcessBean event".</text>
+
+ <assertion id="fc">
+ <text>For each bean, the container must search the clas for producer methods and fields, including resources, and for each producer method or field create a |Producer|, as defined in Section 11.2, "The Producer and InjectionTarget interfaces", and fire an event of type |ProcessProducer|, as defined in Section 11.5.7, "ProcessProducer event", and then
+create a |Bean| object that implements the rules defined in Section 7.3.4, "Lifecycle of producer methods", Section 7.3.5, "Lifecycle of producer fields" or Section 7.3.6, "Lifecycle of resources", and fire an event which is a subtype of |ProcessBean|, as defined in Section 11.5.8, "ProcessBean event".</text>
</assertion>
-
- <assertion id="i">
- <text>If the class is a bean, the container must search the class for observer methods, and for each observer method create an Observer, as defined in Section 10.6.1, �Observer method notification�, for the observer method and fire an event of type ProcessObserver, as defined in Section 11.5.8, �ProcessObserver event�.</text>
+
+ <assertion id="fd">
+ <text>For each bean, the container must search the class for observer methods, and for each observer method create an |ObserverMethod| object, as defined in Section 11.1.3, "The ObserverMethod interface" and fire an event of type |ProcessObserverMethod|, as defined in Section 11.5.9, "ProcessObserverMethod event".</text>
</assertion>
- <assertion id="j">
- <text>For each session bean declared in |ejb-jar.xml| in any bean deployment archive the container must create a |Bean| object that implements the rules defined in Chapter 7, "Bean lifecycle" and fire an event of type ProcessBean.</text>
+ <assertion id="ka">
+ <text>The container determines which policies, interceptors and decorators are enabled, according to the rules defined in Section 5.2, "Policy enablement", Section 9.4, "Interceptor enablement and ordering" and Section 8.2, "Decorator enablement and ordering", taking into account any |<enable>|, |<interceptors>| and |<Decorators>| declarations in the |beans.xml| files, and registers the |Bean| and |ObserverMethod| objects.</text>
</assertion>
- <assertion id="k">
- <text>The container determines which beans, interceptors and decorators are enabled, according to the rules defined in Section 2.5.5, "Enabled deployment types", Section 9.4, "Interceptor enablement and ordering" and Section 8.2, "Decorator enablement and ordering", taking into account any <Deploy>, <Interceptors> and <Decorators> declarations in the |beans.xml| files, and registers the |Bean| and |Observer| objects.</text>
+ <assertion id="la">
+ <text>For each enabled bean that is not an interceptor or decorator, the container registers an instance of the |Bean| interface defined in Section 11.1, "The Bean interface".</text>
</assertion>
- <assertion id="l">
- <text>For each enabled bean that is not an interceptor or decorator, the container creates and registers an instance of |Bean| that implements the rules of Chapter 7, "Bean lifecycle".</text>
- </assertion>
-
<assertion id="m">
- <text>For each enabled interceptor, the container creates and registers an instance of |Interceptor|, as defined in Section 11.1.2, "The Interceptor interface".</text>
+ <text>For each enabled interceptor, the container registers an instance of the |Interceptor| interface as defined in Section 11.1.2, "The Interceptor interface".</text>
</assertion>
<assertion id="n">
- <text>For each enabled decorator, the container creates and registers an instance of |Decorator|, as defined in Section 11.1.1, "The Decorator interface".</text>
+ <text>For each enabled decorator, the container registers an instance of the |Decorator| interface defined in Section 11.1.1, "The Decorator interface".</text>
</assertion>
- <assertion id="o">
- <text>For each observer method of an enabled bean, the container creates and registers an instance of |Observer| that implements the rules of Section 10.6.1, "Observer method notification".</text>
+ <assertion id="oa">
+ <text>For each observer method of an enabled bean, the container registers an instance of the |ObserverMethod| interface defined in Section 11.1.3, "The ObserverMethod interface".</text>
</assertion>
</section>
@@ -4568,10 +4596,18 @@
<assertion id="b">
<text>Deployment problems are detected by the container at initialization time. If a deployment problem exists in a deployment, initialization will be aborted by the container.</text>
</assertion>
-
- <assertion id="c">
- <text>Execution errors are represented by instances of |javax.enterprise.inject.InjectionException| and its subclasses.</text>
+
+ <assertion id="d">
+ <text>The container is permitted to define a non-portable mode, for use at development time, in which some definition errors and deployment problems do not cause application initialization to abort.</text>
</assertion>
+
+ <assertion id="e">
+ <text>Exceptions represent problems that may not be detected until they actually occur at runtime. All exceptions defined by this specification are unchecked exceptions.</text>
+ </assertion>
+
+ <assertion id="f">
+ <text>All exceptions defined by this specification may be safely caught and handled by the application.</text>
+ </assertion>
</section>
</specification>
15 years, 4 months