Author: shane.bryzak(a)jboss.com
Date: 2009-01-30 04:53:04 -0500 (Fri, 30 Jan 2009)
New Revision: 1361
Added:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/impl/SpecAssertions.java
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/impl/SpecAssertion.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/application/ApplicationContextTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/conversation/ConversationContextTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/PassivatingContextTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/request/RequestContextTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/session/SessionContextTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/EventTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/lookup/byname/ResolutionByNameTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/lookup/manager/ManagerTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/ContextTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/NormalContextTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/dependent/DependentContextTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/PassivatingContextTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/bean/BeanDefinitionTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/binding/BindingDefinitionTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/deployment/BrokenDeploymentTypeTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/deployment/CustomDeploymentTypeTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/deployment/DefaultDeploymentTypeTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/deployment/DeploymentTypeDefinitionTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/name/NameDefinitionTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/scope/ScopeDefinitionTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/stereotype/StereotypeDefinitionTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/type/ApiTypeDefinitionTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/EventTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/commonAnnotations/ResourceInjectionTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/decorator/DecoratorDefinitionTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/deployment/BeanDeploymentTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/enterprise/EnterpriseBeanDeclarationTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/enterprise/EnterpriseBeanLifecycleTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/enterprise/EnterpriseBeanRemoveMethodTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/enterprise/NewEnterpriseBeanTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/initializer/InitializerMethodTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/interceptor/InterceptorDefinitionTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/jms/JmsDefinitionTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/producer/field/ProducerFieldDefinitionTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/producer/field/ProducerFieldLifecycleTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/producer/method/DisposalMethodDefinitionTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/producer/method/ProducerMethodDefinitionTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/producer/method/ProducerMethodLifecycleTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/simple/NewSimpleBeanTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/simple/SimpleBeanDefinitionTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/simple/SimpleBeanLifecycleTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/realization/RealizationTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/enterprise/EnterpriseBeanSpecializationTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/producer/method/ProducerMethodSpecializationTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/simple/SimpleBeanSpecializationTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/byname/InstantiationByNameTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/byname/ResolutionByNameTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/clientProxy/ClientProxyTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/injection/InjectionTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/injectionpoint/InjectionPointTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/manager/ManagerTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/typesafe/InstantiationByTypeTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/typesafe/ResolutionByTypeTest.java
Log:
updated assertions
Modified: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/impl/SpecAssertion.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/impl/SpecAssertion.java 2009-01-29
20:32:47 UTC (rev 1360)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/impl/SpecAssertion.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -7,12 +7,8 @@
@Target(ElementType.METHOD)
@Documented
public @interface SpecAssertion
-{
-
- public String[] section();
-
- public String id() default "";
-
+{
+ public String section();
+ public String id();
public String note() default "";
-
}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/impl/SpecAssertions.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/impl/SpecAssertions.java
(rev 0)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/impl/SpecAssertions.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -0,0 +1,12 @@
+package org.jboss.webbeans.tck.impl;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+
+(a)Target(ElementType.METHOD)
+@Documented
+public @interface SpecAssertions
+{
+ public SpecAssertion[] value();
+}
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/application/ApplicationContextTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/application/ApplicationContextTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/application/ApplicationContextTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -16,7 +16,7 @@
* in the web application.
*/
@Test(groups = { "stub", "contexts", "servlet" })
- @SpecAssertion(section = "8.5.3")
+ @SpecAssertion(section = "8.5.3", id = "unknown")
public void testApplicationScopeActiveDuringServiceMethod()
{
assert false;
@@ -26,7 +26,7 @@
* The application scope is active during any Java EE web service invocation.
*/
@Test(groups = { "stub", "contexts", "webservice" })
- @SpecAssertion(section = "8.5.3")
+ @SpecAssertion(section = "8.5.3", id = "unknown")
public void testApplicationScopeActiveDuringWebSericeInvocation()
{
assert false;
@@ -38,7 +38,7 @@
* message delivery to any EJB message driven bean.
*/
@Test(groups = { "stub", "contexts", "ejb3" })
- @SpecAssertion(section = "8.5.3")
+ @SpecAssertion(section = "8.5.3", id = "unknown")
public void testApplicationScopeActiveDuringRemoteMethodInvocationOfEjb()
{
assert false;
@@ -50,7 +50,7 @@
* message delivery to any EJB message driven bean.
*/
@Test(groups = { "stub", "contexts", "ejb3" })
- @SpecAssertion(section = "8.5.3")
+ @SpecAssertion(section = "8.5.3", id = "unknown")
public void testApplicationScopeActiveDuringCallToEjbTimeoutMethod()
{
assert false;
@@ -62,7 +62,7 @@
* message delivery to any EJB message driven bean.
*/
@Test(groups = { "stub", "contexts", "ejb3" })
- @SpecAssertion(section = "8.5.3")
+ @SpecAssertion(section = "8.5.3", id = "unknown")
public void testApplicationScopeActiveDuringEjbMessageDelivery()
{
assert false;
@@ -75,7 +75,7 @@
* application
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.3")
+ @SpecAssertion(section = "8.5.3", id = "unknown")
public void testApplicationContextSharedBetweenInvokationsInApplication()
{
assert false;
@@ -85,7 +85,7 @@
* The application context is destroyed when the application is undeployed.
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.3")
+ @SpecAssertion(section = "8.5.3", id = "unknown")
public void testApplicationScopeDestroyedWhenApplicationIsUndeployed()
{
assert false;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/conversation/ConversationContextTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/conversation/ConversationContextTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/conversation/ConversationContextTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -17,7 +17,7 @@
* apply request values phase, until the response is complete.
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4")
+ @SpecAssertion(section = "8.5.4", id = "unknown")
public void
testContextActiveFromBeginningOfApplyRequestValuesPhasetoResponseCompleteForJsfRequest()
{
assert false;
@@ -28,7 +28,7 @@
* response phase
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4")
+ @SpecAssertion(section = "8.5.4", id = "unknown")
public void testContextActiveDuringRenderResponsePhaseForNonFacesJsfRequest()
{
assert false;
@@ -38,7 +38,7 @@
* Any JSF request has exactly one associated conversation
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4")
+ @SpecAssertion(section = "8.5.4", id = "unknown")
public void testJsfRequestHasExactlyOneAssociatedConversation()
{
assert false;
@@ -49,7 +49,7 @@
* the restore view phase and does not change during the request
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4")
+ @SpecAssertion(section = "8.5.4", id = "unknown")
public void
testAssociatedConversationOfJsfRequestIsDeterminedAtEndOfRestoreViewPhase()
{
assert false;
@@ -60,7 +60,7 @@
* the restore view phase and does not change during the request
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4")
+ @SpecAssertion(section = "8.5.4", id = "unknown")
public void testAssociatedConversationOfJsfRequestDoesNotChangeDuringRequest()
{
assert false;
@@ -70,7 +70,7 @@
* By default, a conversation is transient
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4")
+ @SpecAssertion(section = "8.5.4", id = "unknown")
public void testDefaultConversationIsTransient()
{
assert false;
@@ -80,7 +80,7 @@
* All long-running conversations have a string-valued unique identifier
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4")
+ @SpecAssertion(section = "8.5.4", id = "unknown")
public void testConversationsHaveUniqueStringIdentifiers()
{
assert false;
@@ -92,7 +92,7 @@
* conversation context is also destroyed.
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4")
+ @SpecAssertion(section = "8.5.4", id = "unknown")
public void testTransientConversationIsDestroyedAtEndOfJsfRequest()
{
assert false;
@@ -104,7 +104,7 @@
* conversation context is also destroyed.
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4")
+ @SpecAssertion(section = "8.5.4", id = "unknown")
public void testTransientConversationContextIsDestroyedAtEndOfJsfRequest()
{
assert false;
@@ -115,7 +115,7 @@
* long-running state at the end of a JSF request, it is not destroyed
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4")
+ @SpecAssertion(section = "8.5.4", id = "unknown")
public void testLongRunningConversationNotDestroyedAtEndOfJsfRequest()
{
assert false;
@@ -127,7 +127,7 @@
* form submission) that originates from that rendered page.
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4")
+ @SpecAssertion(section = "8.5.4", id = "unknown")
public void
testLongRunningConversationOfJsfRenderingRequestIsPropagatedToRequestFromRenderedPage()
{
assert false;
@@ -141,7 +141,7 @@
* parameter named cid containing the unique identifier of the conversation.
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4")
+ @SpecAssertion(section = "8.5.4", id = "unknown")
public void testLongRunningConversationOfJsfRedirectIsPropagatedToNonFacesRequest()
{
assert false;
@@ -154,7 +154,7 @@
* application must manage this request parameter
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4")
+ @SpecAssertion(section = "8.5.4", id = "unknown")
public void testLongRunningConversationManuallyPropagatedToNonFacesRequest()
{
assert false;
@@ -165,7 +165,7 @@
* associated with a new transient conversation.
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4")
+ @SpecAssertion(section = "8.5.4", id = "unknown")
public void testNewTransientRequestIsCreatedWhenNoConversationIsPropagated()
{
assert false;
@@ -176,7 +176,7 @@
* session and may not cross session boundaries
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4")
+ @SpecAssertion(section = "8.5.4", id = "unknown")
public void testLongRunningConversationsMayNotCrossHttpSessions()
{
assert false;
@@ -187,7 +187,7 @@
* conversation contexts created during the current session are destroyed
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4")
+ @SpecAssertion(section = "8.5.4", id = "unknown")
public void
testAllLongRunningConversationContextsOfInvalidatedHttpSessionAreDestroyed()
{
assert false;
@@ -199,7 +199,7 @@
* conserve resources
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4")
+ @SpecAssertion(section = "8.5.4", id = "unknown")
public void testManagerCanDestroyOrphanedLongRunningConversations()
{
assert false;
@@ -210,7 +210,7 @@
* associated with a new transient conversation
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4")
+ @SpecAssertion(section = "8.5.4", id = "unknown")
public void testNewTransientConversationIsCreatedWhenConversationCannotBeRestored()
{
assert false;
@@ -222,7 +222,7 @@
* concurrent requests.
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4")
+ @SpecAssertion(section = "8.5.4", id = "unknown")
public void testConcurrentRequestsToLongRunningConversationsAreHandled()
{
assert false;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/PassivatingContextTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/PassivatingContextTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/PassivatingContextTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -18,7 +18,7 @@
* declare any passivating scope.
*/
@Test(groups = { "contexts", "passivation",
"enterpriseBean", "integration" })
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void testEJBWebBeanCanDeclarePassivatingScope()
{
deployBeans(Turku.class);
@@ -30,7 +30,7 @@
* serializable.
*/
@Test(groups = { "stub", "contexts", "passivation",
"jms" })
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void testJMSEndpointProxyIsSerializable()
{
assert false;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/request/RequestContextTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/request/RequestContextTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/request/RequestContextTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -16,7 +16,7 @@
* the web application.
*/
@Test(groups = { "stub", "contexts", "servlet" })
- @SpecAssertion(section = "8.5.1")
+ @SpecAssertion(section = "8.5.1", id = "unknown")
public void testRequestScopeActiveDuringServiceMethod()
{
assert false;
@@ -27,7 +27,7 @@
* the Servlet service() method returns.
*/
@Test(groups = { "stub", "contexts", "servlet" })
- @SpecAssertion(section = "8.5.1")
+ @SpecAssertion(section = "8.5.1", id = "unknown")
public void testRequestScopeIsDestroyedAfterServiceMethod()
{
assert false;
@@ -37,7 +37,7 @@
* The request scope is active during any Java EE web service invocation.
*/
@Test(groups = { "stub", "contexts", "webservice" })
- @SpecAssertion(section = "8.5.1")
+ @SpecAssertion(section = "8.5.1", id = "unknown")
public void testRequestScopeActiveDuringWebSericeInvocation()
{
assert false;
@@ -48,7 +48,7 @@
* completes
*/
@Test(groups = { "stub", "contexts", "webservice" })
- @SpecAssertion(section = "8.5.1")
+ @SpecAssertion(section = "8.5.1", id = "unknown")
public void testRequestScopeIsDestroyedAfterWebServiceInvocation()
{
assert false;
@@ -60,7 +60,7 @@
* to any EJB message driven bean.
*/
@Test(groups = { "stub", "contexts", "ejb3" })
- @SpecAssertion(section = "8.5.1")
+ @SpecAssertion(section = "8.5.1", id = "unknown")
public void testRequestScopeActiveDuringRemoteMethodInvocationOfEjb()
{
assert false;
@@ -72,7 +72,7 @@
* to any EJB message driven bean.
*/
@Test(groups = { "stub", "contexts", "ejb3" })
- @SpecAssertion(section = "8.5.1")
+ @SpecAssertion(section = "8.5.1", id = "unknown")
public void testRequestScopeActiveDuringCallToEjbTimeoutMethod()
{
assert false;
@@ -84,7 +84,7 @@
* to any EJB message driven bean.
*/
@Test(groups = { "stub", "contexts", "ejb3" })
- @SpecAssertion(section = "8.5.1")
+ @SpecAssertion(section = "8.5.1", id = "unknown")
public void testRequestScopeActiveDuringEjbMessageDelivery()
{
assert false;
@@ -95,7 +95,7 @@
* timeout or message delivery completes.
*/
@Test(groups = { "stub", "contexts", "ejb3" })
- @SpecAssertion(section = "8.5.1")
+ @SpecAssertion(section = "8.5.1", id = "unknown")
public void testRequestScopeDestroyedAfterRemoteMethodInvocationOfEjb()
{
assert false;
@@ -106,7 +106,7 @@
* timeout or message delivery completes.
*/
@Test(groups = { "stub", "contexts", "ejb3" })
- @SpecAssertion(section = "8.5.1")
+ @SpecAssertion(section = "8.5.1", id = "unknown")
public void testRequestScopeDestroyedAfterCallToEjbTimeoutMethod()
{
assert false;
@@ -117,7 +117,7 @@
* timeout or message delivery completes.
*/
@Test(groups = { "stub", "contexts", "ejb3" })
- @SpecAssertion(section = "8.5.1")
+ @SpecAssertion(section = "8.5.1", id = "unknown")
public void testRequestScopeDestroyedAfterEjbMessageDelivery()
{
assert false;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/session/SessionContextTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/session/SessionContextTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/session/SessionContextTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -16,7 +16,7 @@
* the web application
*/
@Test(groups = { "stub", "contexts", "servlet" })
- @SpecAssertion(section = "8.5.2")
+ @SpecAssertion(section = "8.5.2", id = "unknown")
public void testSessionScopeActiveDuringServiceMethod()
{
assert false;
@@ -27,7 +27,7 @@
* the same HTTP servlet session
*/
@Test(groups = { "stub", "contexts", "servlet" })
- @SpecAssertion(section = "8.5.2")
+ @SpecAssertion(section = "8.5.2", id = "unknown")
public void testSessionContextSharedBetweenServletRequestsInSameHttpSession()
{
assert false;
@@ -38,7 +38,7 @@
* times out.
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.2")
+ @SpecAssertion(section = "8.5.2", id = "unknown")
public void testSessionContextDestroyedWhenHttpSessionInvalidatedOrTimesOut()
{
assert false;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/EventTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/EventTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/EventTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -37,21 +37,21 @@
public class EventTest extends AbstractTest
{
@Test(groups = { "stub", "events", "integration" })
- @SpecAssertion(section = "7.4")
+ @SpecAssertion(section = "7.4", id = "unknown")
public void testObserverCalledBeforeTransactionCompleteMaySetRollbackOnly()
{
assert false;
}
@Test(groups = { "stub", "events", "integration" })
- @SpecAssertion(section = "7.4")
+ @SpecAssertion(section = "7.4", id = "unknown")
public void testObserverManipulatingJTATransactionsDirectlyFails()
{
assert false;
}
@Test(groups = { "events", "integration" })
- @SpecAssertion(section = "7.5")
+ @SpecAssertion(section = "7.5", id = "unknown")
public void testObserverMethodOnEnterpriseBeanIsBusinessMethodOrStatic()
{
deployBeans(Pomeranian.class);
@@ -62,35 +62,35 @@
}
@Test(groups = { "stub", "events", "integration" })
- @SpecAssertion(section = "7.5.6")
+ @SpecAssertion(section = "7.5.6", id = "unknown")
public void testTransactionalObserverNotifiedImmediatelyWhenNoTransactionInProgress()
{
assert false;
}
@Test(groups = { "stub", "events", "integration" })
- @SpecAssertion(section = "7.5.6")
+ @SpecAssertion(section = "7.5.6", id = "unknown")
public void testAfterTransactionCompletionObserver()
{
assert false;
}
@Test(groups = { "stub", "events", "integration" })
- @SpecAssertion(section = "7.5.6")
+ @SpecAssertion(section = "7.5.6", id = "unknown")
public void testAfterTransactionSuccessObserver()
{
assert false;
}
@Test(groups = { "stub", "events", "integration" })
- @SpecAssertion(section = "7.5.6")
+ @SpecAssertion(section = "7.5.6", id = "unknown")
public void testAfterTransactionFailureObserver()
{
assert false;
}
@Test(groups = { "stub", "events", "integration" })
- @SpecAssertion(section = "7.5.6")
+ @SpecAssertion(section = "7.5.6", id = "unknown")
public void testBeforeTransactionCompletionObserver()
{
assert false;
@@ -100,7 +100,7 @@
*
*/
@Test(groups = { "events", "integration" , "broken"})
- @SpecAssertion(section = "7.5.8")
+ @SpecAssertion(section = "7.5.8", id = "unknown")
public void testEnterpriseBeanObserverMethodCalledWithCallerContext()
{
deployBeans(Pomeranian.class);
@@ -115,7 +115,7 @@
}
@Test(groups = { "stub", "events", "integration" })
- @SpecAssertion(section = "7.5.8")
+ @SpecAssertion(section = "7.5.8", id = "unknown")
public void testTransactionalObserverThrownExceptionIsCaughtAndLogged()
{
assert false;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/lookup/byname/ResolutionByNameTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/lookup/byname/ResolutionByNameTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/lookup/byname/ResolutionByNameTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -12,13 +12,13 @@
public class ResolutionByNameTest extends AbstractTest
{
- @Test(groups={"stub", "el"})
@SpecAssertion(section="5.10")
+ @Test(groups={"stub", "el"})
@SpecAssertion(section="5.10", id = "unknown")
public void testELResolverRegisteredWithJsf()
{
assert false;
}
- @Test(groups={"stub", "el"})
@SpecAssertion(section="5.10")
+ @Test(groups={"stub", "el"})
@SpecAssertion(section="5.10", id = "unknown")
public void testELResolverRegisteredWithServlet()
{
assert false;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/lookup/manager/ManagerTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/lookup/manager/ManagerTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/lookup/manager/ManagerTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -6,7 +6,7 @@
public class ManagerTest extends AbstractTest
{
- @Test(groups={"stub", "manager", "ejb3"})
@SpecAssertion(section="5.8")
+ @Test(groups={"stub", "manager", "ejb3"})
@SpecAssertion(section="5.8", id = "unknown")
public void testManagerLookupInJndi()
{
assert false;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/ContextTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/ContextTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/ContextTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -55,14 +55,16 @@
}
}
- @Test(expectedExceptions={ContextNotActiveException.class},
groups={"manager"}) @SpecAssertion(section="8.5")
+ @Test(expectedExceptions={ContextNotActiveException.class},
groups={"manager"})
+ @SpecAssertion(section="8.5", id = "unknown")
public void testGetContextWithNoActiveContextsFails()
{
configuration().getContexts().setInactive(configuration().getContexts().getRequestContext());
manager.getContext(RequestScoped.class);
}
- @Test(expectedExceptions={IllegalArgumentException.class},
groups={"manager"}) @SpecAssertion(section="8.5")
+ @Test(expectedExceptions={IllegalArgumentException.class},
groups={"manager"})
+ @SpecAssertion(section="8.5", id = "unknown")
public void testGetContextWithTooManyActiveContextsFails()
{
Context firstContext = new DummyContext() {};
@@ -72,13 +74,15 @@
manager.getContext(Dummy.class);
}
- @Test(expectedExceptions={ContextNotActiveException.class},
groups={"manager"}) @SpecAssertion(section="8.5")
+ @Test(expectedExceptions={ContextNotActiveException.class},
groups={"manager"})
+ @SpecAssertion(section="8.5", id = "unknown")
public void testGetContextWithNoRegisteredContextsFails()
{
manager.getContext(Unregistered.class);
}
- @Test(groups={"manager"}) @SpecAssertion(section="8.5")
+ @Test(groups={"manager"})
+ @SpecAssertion(section="8.5", id = "unknown")
public void testGetContextReturnsActiveContext()
{
manager.getContext(RequestScoped.class);
@@ -89,7 +93,7 @@
* method call, including invocation of EJB local business methods.
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5")
+ @SpecAssertion(section = "8.5", id = "unknown")
public void testBuiltInNormalScopedContextsPropagateAcrossAnyJavaMethodCall()
{
assert false;
@@ -101,7 +105,7 @@
* service timeouts
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5")
+ @SpecAssertion(section = "8.5", id = "unknown")
public void
testBuiltInNormalScopedContextsDoNotPropagateAcrossRemoteMethodInvocations()
{
assert false;
@@ -113,7 +117,7 @@
* service timeouts
*/
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5")
+ @SpecAssertion(section = "8.5", id = "unknown")
public void
testBuiltInNormalScopedContextsDoNotPropagateAcrossAsynchronousMethodInvocations()
{
assert false;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/NormalContextTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/NormalContextTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/NormalContextTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -68,7 +68,7 @@
* return an existing instance of the given contextual type, or
*/
@Test(groups = { "contexts", "stub" })
- @SpecAssertion(section = "8.1")
+ @SpecAssertion(section = "8.1", id = "unknown")
public void testGetReturnsExistingInstace()
{
assert false;
@@ -78,7 +78,7 @@
* if the value of the create parameter is false, return a null value, or
*/
@Test(groups = { "contexts", "stub" })
- @SpecAssertion(section = "8.1")
+ @SpecAssertion(section = "8.1", id = "unknown")
public void testGetWithCreateFalseReturnsNull()
{
assert false;
@@ -90,7 +90,7 @@
* instance.
*/
@Test(groups = { "contexts", "stub" })
- @SpecAssertion(section = "8.1")
+ @SpecAssertion(section = "8.1", id = "unknown")
public void testGetWithCreateTrueReturnsNewInstance()
{
assert false;
@@ -101,7 +101,7 @@
* is false or Contextual.create() returns a null value
*/
@Test(groups = { "contexts", "stub" })
- @SpecAssertion(section = "8.1")
+ @SpecAssertion(section = "8.1", id = "unknown")
public void testGetMayNotReturnNullUnlessCreateIsFalseOrContextualCreateReturnsNull()
{
assert false;
@@ -112,7 +112,7 @@
* type unless the create parameter is true
*/
@Test(groups = { "contexts", "stub" })
- @SpecAssertion(section = "8.1")
+ @SpecAssertion(section = "8.1", id = "unknown")
public void testGetMayNotCreateNewInstanceUnlessCreateIsTrue()
{
assert false;
@@ -133,7 +133,7 @@
* method.
*/
@Test(groups = { "contexts", "stub" })
- @SpecAssertion(section = "8.1")
+ @SpecAssertion(section = "8.1", id = "unknown")
public void testDestroyedInstanceMustNotBeReturnedByGet()
{
assert false;
@@ -145,7 +145,7 @@
* ContextNotActiveException.
*/
@Test(groups = { "contexts", "stub" })
- @SpecAssertion(section = "8.1")
+ @SpecAssertion(section = "8.1", id = "unknown")
public void testInvokingGetOnInactiveContextFails()
{
assert false;
@@ -156,7 +156,7 @@
* thread
*/
@Test(groups = { "contexts", "stub" })
- @SpecAssertion(section = "8.1")
+ @SpecAssertion(section = "8.1", id = "unknown")
public void testOnlyMappedInstancePerContextualTypePerThread()
{
assert false;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/dependent/DependentContextTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/dependent/DependentContextTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/dependent/DependentContextTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -26,7 +26,7 @@
* injection points.
*/
@Test(groups = { "contexts", "injection" })
- @SpecAssertion(section = "8.3")
+ @SpecAssertion(section = "8.3", id = "unknown")
public void testInstanceNotSharedBetweenInjectionPoints()
{
deployBeans(Fox.class, FoxRun.class);
@@ -46,7 +46,7 @@
* expression exists to service that evaluation only.
*/
@Test(groups = { "contexts", "el"})
- @SpecAssertion(section = "8.3")
+ @SpecAssertion(section = "8.3", id = "unknown")
public void testInstanceUsedForElEvaluationNotShared() throws Exception
{
deployBeans(Fox.class);
@@ -73,7 +73,7 @@
* that invocation only
*/
@Test(groups = { "contexts", "producerMethod" })
- @SpecAssertion(section = "8.3")
+ @SpecAssertion(section = "8.3", id = "unknown")
public void testInstanceUsedForProducerMethodNotShared() throws Exception
{
deployBeans(SpiderProducer.class);
@@ -91,7 +91,7 @@
* that invocation only
*/
@Test(groups = { "contexts", "producerMethod" })
- @SpecAssertion(section = "8.3")
+ @SpecAssertion(section = "8.3", id = "unknown")
public void testInstanceUsedForProducerFieldNotShared() throws Exception
{
deployBeans(OtherSpiderProducer.class);
@@ -109,7 +109,7 @@
* that invocation only
*/
@Test(groups = { "stub", "contexts", "disposalMethod"
})
- @SpecAssertion(section = "8.3")
+ @SpecAssertion(section = "8.3", id = "unknown")
public void testInstanceUsedForDisposalMethodNotShared()
{
assert false;
@@ -121,7 +121,7 @@
* that invocation only
*/
@Test(groups = { "stub", "contexts", "observerMethod"
})
- @SpecAssertion(section = "8.3")
+ @SpecAssertion(section = "8.3", id = "unknown")
public void testInstanceUsedForObserverMethodNotShared()
{
assert false;
@@ -133,7 +133,7 @@
* of the given Web Bean
*/
@Test(groups = "contexts")
- @SpecAssertion(section = "8.3")
+ @SpecAssertion(section = "8.3", id = "unknown")
public void testContextGetWithCreateTrueReturnsNewInstance() throws Exception
{
deployBeans(Fox.class);
@@ -159,7 +159,7 @@
* scope with the value false for the create parameter returns a null value
*/
@Test(groups = "contexts")
- @SpecAssertion(section = "8.3")
+ @SpecAssertion(section = "8.3", id = "unknown")
public void testContextGetWithCreateFalseReturnsNull() throws Exception
{
deployBeans(Fox.class);
@@ -183,7 +183,7 @@
* The @Dependent scope is inactive except:
*/
@Test(groups = {"contexts"}, expectedExceptions =
ContextNotActiveException.class)
- @SpecAssertion(section = "8.3")
+ @SpecAssertion(section = "8.3", id = "unknown")
public void testContextIsInactive()
{
assert !manager.getContext(Dependent.class).isActive();
@@ -195,7 +195,7 @@
* or observer method invocation, or
*/
@Test(groups = { "stub", "contexts", "producerMethod"
})
- @SpecAssertion(section = "8.3")
+ @SpecAssertion(section = "8.3", id = "unknown")
public void testContextIsActiveWhenInvokingProducerMethod()
{
assert false;
@@ -207,7 +207,7 @@
* or observer method invocation, or
*/
@Test(groups = { "stub", "contexts", "producerField" })
- @SpecAssertion(section = "8.3")
+ @SpecAssertion(section = "8.3", id = "unknown")
public void testContextIsActiveWhenInvokingProducerField()
{
assert false;
@@ -220,7 +220,7 @@
* or observer method invocation, or
*/
@Test(groups = { "stub", "contexts", "disposalMethod"
})
- @SpecAssertion(section = "8.3")
+ @SpecAssertion(section = "8.3", id = "unknown")
public void testContextIsActiveWhenInvokingDisposalMethod()
{
assert false;
@@ -232,7 +232,7 @@
* or observer method invocation, or
*/
@Test(groups = { "stub", "contexts", "observerMethod"
})
- @SpecAssertion(section = "8.3")
+ @SpecAssertion(section = "8.3", id = "unknown")
public void testContextIsActiveWhenInvokingObserverMethod()
{
assert false;
@@ -242,7 +242,7 @@
* while a Unified EL expression is evaluated, or
*/
@Test(groups = { "stub", "contexts", "el" })
- @SpecAssertion(section = "8.3")
+ @SpecAssertion(section = "8.3", id = "unknown")
public void testContextIsActiveWhenEvaluatingElExpression()
{
assert false;
@@ -253,7 +253,7 @@
* injecting its dependencies, or
*/
@Test(groups = { "contexts", "beanLifecycle" })
- @SpecAssertion(section = "8.3")
+ @SpecAssertion(section = "8.3", id = "unknown")
public void testContextIsActiveDuringBeanCreation()
{
// Slightly roundabout, but I can't see a better way to test atm
@@ -268,7 +268,7 @@
* injecting its dependencies, or
*/
@Test(groups = { "stub", "contexts", "beanDestruction"
})
- @SpecAssertion(section = "8.3")
+ @SpecAssertion(section = "8.3", id = "unknown")
public void testContextIsActiveDuringBeanDestruction()
{
assert false;
@@ -279,7 +279,7 @@
* injecting its dependencies, or
*/
@Test(groups = { "contexts", "injection" })
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void testContextIsActiveDuringInjection()
{
deployBeans(FoxRun.class, Fox.class);
@@ -294,7 +294,7 @@
* invoked by the EJB container
*/
@Test(groups = { "contexts", "injection", "stub",
"ejb3" })
- @SpecAssertion(section = "8.3")
+ @SpecAssertion(section = "8.3", id = "unknown")
public void testContextIsActiveDuringEJBDependencyInjection()
{
assert false;
@@ -306,7 +306,7 @@
* invoked by the EJB container
*/
@Test(groups = { "contexts", "injection", "stub",
"servlet" })
- @SpecAssertion(section = "8.3")
+ @SpecAssertion(section = "8.3", id = "unknown")
public void testContextIsActiveDuringServletDependencyInjection()
{
assert false;
@@ -318,7 +318,7 @@
* invoked by the EJB container
*/
@Test(groups = { "contexts", "postconstruct", "stub",
"ejb3" })
- @SpecAssertion(section = "8.3")
+ @SpecAssertion(section = "8.3", id = "unknown")
public void testContextIsActiveDuringEJBPostConstruct()
{
assert false;
@@ -330,7 +330,7 @@
* invoked by the EJB container
*/
@Test(groups = { "contexts", "predestroy", "stub",
"ejb3" })
- @SpecAssertion(section = "8.3")
+ @SpecAssertion(section = "8.3", id = "unknown")
public void testContextIsActiveDuringEJBPreDestroy()
{
assert false;
@@ -344,7 +344,7 @@
* from Web Beans interceptors or decorators for any of these methods
*/
@Test(groups = { "stub", "contexts", "constructor" })
- @SpecAssertion(section = "8.3.1")
+ @SpecAssertion(section = "8.3.1", id = "unknown")
public void testWebBeanMayCreateInstanceFromConstructor()
{
assert false;
@@ -358,7 +358,7 @@
* from Web Beans interceptors or decorators for any of these methods
*/
@Test(groups = { "stub", "contexts", "removeMethod" })
- @SpecAssertion(section = "8.3.1")
+ @SpecAssertion(section = "8.3.1", id = "unknown")
public void testWebBeanMayCreateInstanceFromRemoveMethod()
{
assert false;
@@ -372,7 +372,7 @@
* from Web Beans interceptors or decorators for any of these methods
*/
@Test(groups = { "stub", "contexts", "initalizerMethod"
})
- @SpecAssertion(section = "8.3.1")
+ @SpecAssertion(section = "8.3.1", id = "unknown")
public void testWebBeanMayCreateInstanceFromInitializerMethod()
{
assert false;
@@ -386,7 +386,7 @@
* from Web Beans interceptors or decorators for any of these methods
*/
@Test(groups = { "stub", "contexts", "producerMethod"
})
- @SpecAssertion(section = "8.3.1")
+ @SpecAssertion(section = "8.3.1", id = "unknown")
public void testWebBeanMayCreateInstanceFromProducerMethod()
{
assert false;
@@ -400,7 +400,7 @@
* from Web Beans interceptors or decorators for any of these methods
*/
@Test(groups = { "stub", "contexts", "disposalMethod"
})
- @SpecAssertion(section = "8.3.1")
+ @SpecAssertion(section = "8.3.1", id = "unknown")
public void testWebBeanMayCreateInstanceFromDisposalMethod()
{
assert false;
@@ -414,7 +414,7 @@
* from Web Beans interceptors or decorators for any of these methods
*/
@Test(groups = { "stub", "contexts", "preDestroy" })
- @SpecAssertion(section = "8.3.1")
+ @SpecAssertion(section = "8.3.1", id = "unknown")
public void testWebBeanMayCreateInstanceFromPreDestroy()
{
assert false;
@@ -428,7 +428,7 @@
* from Web Beans interceptors or decorators for any of these methods
*/
@Test(groups = { "stub", "contexts", "postConstruct" })
- @SpecAssertion(section = "8.3.1")
+ @SpecAssertion(section = "8.3.1", id = "unknown")
public void testWebBeanMayCreateInstanceFromPostConstruct()
{
assert false;
@@ -442,7 +442,7 @@
* from Web Beans interceptors or decorators for any of these methods
*/
@Test(groups = { "stub", "contexts", "interceptor" })
- @SpecAssertion(section = "8.3.1")
+ @SpecAssertion(section = "8.3.1", id = "unknown")
public void testWebBeanMayCreateInstanceFromInterceptorOfActiveMethod()
{
assert false;
@@ -456,7 +456,7 @@
* from Web Beans interceptors or decorators for any of these methods
*/
@Test(groups = { "stub", "contexts", "decorator" })
- @SpecAssertion(section = "8.3.1")
+ @SpecAssertion(section = "8.3.1", id = "unknown")
public void testWebBeanMayCreateInstanceFromDecoratorOfActiveMethod()
{
assert false;
@@ -469,7 +469,7 @@
* methods.
*/
@Test(groups = { "stub", "contexts", "ejb3",
"initializerMethod" })
- @SpecAssertion(section = "8.3.1")
+ @SpecAssertion(section = "8.3.1", id = "unknown")
public void testEjbBeanMayCreateInstanceFromInitializer()
{
assert false;
@@ -482,7 +482,7 @@
* methods.
*/
@Test(groups = { "stub", "contexts", "ejb3",
"postConstruct" })
- @SpecAssertion(section = "8.3.1")
+ @SpecAssertion(section = "8.3.1", id = "unknown")
public void testEjbBeanMayCreateInstanceFromPostConstruct()
{
assert false;
@@ -495,7 +495,7 @@
* methods.
*/
@Test(groups = { "stub", "contexts", "ejb3",
"preDestroy" })
- @SpecAssertion(section = "8.3.1")
+ @SpecAssertion(section = "8.3.1", id = "unknown")
public void testEjbBeanMayCreateInstanceFromPreDestroy()
{
assert false;
@@ -508,7 +508,7 @@
* methods.
*/
@Test(groups = { "stub", "contexts", "ejb3",
"interceptor" })
- @SpecAssertion(section = "8.3.1")
+ @SpecAssertion(section = "8.3.1", id = "unknown")
public void testEjbBeanMayCreateInstanceFromInterceptorOfActiveMethod()
{
assert false;
@@ -519,7 +519,7 @@
* by calling Manager.getInstance() from initializer methods
*/
@Test(groups = { "stub", "contexts", "servlet",
"initializerMethod" })
- @SpecAssertion(section = "8.3.1")
+ @SpecAssertion(section = "8.3.1", id = "unknown")
public void testServletBeanMayCreateInstanceFromInitializer()
{
assert false;
@@ -530,7 +530,7 @@
* destroyed,
*/
@Test(groups = { "broken", "contexts", "beanDestruction"
})
- @SpecAssertion(section = "8.3.2")
+ @SpecAssertion(section = "8.3.2", id = "unknown")
public void testDestroyingParentDestroysDependents()
{
deployBeans(Farm.class, Horse.class, Stable.class);
@@ -549,7 +549,7 @@
* or Servlet is destroyed,
*/
@Test(groups = { "stub", "contexts", "ejb3" })
- @SpecAssertion(section = "8.3.2")
+ @SpecAssertion(section = "8.3.2", id = "unknown")
public void testDestroyingEjbDestroysDependents()
{
assert false;
@@ -560,7 +560,7 @@
* or Servlet is destroyed,
*/
@Test(groups = { "stub", "contexts", "servlet" })
- @SpecAssertion(section = "8.3.2")
+ @SpecAssertion(section = "8.3.2", id = "unknown")
public void testDestroyingServletDestroysDependents()
{
assert false;
@@ -571,7 +571,7 @@
* expression evaluation when the evaluation completes, and
*/
@Test(groups = { "stub", "contexts", "el" })
- @SpecAssertion(section = "8.3.2")
+ @SpecAssertion(section = "8.3.2", id = "unknown")
public void testDependentsDestroyedWhenElEvaluationCompletes()
{
assert false;
@@ -583,7 +583,7 @@
* invocation when the invocation completes
*/
@Test(groups = { "stub", "contexts", "producerMethod"
})
- @SpecAssertion(section = "8.3.2")
+ @SpecAssertion(section = "8.3.2", id = "unknown")
public void testDependentsDestroyedWhenProducerMethodCompletes()
{
assert false;
@@ -595,7 +595,7 @@
* invocation when the invocation completes
*/
@Test(groups = { "stub", "contexts", "producerField" })
- @SpecAssertion(section = "8.3.2")
+ @SpecAssertion(section = "8.3.2", id = "unknown")
public void testDependentsDestroyedWhenProducerFieldCompletes()
{
assert false;
@@ -607,7 +607,7 @@
* invocation when the invocation completes
*/
@Test(groups = { "stub", "contexts", "disposalMethod"
})
- @SpecAssertion(section = "8.3.2")
+ @SpecAssertion(section = "8.3.2", id = "unknown")
public void testDependentsDestroyedWhenDisposalMethodCompletes()
{
assert false;
@@ -619,7 +619,7 @@
* invocation when the invocation completes
*/
@Test(groups = { "stub", "contexts", "observerMethod"
})
- @SpecAssertion(section = "8.3")
+ @SpecAssertion(section = "8.3", id = "unknown")
public void testDependentsDestroyedWhenObserverMethodEvaluationCompletes()
{
assert false;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/PassivatingContextTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/PassivatingContextTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/PassivatingContextTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -29,7 +29,7 @@
* initialization time.
*/
@Test(groups = { "contexts", "passivation" }, expectedExceptions =
DefinitionException.class)
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void testSimpleWebBeanWithNonSerializableImplementationClassFails()
{
deployBeans(Hamina_Broken.class);
@@ -42,20 +42,20 @@
* initialization time.
*/
@Test(groups = { "contexts", "passivation" })
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void testSimpleWebBeanWithSerializableImplementationClassOK()
{
createSimpleBean(Jyvaskyla.class);
}
- @Test @SpecAssertion(section="8.4")
+ @Test @SpecAssertion(section="8.4", id = "unknown")
public void testInjectionOfDependentSerializableProductIntoNormalBean()
{
deployBeans(Generator.class, NumberConsumer.class);
manager.getInstanceByType(NumberConsumer.class).ping();
}
- @Test @SpecAssertion(section="8.4")
+ @Test @SpecAssertion(section="8.4", id = "unknown")
public void testInjectionOfDependentPrimitiveProductIntoNormalBean()
{
deployBeans(Generator.class, FooConsumer.class);
@@ -70,7 +70,7 @@
* @throws ClassNotFoundException
*/
@Test(groups = { "contexts", "passivation", "stub" })
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void
testSimpleWebBeanDeclaringPassivatingScopeIsSerializedWhenContextIsPassivated() throws
IOException, ClassNotFoundException
{
assert false;
@@ -95,7 +95,7 @@
*/
// TODO requires an EJB instance
@Test(groups = { "contexts", "passivation", "broken",
"stub" })
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void testStatefulEJBIsSerializedWhenPassivatedByEJBContainer() throws
IOException, ClassNotFoundException
{
assert false;
@@ -108,7 +108,7 @@
* with their owner
*/
@Test(groups = { "stub", "contexts", "passivation" },
expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void testDependentInterceptorsOfStatefulEnterpriseBeanMustBeSerializable()
{
deployBeans(Kaarina_Broken.class);
@@ -121,7 +121,7 @@
* with their owner
*/
@Test(groups = { "stub", "contexts", "passivation" },
expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void testDependentDecoratorsOfStatefulEnterpriseBeanMustBeSerializable()
{
deployBeans(Porvoo_Broken.class);
@@ -134,7 +134,7 @@
* with their owner
*/
@Test(groups = { "stub", "contexts", "passivation" },
expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void
testDependentInterceptorsOfWebBeanWithPassivatingScopeMustBeSerializable()
{
deployBeans(Kotka_Broken.class);
@@ -147,7 +147,7 @@
* with their owner
*/
@Test(groups = { "stub", "contexts", "passivation" },
expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void testDependentDecoratorsOfWebBeansWithPassivatingScopeMustBeSerializable()
{
deployBeans(Raisio_Broken.class);
@@ -161,7 +161,7 @@
* @throws IOException
*/
@Test(groups = { "contexts", "passivation" })
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void testDependentEJBsAreSerializable() throws IOException,
ClassNotFoundException
{
deployBeans(Vaasa.class, Helsinki.class);
@@ -180,7 +180,7 @@
* at initialization time.
*/
@Test(groups = { "stub", "contexts", "passivation" },
expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void
testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoStatefulSessionBeanFails()
{
deployBeans(Violation.class, Espoo_Broken.class);
@@ -197,7 +197,7 @@
* at initialization time.
*/
@Test(groups = { "contexts", "passivation" }, expectedExceptions =
UnserializableDependencyException.class)
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void
testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoNonTransientFieldOfWebBeanWithPassivatingScopeFails()
{
deployBeans(Vantaa_Broken.class, Violation.class);
@@ -213,7 +213,7 @@
* at initialization time.
*/
@Test(groups = { "contexts", "passivation" })
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void
testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoTransientFieldOK()
{
createSimpleBean(Joensuu.class);
@@ -229,7 +229,7 @@
* at initialization time.
*/
@Test(groups = { "contexts", "passivation" }, expectedExceptions =
UnserializableDependencyException.class)
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void
testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoConstructorParameterOfWebBeanWithPassivatingScopeFails()
{
deployBeans(Loviisa_Broken.class, Violation.class);
@@ -245,7 +245,7 @@
* at initialization time.
*/
@Test(groups = { "contexts", "passivation" }, expectedExceptions =
UnserializableDependencyException.class)
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void
testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoInitializerParameterOfWebBeanWithPassivatingScopeFails()
{
deployBeans(Forssa_Broken.class, Violation.class);
@@ -261,7 +261,7 @@
* at initialization time.
*/
@Test(groups = { "contexts", "passivation" }, expectedExceptions =
UnserializableDependencyException.class)
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void
testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoProducerMethodParameterWithPassivatingScopeFails()
{
deployBeans(Peraseinajoki.class, Violation.class, Violation2.class);
@@ -279,7 +279,7 @@
* @throws SecurityException
*/
@Test(groups = { "contexts", "passivation",
"integration", "broken" }, expectedExceptions =
IllegalProductException.class)
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void
testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoStatefulSessionBeanFails()
throws SecurityException, NoSuchMethodException
{
deployBeans(CityProducer2.class, Maarianhamina_Broken.class);
@@ -295,7 +295,7 @@
* IllegalProductException is thrown by the Web Bean manager.
*/
@Test(groups = { "contexts", "passivation" }, expectedExceptions =
IllegalProductException.class)
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void
testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoNonTransientFieldOfWebBeanWithPassivatingScopeFails()
{
deployBeans(CityProducer2.class, Nokia_Broken.class);
@@ -311,7 +311,7 @@
* IllegalProductException is thrown by the Web Bean manager.
*/
@Test(groups = { "contexts", "passivation" })
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void
testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoTransientFieldOfWebBeanWithPassivatingScopeOK()
{
createSimpleBean(CityProducer2.class);
@@ -327,7 +327,7 @@
* IllegalProductException is thrown by the Web Bean manager.
*/
@Test(groups = { "contexts", "passivation" }, expectedExceptions =
IllegalProductException.class)
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void
testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoConstructorParameterOfWebBeanWithPassivatingScopeFails()
{
deployBeans(CityProducer2.class, Loviisa_Broken.class);
@@ -343,7 +343,7 @@
* IllegalProductException is thrown by the Web Bean manager.
*/
@Test(groups = { "contexts", "passivation" }, expectedExceptions =
IllegalProductException.class)
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void
testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoInitializerParameterOfWebBeanWithPassivatingScopeFails()
{
deployBeans(CityProducer2.class, Kuopio_Broken.class);
@@ -359,7 +359,7 @@
* IllegalProductException is thrown by the Web Bean manager.
*/
@Test(groups = { "contexts", "passivation" }, expectedExceptions =
IllegalProductException.class)
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void
testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoProducerMethodParameterWithPassivatingScopeFails()
{
deployBeans(CityProducer2.class, Jamsa_Broken.class);
@@ -376,7 +376,7 @@
*
*/
@Test(groups = { "contexts", "passivation", "stub" },
expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void
testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoStatefulSessionBeanFails()
throws Exception
{
// TODO This doesn't test injction in a SFSB, but into a Enterprise bean
@@ -394,7 +394,7 @@
* IllegalProductException is thrown by the Web Bean manager.
*/
@Test(groups = { "contexts", "passivation" }, expectedExceptions =
IllegalProductException.class)
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void
testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoNonTransientFieldOfWebBeanWithPassivatingScopeFails()
{
deployBeans(CityProducer.class, Uusikaupunki_Broken.class);
@@ -410,7 +410,7 @@
* IllegalProductException is thrown by the Web Bean manager.
*/
@Test(groups = { "contexts", "passivation" })
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void
testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoTransientFieldOfWebBeanWithPassivatingScopeOK()
{
deployBeans(CityProducer.class, Salo_Broken.class);
@@ -426,7 +426,7 @@
* IllegalProductException is thrown by the Web Bean manager.
*/
@Test(groups = { "contexts", "passivation" }, expectedExceptions =
IllegalProductException.class)
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void
testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoConstructorParameterOfWebBeanWithPassivatingScopeFails()
{
deployBeans(CityProducer.class, Loviisa_Broken.class);
@@ -442,7 +442,7 @@
* IllegalProductException is thrown by the Web Bean manager.
*/
@Test(groups = { "contexts", "passivation" }, expectedExceptions =
IllegalProductException.class)
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void
testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoInitializerParameterOfWebBeanWithPassivatingScopeFails()
{
deployBeans(CityProducer.class, Mikkeli_Broken.class);
@@ -458,7 +458,7 @@
* IllegalProductException is thrown by the Web Bean manager.
*/
@Test(groups = { "contexts", "passivation" }, expectedExceptions =
IllegalProductException.class)
- @SpecAssertion(section = "8.4")
+ @SpecAssertion(section = "8.4", id = "unknown")
public void
testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoProducerMethodParameterWithPassivatingScopeFails()
{
// TODO Not quite sure what this test is doing
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/bean/BeanDefinitionTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/bean/BeanDefinitionTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/bean/BeanDefinitionTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -8,6 +8,7 @@
import org.jboss.webbeans.tck.AbstractTest;
import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecAssertions;
import org.testng.annotations.Test;
/**
@@ -24,7 +25,7 @@
// throws a definition exception if any of these occur
@Test
- @SpecAssertion(section = "2")
+ @SpecAssertion(section = "2", id = "unknown")
public void testApiTypesNonEmpty()
{
Bean<?> model = createSimpleBean(RedSnapper.class);
@@ -32,7 +33,7 @@
}
@Test
- @SpecAssertion(section = "2")
+ @SpecAssertion(section = "2", id = "unknown")
public void testBindingTypesNonEmpty()
{
Bean<?> model = createSimpleBean(RedSnapper.class);
@@ -40,7 +41,7 @@
}
@Test
- @SpecAssertion(section = "2")
+ @SpecAssertion(section = "2", id = "unknown")
public void testHasScopeType()
{
Bean<?> model = createSimpleBean(RedSnapper.class);
@@ -48,7 +49,7 @@
}
@Test
- @SpecAssertion(section = "2")
+ @SpecAssertion(section = "2", id = "unknown")
public void testHasDeploymentType()
{
Bean<?> model = createSimpleBean(RedSnapper.class);
@@ -57,7 +58,7 @@
@SuppressWarnings("unchecked")
@Test(groups = "producerMethod")
- @SpecAssertion(section = "5.2")
+ @SpecAssertion(section = "5.2", id = "unknown")
public void testIsNullable() throws Exception
{
Bean<SpiderProducer> spiderProducerBean =
createSimpleBean(SpiderProducer.class);
@@ -71,7 +72,10 @@
}
@Test
- @SpecAssertion(section = { "3.2.2", "2.2" })
+ @SpecAssertions({
+ @SpecAssertion(section = "3.2.2", id = "unknown"),
+ @SpecAssertion(section = "2.2", id = "unknown")
+ })
public void testBeanTypes()
{
Bean<Tarantula> bean = createSimpleBean(Tarantula.class);
@@ -85,7 +89,7 @@
}
@Test
- @SpecAssertion(section = "2.2")
+ @SpecAssertion(section = "2.2", id = "unknown")
public void testFinalApiType()
{
createSimpleBean(DependentFinalTuna.class);
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/binding/BindingDefinitionTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/binding/BindingDefinitionTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/binding/BindingDefinitionTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -12,6 +12,7 @@
import org.jboss.webbeans.tck.AbstractTest;
import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecAssertions;
import org.jboss.webbeans.tck.impl.literals.CurrentBinding;
import org.jboss.webbeans.tck.impl.util.MockCreationalContext;
import org.jboss.webbeans.tck.impl.util.Reflections;
@@ -31,7 +32,11 @@
return deploymentTypes;
}
- @Test @SpecAssertion(section={"2.3.3", "2.3.1"})
+ @Test
+ @SpecAssertions({
+ @SpecAssertion(section = "2.3.3", id = "unknown"),
+ @SpecAssertion(section = "2.3.1", id = "unknown")
+ })
public void testDefaultBindingDeclaredInJava()
{
Bean<Order> order = createSimpleBean(Order.class);
@@ -39,26 +44,29 @@
order.getBindings().iterator().next().annotationType().equals(Production.class);
}
- @Test(groups={"stub", "annotationDefinition"})
@SpecAssertion(section="2.3.2")
+ @Test(groups={"stub", "annotationDefinition"})
+ @SpecAssertion(section="2.3.2", id = "unknown")
public void testBindingHasCorrectTarget()
{
assert false;
}
- @Test(groups={"stub", "annotationDefinition"})
@SpecAssertion(section="2.3.2")
+ @Test(groups={"stub", "annotationDefinition"})
+ @SpecAssertion(section="2.3.2", id = "unknown")
public void testBindingHasCorrectRetention()
{
assert false;
}
- @Test(groups={"stub", "annotationDefinition"})
@SpecAssertion(section="2.3.2")
+ @Test(groups={"stub", "annotationDefinition"})
+ @SpecAssertion(section="2.3.2", id = "unknown")
public void testBindingDeclaresBindingAnnotation()
{
assert false;
}
@SuppressWarnings("unchecked")
- @Test @SpecAssertion(section="2.3.3")
+ @Test @SpecAssertion(section="2.3.3", id = "unknown")
public void testBindingsDeclaredInJava()
{
Bean<Cat> cat = createSimpleBean(Cat.class);
@@ -66,14 +74,15 @@
assert Reflections.annotationSetMatches(cat.getBindings(), Synchronous.class);
}
- @Test @SpecAssertion(section="2.3.3")
+ @Test @SpecAssertion(section="2.3.3", id = "unknown")
public void testMultipleBindings()
{
Bean<?> model = createSimpleBean(Cod.class);
assert model.getBindings().size() == 2;
}
- @Test(groups={"stub", "webbeansxml"})
@SpecAssertion(section="2.3.4")
+ @Test(groups={"stub", "webbeansxml"})
+ @SpecAssertion(section="2.3.4", id = "unknown")
public void testBindingsDeclaredInXml()
{
//Map<Class<? extends Annotation>, Annotation> annotations = new
HashMap<Class<? extends Annotation>, Annotation>();
@@ -85,7 +94,8 @@
assert false;
}
- @Test(groups={"stub", "webbeansxml"})
@SpecAssertion(section="2.3.4")
+ @Test(groups={"stub", "webbeansxml"})
+ @SpecAssertion(section="2.3.4", id = "unknown")
public void testXmlBindingOverridesAndIgnoresJava()
{
//Map<Class<? extends Annotation>, Annotation> annotations = new
HashMap<Class<? extends Annotation>, Annotation>();
@@ -98,7 +108,8 @@
assert false;
}
- @Test(groups={"stub", "webbeansxml"})
@SpecAssertion(section="2.3.4")
+ @Test(groups={"stub", "webbeansxml"})
+ @SpecAssertion(section="2.3.4", id = "unknown")
public void testNoBindingsDeclaredInXml()
{
//Map<Class<? extends Annotation>, Annotation> annotations = new
HashMap<Class<? extends Annotation>, Annotation>();
@@ -110,7 +121,11 @@
assert false;
}
- @Test(groups={"stub", "webbeansxml"})
@SpecAssertion(section={"2.3.4", "2.3.1"})
+ @Test(groups={"stub", "webbeansxml"})
+ @SpecAssertions({
+ @SpecAssertion(section = "2.3.4", id = "unknown"),
+ @SpecAssertion(section = "2.3.1", id = "unknown")
+ })
public void testDefaultBindingDeclaredInXml()
{
Bean<?> model = createSimpleBean(Tuna.class);
@@ -119,7 +134,8 @@
assert false;
}
- @Test(groups={"injection", "producerMethod"})
@SpecAssertion(section="2.3.5")
+ @Test(groups={"injection", "producerMethod"})
+ @SpecAssertion(section="2.3.5", id = "unknown")
public void testFieldInjectedFromProducerMethod() throws Exception
{
Bean<SpiderProducer> spiderProducer =
createSimpleBean(SpiderProducer.class);
@@ -131,13 +147,15 @@
assert barn.petSpider instanceof DefangedTarantula;
}
- @Test(groups={"stub", "injection", "webbeansxml"})
@SpecAssertion(section="2.3.5")
+ @Test(groups={"stub", "injection", "webbeansxml"})
+ @SpecAssertion(section="2.3.5", id = "unknown")
public void testFieldWithBindingInXml()
{
assert false;
}
- @Test(groups={"stub", "injection", "webbeansxml"})
@SpecAssertion(section="2.3.5")
+ @Test(groups={"stub", "injection", "webbeansxml"})
+ @SpecAssertion(section="2.3.5", id = "unknown")
public void testFieldWithBindingInXmlIgnoresAnnotations()
{
assert false;
@@ -158,19 +176,21 @@
assert spider instanceof DefangedTarantula;
}
- @Test(groups={"stub", "injection", "webbeansxml"})
@SpecAssertion(section="2.3.6")
+ @Test(groups={"stub", "injection", "webbeansxml"})
+ @SpecAssertion(section="2.3.6", id = "unknown")
public void testMethodWithBindingAnnotationsOnParametersDeclaredInXml()
{
assert false;
}
- @Test(groups={"stub", "injection", "webbeansxml"})
@SpecAssertion(section="2.3.6")
+ @Test(groups={"stub", "injection", "webbeansxml"})
+ @SpecAssertion(section="2.3.6", id = "unknown")
public void
testMethodWithBindingAnnotationsOnParametersDeclaredInXmlIgnoresAnnotations()
{
assert false;
}
- @Test @SpecAssertion(section="4.1")
+ @Test @SpecAssertion(section="4.1", id = "unknown")
public void testBindingDeclaredInheritedIsInherited() throws Exception
{
Set<? extends Annotation> bindings =
createSimpleBean(BorderCollie.class).getBindings();
@@ -178,7 +198,7 @@
assert bindings.iterator().next().annotationType().equals(Hairy.class);
}
- @Test @SpecAssertion(section="4.1")
+ @Test @SpecAssertion(section="4.1", id = "unknown")
public void testBindingNotDeclaredInheritedIsNotInherited()
{
Set<? extends Annotation> bindings =
createSimpleBean(ShetlandPony.class).getBindings();
@@ -186,7 +206,7 @@
assert bindings.iterator().next().annotationType().equals(Current.class);
}
- @Test @SpecAssertion(section="4.1")
+ @Test @SpecAssertion(section="4.1", id = "unknown")
public void testBindingDeclaredInheritedIsBlockedByIntermediateClass()
{
Set<? extends Annotation> bindings =
createSimpleBean(ClippedBorderCollie.class).getBindings();
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/deployment/BrokenDeploymentTypeTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/deployment/BrokenDeploymentTypeTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/deployment/BrokenDeploymentTypeTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -18,7 +18,8 @@
{
@SuppressWarnings("unchecked")
- @Test(expectedExceptions=DeploymentException.class)
@SpecAssertion(section="2.5.6")
+ @Test(expectedExceptions=DeploymentException.class)
+ @SpecAssertion(section="2.5.6", id = "unknown")
public void testStandardMustBeDeclared()
{
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/deployment/CustomDeploymentTypeTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/deployment/CustomDeploymentTypeTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/deployment/CustomDeploymentTypeTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -10,6 +10,7 @@
import org.jboss.webbeans.tck.AbstractTest;
import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecAssertions;
import org.testng.annotations.Test;
/**
@@ -28,7 +29,11 @@
}
@SuppressWarnings("unchecked")
- @Test @SpecAssertion(section={"2.5.6", "2.5.7"})
+ @Test
+ @SpecAssertions({
+ @SpecAssertion(section = "2.5.6", id = "unknown"),
+ @SpecAssertion(section = "2.5.7", id = "unknown")
+ })
public void testCustomDeploymentTypes()
{
assert configuration().getManagers().getEnabledDeploymentTypes().size() == 3;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/deployment/DefaultDeploymentTypeTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/deployment/DefaultDeploymentTypeTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/deployment/DefaultDeploymentTypeTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -7,6 +7,7 @@
import org.jboss.webbeans.tck.AbstractTest;
import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecAssertions;
import org.testng.annotations.Test;
/**
@@ -17,7 +18,11 @@
public class DefaultDeploymentTypeTest extends AbstractTest
{
- @Test @SpecAssertion(section={"2.5.6", "2.5.7"})
+ @Test
+ @SpecAssertions({
+ @SpecAssertion(section = "2.5.6", id = "unknown"),
+ @SpecAssertion(section = "2.5.7", id = "unknown")
+ })
public void testDefaultEnabledDeploymentTypes()
{
assert configuration().getManagers().getEnabledDeploymentTypes().size() == 2;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/deployment/DeploymentTypeDefinitionTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/deployment/DeploymentTypeDefinitionTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/deployment/DeploymentTypeDefinitionTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -12,6 +12,7 @@
import org.jboss.webbeans.tck.AbstractTest;
import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecAssertions;
import org.testng.annotations.Test;
/**
@@ -32,38 +33,43 @@
return deploymentTypes;
}
- @Test(expectedExceptions=DefinitionException.class)
@SpecAssertion(section="2.5.1")
+ @Test(expectedExceptions=DefinitionException.class)
+ @SpecAssertion(section="2.5.1", id = "unknown")
public void testNonBuiltInComponentUsesStandard()
{
createSimpleBean(Gazelle_Broken.class);
}
- @Test(groups={"stub", "annotationDefinition"})
@SpecAssertion(section="2.5.2")
+ @Test(groups={"stub", "annotationDefinition"})
+ @SpecAssertion(section="2.5.2", id = "unknown")
public void testDeploymentTypeHasCorrectTarget()
{
assert false;
}
- @Test(groups={"stub", "annotationDefinition"})
@SpecAssertion(section="2.5.2")
+ @Test(groups={"stub", "annotationDefinition"})
+ @SpecAssertion(section="2.5.2", id = "unknown")
public void testDeploymentTypeHasCorrectRetention()
{
assert false;
}
- @Test(groups={"stub", "annotationDefinition"})
@SpecAssertion(section="2.5.2")
+ @Test(groups={"stub", "annotationDefinition"})
+ @SpecAssertion(section="2.5.2", id = "unknown")
public void testDeploymentTypeDeclaresScopeTypeAnnotation()
{
assert false;
}
- @Test(expectedExceptions=DefinitionException.class)
@SpecAssertion(section="2.5.3")
+ @Test(expectedExceptions=DefinitionException.class)
+ @SpecAssertion(section="2.5.3", id = "unknown")
public void testTooManyDeploymentTypes()
{
createSimpleBean(BeanWithTooManyDeploymentTypes_Broken.class);
}
@SuppressWarnings("unchecked")
- @Test @SpecAssertion(section="2.5.3")
+ @Test @SpecAssertion(section="2.5.3", id = "unknown")
public void testDeploymentTypeInhertitedFromDeclaringBean() throws Exception
{
Bean<SpiderProducer> bean = createSimpleBean(SpiderProducer.class);
@@ -73,7 +79,8 @@
assert
blackWidowSpiderModel.getDeploymentType().equals(AnotherDeploymentType.class);
}
- @Test(groups={"stub", "webbeansxml"})
@SpecAssertion(section="2.5.4")
+ @Test(groups={"stub", "webbeansxml"})
+ @SpecAssertion(section="2.5.4", id = "unknown")
public void testXmlDeploymentTypeOverridesJava()
{
//Map<Class<? extends Annotation>, Annotation>
xmlDefinedDeploymentTypeAnnotations = new HashMap<Class<? extends Annotation>,
Annotation>();
@@ -87,7 +94,8 @@
- @Test(groups={"stub", "webbeansxml"})
@SpecAssertion(section="2.5.4")
+ @Test(groups={"stub", "webbeansxml"})
+ @SpecAssertion(section="2.5.4", id = "unknown")
public void testXmlRespectsJavaDeploymentType()
{
//AnnotatedClass<Tuna> annotatedItem = new
SimpleAnnotatedClass<Tuna>(Tuna.class, new HashMap<Class<? extends
Annotation>, Annotation>());
@@ -96,7 +104,8 @@
assert false;
}
- @Test(groups={"stub", "webbeansxml"})
@SpecAssertion(section="2.5.5")
+ @Test(groups={"stub", "webbeansxml"})
+ @SpecAssertion(section="2.5.5", id = "unknown")
public void testXmlDefaultDeploymentType()
{
//AnnotatedClass<Antelope> antelopeAnnotatedItem = new
SimpleAnnotatedClass<Antelope>(Antelope.class, new HashMap<Class<? extends
Annotation>, Annotation>());
@@ -105,7 +114,7 @@
assert false;
}
- @Test @SpecAssertion(section="2.5.5")
+ @Test @SpecAssertion(section="2.5.5", id = "unknown")
public void testHighestPrecedenceDeploymentTypeFromStereotype()
{
Bean<?> bean = createSimpleBean(Rhinoceros.class);
@@ -113,7 +122,8 @@
}
@SuppressWarnings("unchecked")
- @Test(groups="beanLifecycle",
expectedExceptions=UnsatisfiedDependencyException.class)
@SpecAssertion(section="2.5.6")
+ @Test(groups="beanLifecycle",
expectedExceptions=UnsatisfiedDependencyException.class)
+ @SpecAssertion(section="2.5.6", id = "unknown")
public void testBeanWithDisabledDeploymentTypeNotInstantiated()
{
Bean<RedSnapper> bean = createSimpleBean(RedSnapper.class);
@@ -124,38 +134,44 @@
- @Test(groups={"stub", "webbeansxml"},
expectedExceptions=DeploymentException.class) @SpecAssertion(section="2.5.6")
+ @Test(groups={"stub", "webbeansxml"},
expectedExceptions=DeploymentException.class)
+ @SpecAssertion(section="2.5.6", id = "unknown")
public void testMultipleDeployElementsCannotBeDefined()
{
}
- @Test @SpecAssertion(section={"2.5.5", "2.7.2", "4.1"})
+ @Test
+ @SpecAssertions({
+ @SpecAssertion(section= "2.5.5", id = "unknown"),
+ @SpecAssertion(section = "2.7.2", id = "unknown"),
+ @SpecAssertion(section = "4.1", id = "unknown")
+ })
public void testWebBeanDeploymentTypeOverridesStereotype()
{
Bean<Reindeer> bean = createSimpleBean(Reindeer.class);
assert bean.getDeploymentType().equals(Production.class);
}
- @Test @SpecAssertion(section="4.1")
+ @Test @SpecAssertion(section="4.1", id = "unknown")
public void testDeploymentTypeDeclaredInheritedIsInherited() throws Exception
{
assert
createSimpleBean(BorderCollie.class).getDeploymentType().equals(AnotherDeploymentType.class);
}
- @Test @SpecAssertion(section="4.1")
+ @Test @SpecAssertion(section="4.1", id = "unknown")
public void testDeploymentTypeNotDeclaredInheritedIsNotInherited()
{
assert
createSimpleBean(ShetlandPony.class).getDeploymentType().equals(Production.class);
}
- @Test @SpecAssertion(section="4.1")
+ @Test @SpecAssertion(section="4.1", id = "unknown")
public void
testDeploymentTypeDeclaredInheritedIsBlockedByIntermediateDeploymentTypeNotMarkedInherited()
{
assert
createSimpleBean(GoldenRetriever.class).getDeploymentType().equals(Production.class);
}
- @Test @SpecAssertion(section="4.1")
+ @Test @SpecAssertion(section="4.1", id = "unknown")
public void
testDeploymentTypeDeclaredInheritedIsBlockedByIntermediateDeploymentTypeMarkedInherited()
{
assert
createSimpleBean(GoldenLabrador.class).getDeploymentType().equals(InheritedDeploymentType.class);
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/name/NameDefinitionTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/name/NameDefinitionTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/name/NameDefinitionTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -8,6 +8,7 @@
import org.jboss.webbeans.tck.AbstractTest;
import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecAssertions;
import org.testng.annotations.Test;
/**
@@ -26,20 +27,22 @@
return deploymentTypes;
}
- @Test(groups="stub", expectedExceptions=DefinitionException.class)
@SpecAssertion(section="2.6")
+ @Test(groups="stub", expectedExceptions=DefinitionException.class)
+ @SpecAssertion(section="2.6", id = "unknown")
public void testInvalidElIdentifierUsedAsWebBeanName()
{
assert false;
}
- @Test @SpecAssertion(section="2.6.1")
+ @Test @SpecAssertion(section="2.6.1", id = "unknown")
public void testNonDefaultNamed()
{
Bean<Moose> moose = createSimpleBean(Moose.class);
assert moose.getName().equals("aMoose");
}
- @Test(groups={"stub", "webbeansxml"})
@SpecAssertion(section="2.6.2")
+ @Test(groups={"stub", "webbeansxml"})
+ @SpecAssertion(section="2.6.2", id = "unknown")
public void testNonDefaultXmlNamed()
{
/*Map<Class<? extends Annotation>, Annotation> annotations = new
HashMap<Class<? extends Annotation>, Annotation>();
@@ -58,7 +61,8 @@
assert false;
}
- @Test(groups={"stub", "webbeansxml"})
@SpecAssertion(section="2.6.2")
+ @Test(groups={"stub", "webbeansxml"})
+ @SpecAssertion(section="2.6.2", id = "unknown")
public void testXmlNamedOverridesJavaNamed()
{
/*Map<Class<? extends Annotation>, Annotation> annotations = new
HashMap<Class<? extends Annotation>, Annotation>();
@@ -77,7 +81,11 @@
assert false;
}
- @Test(groups={"stub", "webbeansxml"})
@SpecAssertion(section={"2.6.2", "2.6.3"})
+ @Test(groups={"stub", "webbeansxml"})
+ @SpecAssertions({
+ @SpecAssertion(section="2.6.2", id = "unknown"),
+ @SpecAssertion(section = "2.6.3",id = "unknown")
+ })
public void testJavaNamedUsedWhenNoXmlSpecified()
{
//Map<Class<? extends Annotation>, Annotation> annotations = new
HashMap<Class<? extends Annotation>, Annotation>();
@@ -88,7 +96,11 @@
assert false;
}
- @Test @SpecAssertion(section={"2.6.3", "3.2.7"})
+ @Test
+ @SpecAssertions({
+ @SpecAssertion(section= "2.6.3", id = "unknown"),
+ @SpecAssertion(section = "3.2.7", id = "unknown")
+ })
public void testDefaultNamed()
{
Bean<Haddock> haddock = createSimpleBean(Haddock.class);
@@ -96,7 +108,8 @@
assert haddock.getName().equals("haddock");
}
- @Test(groups={"stub", "webbeansxml"})
@SpecAssertion(section="2.6.3")
+ @Test(groups={"stub", "webbeansxml"})
+ @SpecAssertion(section="2.6.3", id = "unknown")
public void testDefaultXmlNamed()
{
/*Map<Class<? extends Annotation>, Annotation> annotations = new
HashMap<Class<? extends Annotation>, Annotation>();
@@ -116,28 +129,32 @@
assert false;
}
- @Test @SpecAssertion(section={"2.6.3", "2.7"})
+ @Test
+ @SpecAssertions({
+ @SpecAssertion(section = "2.6.3", id = "unknown"),
+ @SpecAssertion(section = "2.7", id = "unknown")
+ })
public void testSterotypeDefaultsName()
{
Bean<RedSnapper> model = createSimpleBean(RedSnapper.class);
assert model.getName().equals("redSnapper");
}
- @Test @SpecAssertion(section="2.6.4")
+ @Test @SpecAssertion(section="2.6.4", id = "unknown")
public void testNotNamedInJava()
{
Bean<SeaBass> model = createSimpleBean(SeaBass.class);
assert model.getName() == null;
}
- @Test @SpecAssertion(section="2.6.4")
+ @Test @SpecAssertion(section="2.6.4", id = "unknown")
public void testNotNamedInXml()
{
Bean<SeaBass> model = createSimpleBean(SeaBass.class);
assert model.getName() == null;
}
- @Test @SpecAssertion(section="2.6.4")
+ @Test @SpecAssertion(section="2.6.4", id = "unknown")
public void testNotNamedInStereotype()
{
Bean<Minnow> model = createSimpleBean(Minnow.class);
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/scope/ScopeDefinitionTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/scope/ScopeDefinitionTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/scope/ScopeDefinitionTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -8,6 +8,7 @@
import org.jboss.webbeans.tck.AbstractTest;
import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecAssertions;
import org.testng.annotations.Test;
/**
@@ -18,39 +19,43 @@
public class ScopeDefinitionTest extends AbstractTest
{
- @Test @SpecAssertion(section="2.4")
+ @Test @SpecAssertion(section="2.4", id = "unknown")
public void testScopeTypesAreExtensible()
{
Bean<Mullet> mullet = createSimpleBean(Mullet.class);
assert mullet.getScopeType().equals(AnotherScopeType.class);
}
- @Test(groups={"stub", "annotationDefinition"})
@SpecAssertion(section="2.4.2")
+ @Test(groups={"stub", "annotationDefinition"})
+ @SpecAssertion(section="2.4.2", id = "unknown")
public void testScopeTypeHasCorrectTarget()
{
assert false;
}
- @Test(groups={"stub", "annotationDefinition"})
@SpecAssertion(section="2.4.2")
+ @Test(groups={"stub", "annotationDefinition"})
+ @SpecAssertion(section="2.4.2", id = "unknown")
public void testScopeTypeHasCorrectRetention()
{
assert false;
}
- @Test(groups={"stub", "annotationDefinition"})
@SpecAssertion(section="2.4.2")
+ @Test(groups={"stub", "annotationDefinition"})
+ @SpecAssertion(section="2.4.2", id = "unknown")
public void testScopeTypeDeclaresScopeTypeAnnotation()
{
assert false;
}
- @Test @SpecAssertion(section="2.4.3")
+ @Test @SpecAssertion(section="2.4.3", id = "unknown")
public void testScopeDeclaredInJava()
{
Bean<SeaBass> trout = createSimpleBean(SeaBass.class);
assert trout.getScopeType().equals(RequestScoped.class);
}
- @Test(expectedExceptions=DefinitionException.class)
@SpecAssertion(section="2.4.3")
+ @Test(expectedExceptions=DefinitionException.class)
+ @SpecAssertion(section="2.4.3", id = "unknown")
public void testTooManyScopesSpecifiedInJava()
{
createSimpleBean(BeanWithTooManyScopeTypes.class);
@@ -66,7 +71,8 @@
//createSimpleBean(null, antelopeAnnotatedItem, manager);
}
- @Test(groups={"stub", "webbeansxml"})
@SpecAssertion(section="2.4.4")
+ @Test(groups={"stub", "webbeansxml"})
+ @SpecAssertion(section="2.4.4", id = "unknown")
public void testScopeDeclaredInXml()
{
//Map<Class<? extends Annotation>, Annotation> annotations = new
HashMap<Class<? extends Annotation>, Annotation>();
@@ -78,7 +84,8 @@
assert false;
}
- @Test(groups={"stub", "webbeansxml"})
@SpecAssertion(section="2.4.4")
+ @Test(groups={"stub", "webbeansxml"})
+ @SpecAssertion(section="2.4.4", id = "unknown")
public void testScopeMissingInXml()
{
//Map<Class<? extends Annotation>, Annotation> annotations = new
HashMap<Class<? extends Annotation>, Annotation>();
@@ -89,7 +96,8 @@
assert false;
}
- @Test(groups={"stub", "webbeansxml"})
@SpecAssertion(section="2.4.4")
+ @Test(groups={"stub", "webbeansxml"})
+ @SpecAssertion(section="2.4.4", id = "unknown")
public void testScopeDeclaredInXmlOverridesJava()
{
//Map<Class<? extends Annotation>, Annotation> annotations = new
HashMap<Class<? extends Annotation>, Annotation>();
@@ -100,66 +108,75 @@
assert false;
}
- @Test @SpecAssertion(section="2.4.5")
+ @Test @SpecAssertion(section="2.4.5", id = "unknown")
public void testDefaultScope()
{
Bean<Order> order = createSimpleBean(Order.class);
assert order.getScopeType().equals(Dependent.class);
}
- @Test @SpecAssertion(section={"2.4.5", "2.7.2"})
+ @Test
+ @SpecAssertions({
+ @SpecAssertion(section = "2.4.5", id = "unknown"),
+ @SpecAssertion(section = "2.7.2", id = "unknown")
+ })
public void testScopeSpecifiedAndStereotyped()
{
Bean<Minnow> minnow = createSimpleBean(Minnow.class);
assert minnow.getScopeType().equals(RequestScoped.class);
}
- @Test(expectedExceptions=DefinitionException.class)
@SpecAssertion(section="2.4.5")
+ @Test(expectedExceptions=DefinitionException.class)
+ @SpecAssertion(section="2.4.5", id = "unknown")
public void testMutipleIncompatibleScopeStereotypes()
{
createSimpleBean(Scallop_Broken.class);
}
- @Test @SpecAssertion(section="2.4.5")
+ @Test @SpecAssertion(section="2.4.5", id = "unknown")
public void testMutipleIncompatibleScopeStereotypesWithScopeSpecified()
{
Bean<Pollock> pollock = createSimpleBean(Pollock.class);
assert pollock.getScopeType().equals(Dependent.class);
}
- @Test @SpecAssertion(section="2.4.5")
+ @Test @SpecAssertion(section="2.4.5", id = "unknown")
public void testMutipleCompatibleScopeStereotypes()
{
Bean<Grayling> grayling = createSimpleBean(Grayling.class);
assert grayling.getScopeType().equals(ApplicationScoped.class);
}
- @Test @SpecAssertion(section={"2.7.2", "4.1"})
+ @Test
+ @SpecAssertions({
+ @SpecAssertion(section = "2.7.2", id = "unknown"),
+ @SpecAssertion(section = "4.1", id = "unknown")
+ })
public void testWebBeanScopeTypeOverridesStereotype()
{
Bean<RedSnapper> bean = createSimpleBean(RedSnapper.class);
assert bean.getScopeType().equals(RequestScoped.class);
}
- @Test @SpecAssertion(section="4.1")
+ @Test @SpecAssertion(section="4.1", id = "unknown")
public void testScopeTypeDeclaredInheritedIsInherited() throws Exception
{
assert
createSimpleBean(BorderCollie.class).getScopeType().equals(RequestScoped.class);
}
- @Test @SpecAssertion(section="4.1")
+ @Test @SpecAssertion(section="4.1", id = "unknown")
public void testScopeTypeNotDeclaredInheritedIsNotInherited()
{
assert
createSimpleBean(ShetlandPony.class).getScopeType().equals(Dependent.class);
}
- @Test @SpecAssertion(section="4.1")
+ @Test @SpecAssertion(section="4.1", id = "unknown")
public void
testScopeTypeDeclaredInheritedIsBlockedByIntermediateScopeTypeMarkedInherited()
{
assert
createSimpleBean(GoldenRetriever.class).getScopeType().equals(ApplicationScoped.class);
}
- @Test @SpecAssertion(section="4.1")
+ @Test @SpecAssertion(section="4.1", id = "unknown")
public void
testScopeTypeDeclaredInheritedIsBlockedByIntermediateScopeTypeNotMarkedInherited()
{
assert
createSimpleBean(GoldenLabrador.class).getScopeType().equals(Dependent.class);
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/stereotype/StereotypeDefinitionTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/stereotype/StereotypeDefinitionTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/stereotype/StereotypeDefinitionTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -12,6 +12,7 @@
import org.jboss.webbeans.tck.AbstractTest;
import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecAssertions;
import org.testng.annotations.Test;
/**
@@ -32,28 +33,28 @@
}
@Test(groups = { "stub", "annotationDefinition" },
expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = "2.7.1")
+ @SpecAssertion(section = "2.7.1", id = "unknown")
public void testHasCorrectTarget()
{
assert false;
}
@Test(groups = { "stub", "annotationDefinition" },
expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = "2.7.1")
+ @SpecAssertion(section = "2.7.1", id = "unknown")
public void testHasCorrectRetention()
{
assert false;
}
@Test(groups = { "stub", "annotationDefinition" },
expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = "2.7.1")
+ @SpecAssertion(section = "2.7.1", id = "unknown")
public void testHasStereotypeAnnotation()
{
assert false;
}
@Test
- @SpecAssertion(section = "2.7.1.1")
+ @SpecAssertion(section = "2.7.1.1", id = "unknown")
public void testStereotypeWithScopeType()
{
Bean<Moose> moose = createSimpleBean(Moose.class);
@@ -61,7 +62,7 @@
}
@Test
- @SpecAssertion(section = "2.7.1.1")
+ @SpecAssertion(section = "2.7.1.1", id = "unknown")
public void testStereotypeWithoutScopeType()
{
Bean<Reindeer> reindeer = createSimpleBean(Reindeer.class);
@@ -69,49 +70,52 @@
}
@Test(groups = "stub")
- @SpecAssertion(section = "2.7.1.2")
+ @SpecAssertion(section = "2.7.1.2", id = "unknown")
public void testStereotypeWithoutInterceptors()
{
assert false;
}
@Test(groups = { "stub", "interceptors" })
- @SpecAssertion(section = "2.7.1.2")
+ @SpecAssertion(section = "2.7.1.2", id = "unknown")
public void testStereotypeWithInterceptors()
{
assert false;
}
@Test(expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = "2.7.1.1")
+ @SpecAssertion(section = "2.7.1.1", id = "unknown")
public void testStereotypeWithTooManyScopeTypes()
{
deployBeans(Elk_Broken.class);
}
@Test(expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = "2.7.1.1")
+ @SpecAssertion(section = "2.7.1.1", id = "unknown")
public void testStereotypeWithTooManyDeploymentTypes()
{
deployBeans(Gazelle_Broken.class);
}
@Test(expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = "2.7.1.3")
+ @SpecAssertion(section = "2.7.1.3", id = "unknown")
public void testStereotypeWithNonEmptyNamed()
{
deployBeans(FallowDeer_Broken.class);
}
@Test(expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = "2.7.1")
+ @SpecAssertion(section = "2.7.1", id = "unknown")
public void testStereotypeWithBindingTypes()
{
deployBeans(RoeDeer_Broken.class);
}
-
+
@Test
- @SpecAssertion(section = { "2.7.2", "2.7.4" })
+ @SpecAssertions({
+ @SpecAssertion(section = "2.7.2", id = "unknown"),
+ @SpecAssertion(section = "2.7.4", id = "unknown")
+ })
public void testMultipleStereotypes()
{
Bean<HighlandCow> highlandCow = createSimpleBean(HighlandCow.class);
@@ -122,7 +126,10 @@
}
@Test
- @SpecAssertion(section = { "2.7.2", "2.7.4" })
+ @SpecAssertions({
+ @SpecAssertion(section = "2.7.2", id = "unknown"),
+ @SpecAssertion(section = "2.7.4", id = "unknown")
+ })
public void testMultipleStereotypesMergesScopes()
{
Bean<Springbok> springbok = createSimpleBean(Springbok.class);
@@ -130,28 +137,37 @@
}
@Test(expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = { "2.7.2", "2.7.4" })
+ @SpecAssertions({
+ @SpecAssertion(section = "2.7.2", id = "unknown"),
+ @SpecAssertion(section = "2.7.4", id = "unknown")
+ })
public void testMultipleStereotypesMergesRequiredTypes()
{
deployBeans(Antelope_Broken.class);
}
@Test(expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = { "2.7.2", "2.7.4" })
+ @SpecAssertions({
+ @SpecAssertion(section = "2.7.2", id = "unknown"),
+ @SpecAssertion(section = "2.7.4", id = "unknown")
+ })
public void testMultipleStereotypesWithMultipleDeploymentTypes()
{
deployBeans(Goat_Broken.class);
}
@Test(expectedExceptions = DefinitionException.class, groups = "stub")
- @SpecAssertion(section = { "2.7.2", "2.7.4" })
+ @SpecAssertions({
+ @SpecAssertion(section = "2.7.2", id = "unknown"),
+ @SpecAssertion(section = "2.7.4", id = "unknown")
+ })
public void testMultipleStereotypesWithMultipleScopeTypes()
{
assert false;
}
@Test(groups = { "stub", "webbeansxml" })
- @SpecAssertion(section = "2.7.3")
+ @SpecAssertion(section = "2.7.3", id = "unknown")
public void testStereotypeDeclaredInXmlIgnoresJavaStereotypes()
{
// Map<Class<? extends Annotation>, Annotation> cooXmlAnnotations =
new
@@ -175,7 +191,7 @@
}
@Test(groups = { "stub", "webbeansxml" })
- @SpecAssertion(section = "2.7.3")
+ @SpecAssertion(section = "2.7.3", id = "unknown")
public void testStereotypeDeclaredInXmlIgnoresJavaBindingTypes()
{
// Map<Class<? extends Annotation>, Annotation> cooXmlAnnotations =
new
@@ -198,40 +214,52 @@
}
@Test
- @SpecAssertion(section = { "2.7.1.4", "2.7.4" })
+ @SpecAssertions({
+ @SpecAssertion(section = "2.7.1.4", id = "unknown"),
+ @SpecAssertion(section = "2.7.4", id = "unknown")
+ })
public void testRequiredTypeIsImplemented()
{
assert createSimpleBean(HighlandCow.class).getTypes().contains(Animal.class);
}
@Test(expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = { "2.7.1.4", "2.7.4" })
+ @SpecAssertions({
+ @SpecAssertion(section = "2.7.1.4", id = "unknown"),
+ @SpecAssertion(section = "2.7.4", id = "unknown")
+ })
public void testRequiredTypeIsNotImplemented()
{
deployBeans(Chair_Broken.class);
}
@Test
- @SpecAssertion(section = { "2.7.1.4", "2.7.4" })
+ @SpecAssertions({
+ @SpecAssertion(section = "2.7.1.4", id = "unknown"),
+ @SpecAssertion(section = "2.7.4", id = "unknown")
+ })
public void testScopeIsSupported()
{
assert
createSimpleBean(Goldfish.class).getScopeType().equals(RequestScoped.class);
}
@Test(expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = { "2.7.1.4", "2.7.4" })
+ @SpecAssertions({
+ @SpecAssertion(section = "2.7.1.4", id = "unknown"),
+ @SpecAssertion(section = "2.7.4", id = "unknown")
+ })
public void testScopeIsNotSupported()
{
createSimpleBean(Carp_Broken.class);
}
- @Test @SpecAssertion(section="4.1")
+ @Test @SpecAssertion(section="4.1", id = "unknown")
public void testStereotypeDeclaredInheritedIsInherited() throws Exception
{
assert
createSimpleBean(BorderCollie.class).getScopeType().equals(RequestScoped.class);
}
- @Test @SpecAssertion(section="4.1")
+ @Test @SpecAssertion(section="4.1", id = "unknown")
public void testStereotypeNotDeclaredInheritedIsNotInherited()
{
assert
createSimpleBean(ShetlandPony.class).getDeploymentType().equals(Production.class);
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/type/ApiTypeDefinitionTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/type/ApiTypeDefinitionTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/definition/type/ApiTypeDefinitionTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -14,7 +14,7 @@
public class ApiTypeDefinitionTest extends AbstractTest
{
- @Test @SpecAssertion(section="2.6.3")
+ @Test @SpecAssertion(section="2.6.3", id = "unknown")
public void testDefaultNamed()
{
Bean<Haddock> haddock = createSimpleBean(Haddock.class);
Modified: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/EventTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/EventTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/EventTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -17,6 +17,7 @@
import org.jboss.webbeans.tck.AbstractTest;
import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecAssertions;
import org.testng.annotations.Test;
/**
@@ -90,7 +91,7 @@
}
@Test(groups = { "events" })
- @SpecAssertion(section = "7.1")
+ @SpecAssertion(section = "7.1", id = "unknown")
public void testEventTypeIncludesAllSuperclassesAndInterfacesOfEventObject() throws
Exception
{
// Fire a single complex type of event with many observers
@@ -109,7 +110,7 @@
}
@Test(groups = { "events" })
- @SpecAssertion(section = "7.2")
+ @SpecAssertion(section = "7.2", id = "unknown")
public void testManagerFireEvent()
{
// First a simple event with no bindings is fired
@@ -125,7 +126,10 @@
* variables or wildcards, an IllegalArgumentException is thrown
*/
@Test(groups = { "events" }, expectedExceptions = {
IllegalArgumentException.class })
- @SpecAssertion(section = { "7.1", "7.2" })
+ @SpecAssertions({
+ @SpecAssertion(section = "7.1", id = "unknown"),
+ @SpecAssertion(section = "7.2", id = "unknown")
+ })
public void testManagerFireEventWithEventTypeParametersFails()
{
ATemplatedEventType<String> anEvent = new
ATemplatedEventType<String>();
@@ -137,7 +141,10 @@
* variables or wildcards, an IllegalArgumentException is thrown
*/
@Test(groups = { "events" }, expectedExceptions = {
IllegalArgumentException.class })
- @SpecAssertion(section = { "7.1", "7.2" })
+ @SpecAssertions({
+ @SpecAssertion(section = "7.1", id = "unknown"),
+ @SpecAssertion(section = "7.2", id = "unknown")
+ })
public void testManagerFireEventWithEventTypeWildcardsFails()
{
// Although the above test is really the same as with a wildcard, we will
@@ -148,7 +155,10 @@
}
@Test(groups = { "events" }, expectedExceptions = {
IllegalArgumentException.class })
- @SpecAssertion(section = { "7.1", "7.2" })
+ @SpecAssertions({
+ @SpecAssertion(section = "7.1", id = "unknown"),
+ @SpecAssertion(section = "7.2", id = "unknown")
+ })
public void testManagerFireEventWithNonBindingAnnotationsFails()
{
// The specs are not exactly clear on what is supposed to happen here,
@@ -160,7 +170,7 @@
}
@Test(groups = { "events" })
- @SpecAssertion(section = "7.3")
+ @SpecAssertion(section = "7.3", id = "unknown")
public void testManagerAddObserver()
{
Observer<AnEventType> observer = new AnObserver();
@@ -208,7 +218,7 @@
}
@Test(groups = { "events" })
- @SpecAssertion(section = "7.3")
+ @SpecAssertion(section = "7.3", id = "unknown")
public void testManagerRemoveObserver()
{
Observer<AnEventType> observer = new AnObserver();
@@ -242,7 +252,7 @@
}
@Test(groups = { "events" }, expectedExceptions = {
DuplicateBindingTypeException.class })
- @SpecAssertion(section = "7.3")
+ @SpecAssertion(section = "7.3", id = "unknown")
public void testMultipleInstancesOfSameBindingTypeWhenAddingObserverFails()
{
Observer<AnEventType> observer = new AnObserver();
@@ -250,7 +260,7 @@
}
@Test(groups = { "events" }, expectedExceptions = {
IllegalArgumentException.class })
- @SpecAssertion(section = "7.3")
+ @SpecAssertion(section = "7.3", id = "unknown")
public void testNonBindingTypePassedToAddObserverFails()
{
Observer<AnEventType> observer = new AnObserver();
@@ -258,7 +268,7 @@
}
@Test(groups = { "events" }, expectedExceptions = {
DuplicateBindingTypeException.class })
- @SpecAssertion(section = "7.3")
+ @SpecAssertion(section = "7.3", id = "unknown")
public void testMultipleInstancesOfSameBindingTypeWhenRemovingObserverFails()
{
Observer<AnEventType> observer = new AnObserver();
@@ -267,7 +277,7 @@
}
@Test(groups = { "events" }, expectedExceptions = {
IllegalArgumentException.class })
- @SpecAssertion(section = "7.3")
+ @SpecAssertion(section = "7.3", id = "unknown")
public void testNonBindingTypePassedToRemoveObserverFails()
{
Observer<AnEventType> observer = new AnObserver();
@@ -276,7 +286,10 @@
}
@Test(groups = { "events" })
- @SpecAssertion(section = { "7.1", "7.4" })
+ @SpecAssertions({
+ @SpecAssertion(section = "7.1", id = "unknown"),
+ @SpecAssertion(section = "7.4", id = "unknown")
+ })
public void testConsumerNotifiedWhenEventTypeAndAllBindingsMatch()
{
AnObserver observer1 = new AnObserver();
@@ -293,7 +306,7 @@
}
@Test(groups = { "events" })
- @SpecAssertion(section = "7.4")
+ @SpecAssertion(section = "7.4", id = "unknown")
public void testObserverThrowsExceptionAbortsNotifications()
{
AnObserverWithException observer = new AnObserverWithException();
@@ -320,7 +333,7 @@
}
@Test(groups = { "events" })
- @SpecAssertion(section = "7.5")
+ @SpecAssertion(section = "7.5", id = "unknown")
public void testMultipleObserverMethodsOK()
{
// This bean has a couple observer methods
@@ -337,7 +350,10 @@
}
@Test(groups = { "events" }, expectedExceptions = {
DefinitionException.class })
- @SpecAssertion(section = { "7.5.1", "7.5.2" })
+ @SpecAssertions({
+ @SpecAssertion(section = "7.5.1", id = "unknown"),
+ @SpecAssertion(section = "7.5.2", id = "unknown")
+ })
public void testObserverMethodMustHaveOnlyOneEventParameter()
{
deployBeans(YorkshireTerrier_Broken.class);
@@ -347,7 +363,7 @@
}
@Test(groups = { "events" }, expectedExceptions = {
DefinitionException.class })
- @SpecAssertion(section = "7.5.1")
+ @SpecAssertion(section = "7.5.1", id = "unknown")
public void testObserverMethodCannotObserveParameterizedEvents()
{
deployBeans(BostonTerrier.class);
@@ -356,7 +372,7 @@
}
@Test(groups = { "events" })
- @SpecAssertion(section = "7.5.1")
+ @SpecAssertion(section = "7.5.1", id = "unknown")
public void testObserverMethodWithoutBindingTypesObservesEventsWithoutBindingTypes()
{
// This observer has no binding types specified
@@ -370,7 +386,7 @@
}
@Test(groups = { "events" }, expectedExceptions = {
DefinitionException.class })
- @SpecAssertion(section = "7.5.2")
+ @SpecAssertion(section = "7.5.2", id = "unknown")
public void testObserverMethodAnnotatedProducesFails()
{
deployBeans(BorderTerrier.class);
@@ -379,7 +395,7 @@
}
@Test(groups = { "events" }, expectedExceptions = {
DefinitionException.class })
- @SpecAssertion(section = "7.5.2")
+ @SpecAssertion(section = "7.5.2", id = "unknown")
public void testObserverMethodAnnotatedInitializerFails()
{
deployBeans(AustralianTerrier.class);
@@ -388,7 +404,7 @@
}
@Test(groups = { "events" }, expectedExceptions = {
DefinitionException.class })
- @SpecAssertion(section = "7.5.2")
+ @SpecAssertion(section = "7.5.2", id = "unknown")
public void testObserverMethodWithDisposesParamFails()
{
deployBeans(FoxTerrier.class);
@@ -397,7 +413,7 @@
}
@Test(groups = { "events" })
- @SpecAssertion(section = "7.5.2")
+ @SpecAssertion(section = "7.5.2", id = "unknown")
public void testObserverMethodMayHaveMultipleBindingTypes()
{
deployBeans(BullTerrier.class);
@@ -411,21 +427,21 @@
}
@Test(groups = { "stub", "events" })
- @SpecAssertion(section = "7.5.3")
+ @SpecAssertion(section = "7.5.3", id = "unknown")
public void testXMLDefinedObserverMethodIgnoresBindingAnnotations()
{
assert false;
}
@Test(groups = { "stub", "events" })
- @SpecAssertion(section = "7.5.3")
+ @SpecAssertion(section = "7.5.3", id = "unknown")
public void testXMLDefinedObserverNotFindingImplementationMethodFails()
{
assert false;
}
@Test(groups = { "events" })
- @SpecAssertion(section = "7.5.4")
+ @SpecAssertion(section = "7.5.4", id = "unknown")
public void testObserverMethodReceivesInjectionsOnNonObservesParameters()
{
deployBeans(BananaSpider.class);
@@ -438,7 +454,7 @@
* is created by some other separate action.
*/
@Test(groups = { "events" })
- @SpecAssertion(section = "7.5.5")
+ @SpecAssertion(section = "7.5.5", id = "unknown")
public void testConditionalObserver()
{
RecluseSpider.notified = false;
@@ -466,14 +482,14 @@
}
@Test(groups = { "events" }, expectedExceptions = {
DefinitionException.class })
- @SpecAssertion(section = "7.1")
+ @SpecAssertion(section = "7.1", id = "unknown")
public void testTransactionalObserverCanOnlyObserveSinglePhase()
{
deployBeans(TooManyPhases_Broken.class);
}
@Test(groups = { "events" }, expectedExceptions=DefinitionException.class)
- @SpecAssertion(section = "7.5")
+ @SpecAssertion(section = "7.5", id = "unknown")
public void testObserverMethodOnEnterpriseBeanNotBusinessMethodOrStaticFails()
{
deployBeans(TibetanTerrier.class);
@@ -484,7 +500,7 @@
}
@Test(groups = { "events" })
- @SpecAssertion(section = "7.5.8")
+ @SpecAssertion(section = "7.5.8", id = "unknown")
public void testObserverMethodRegistration()
{
// This bean has two observer methods, one static and one non-static
@@ -498,7 +514,7 @@
}
@Test(groups = { "events" }, expectedExceptions = {
TeaCupPomeranian.OversizedException.class })
- @SpecAssertion(section = "7.5.8")
+ @SpecAssertion(section = "7.5.8", id = "unknown")
public void testNonTransactionalObserverThrownNonCheckedExceptionIsRethrown()
{
deployBeans(TeaCupPomeranian.class);
@@ -508,7 +524,7 @@
}
@Test(groups = { "events" }, expectedExceptions = { ObserverException.class
})
- @SpecAssertion(section = "7.5.8")
+ @SpecAssertion(section = "7.5.8", id = "unknown")
public void testNonTransactionalObserverThrownCheckedExceptionIsWrappedAndRethrown()
{
deployBeans(TeaCupPomeranian.class);
@@ -518,7 +534,7 @@
}
@Test(groups = { "events" }, expectedExceptions = {
DuplicateBindingTypeException.class })
- @SpecAssertion(section = "7.6")
+ @SpecAssertion(section = "7.6", id = "unknown")
public void testDuplicateBindingsToFireFails()
{
deployBeans(SweeWaxbill_Broken.class);
@@ -535,7 +551,7 @@
}
@Test(groups = { "events" }, expectedExceptions = {
DuplicateBindingTypeException.class })
- @SpecAssertion(section = "7.6")
+ @SpecAssertion(section = "7.6", id = "unknown")
public void testDuplicateBindingsToObservesFails()
{
deployBeans(SweeWaxbill_Broken.class);
@@ -552,7 +568,7 @@
}
@Test(groups = { "events" }, expectedExceptions = {
IllegalArgumentException.class })
- @SpecAssertion(section = "7.6")
+ @SpecAssertion(section = "7.6", id = "unknown")
public void testNonBindingTypePassedToFireFails()
{
deployBeans(OwlFinch_Broken.class);
@@ -569,7 +585,7 @@
}
@Test(groups = { "events" }, expectedExceptions = {
IllegalArgumentException.class })
- @SpecAssertion(section = "7.6")
+ @SpecAssertion(section = "7.6", id = "unknown")
public void testNonBindingTypePassedToObservesFails()
{
deployBeans(OwlFinch_Broken.class);
@@ -586,7 +602,7 @@
}
@Test(groups = { "events" })
- @SpecAssertion(section = "7.6")
+ @SpecAssertion(section = "7.6", id = "unknown")
public void testFiresAnnotationOnEventTypes()
{
deployBeans(BlueFacedParrotFinch.class);
@@ -649,7 +665,7 @@
}
@Test(groups = { "events" }, expectedExceptions = {
DefinitionException.class })
- @SpecAssertion(section = "7.6")
+ @SpecAssertion(section = "7.6", id = "unknown")
public void testFiresAnnotationOnNonEventTypeInjectionPointFails()
{
deployBeans(CommonWaxbill_Broken.class);
@@ -666,7 +682,7 @@
}
@Test(groups = { "events" }, expectedExceptions = {
DefinitionException.class })
- @SpecAssertion(section = "7.6")
+ @SpecAssertion(section = "7.6", id = "unknown")
public void testFiresAnnotationOnInjectionPointWithoutTypeParameterFails()
{
deployBeans(BlackRumpedWaxbill_Broken.class);
@@ -683,7 +699,7 @@
}
@Test(groups = { "events" }, expectedExceptions = {
DefinitionException.class })
- @SpecAssertion(section = "7.6")
+ @SpecAssertion(section = "7.6", id = "unknown")
public void testFiresAnnotationOnInjectionPointWithWildcardedTypeParameterFails()
{
deployBeans(GoldbreastWaxbill_Broken.class);
@@ -700,7 +716,7 @@
}
@Test(groups = { "events" }, expectedExceptions = {
DefinitionException.class })
- @SpecAssertion(section = "7.6")
+ @SpecAssertion(section = "7.6", id = "unknown")
public void testFiresAnnotationOnInjectionPointWithTypeVariabledTypeParameterFails()
{
deployBeans(JavaSparrow_Broken.class);
@@ -717,7 +733,7 @@
}
@Test(groups = { "events" })
- @SpecAssertion(section = "7.6")
+ @SpecAssertion(section = "7.6", id = "unknown")
public void testImplicitEventBeanMatchesAPITypeOfInectionPoint()
{
deployBeans(BlueFacedParrotFinch.class);
@@ -738,7 +754,7 @@
}
@Test(groups = { "events" })
- @SpecAssertion(section = "7.6")
+ @SpecAssertion(section = "7.6", id = "unknown")
public void testImplicitEventBeanMatchesBindingAnnotationsOfInjectionPoint()
{
deployBeans(OrangeCheekedWaxbill.class);
@@ -759,7 +775,7 @@
}
@Test(groups = { "events" })
- @SpecAssertion(section = "7.6")
+ @SpecAssertion(section = "7.6", id = "unknown")
public void testImplicitEventBeanHasStandardDeploymentType()
{
deployBeans(BlueFacedParrotFinch.class);
@@ -782,7 +798,7 @@
}
@Test(groups = { "events" })
- @SpecAssertion(section = "7.6")
+ @SpecAssertion(section = "7.6", id = "unknown")
public void testImplicitEventBeanHasDependentScope()
{
deployBeans(BlueFacedParrotFinch.class);
@@ -807,49 +823,49 @@
//TODO The manager related tests require intercepting all calls
// to it to verify that the correct calls are made.
@Test(groups = { "stub", "events", "underInvestigation"
})
- @SpecAssertion(section = "7.6")
+ @SpecAssertion(section = "7.6", id = "unknown")
public void testFireMethodCallsManagerFireWithEventObject()
{
assert false;
}
@Test(groups = { "stub", "events", "underInvestigation"
})
- @SpecAssertion(section = "7.6")
+ @SpecAssertion(section = "7.6", id = "unknown")
public void testFireMethodCallsManagerFireWithBindingAnnotationsExceptObservable()
{
assert false;
}
@Test(groups = { "stub", "events", "underInvestigation"
})
- @SpecAssertion(section = "7.6")
+ @SpecAssertion(section = "7.6", id = "unknown")
public void testFireMethodCallsManagerFireWithAllBindingAnnotationInstances()
{
assert false;
}
@Test(groups = { "stub", "events", "underInvestigation"
})
- @SpecAssertion(section = "7.6")
+ @SpecAssertion(section = "7.6", id = "unknown")
public void testObserveMethodCallsManagerAddObserverWithObserverObject()
{
assert false;
}
@Test(groups = { "stub", "events", "underInvestigation"
})
- @SpecAssertion(section = "7.6")
+ @SpecAssertion(section = "7.6", id = "unknown")
public void
testObserveMethodCallsManagerAddObserverWithAllBindingAnnotationsExceptObservable()
{
assert false;
}
@Test(groups = { "stub", "events", "underInvestigation"
})
- @SpecAssertion(section = "7.6")
+ @SpecAssertion(section = "7.6", id = "unknown")
public void
testObserveMethodCallsManagerAddObserverWithAllBindingAnnotationInstance()
{
assert false;
}
@Test(groups = { "events" })
- @SpecAssertion(section = "7.7")
+ @SpecAssertion(section = "7.7", id = "unknown")
public void testEventObjectContainsTypeVariablesWhenResolvingFails()
{
eventObjectContainsTypeVariables(new ArrayList<String>());
@@ -862,7 +878,7 @@
}
@Test(groups = { "broken", "events" }, expectedExceptions = {
IllegalArgumentException.class })
- @SpecAssertion(section = "7.7")
+ @SpecAssertion(section = "7.7", id = "unknown")
public void testEventObjectContainsWildcardsWhenResolvingFails()
{
eventObjectContainsWildcards(new ArrayList<String>());
@@ -876,7 +892,7 @@
}
@Test(groups = { "events" }, expectedExceptions = {
DuplicateBindingTypeException.class })
- @SpecAssertion(section = "7.7")
+ @SpecAssertion(section = "7.7", id = "unknown")
public void testDuplicateBindingTypesWhenResolvingFails()
{
AnObserver observer = new AnObserver();
@@ -886,7 +902,7 @@
}
@Test(groups = { "events" }, expectedExceptions = {
IllegalArgumentException.class })
- @SpecAssertion(section = "7.7")
+ @SpecAssertion(section = "7.7", id = "unknown")
public void testNonBindingTypeAnnotationWhenResolvingFails()
{
AnObserver observer = new AnObserver();
@@ -898,7 +914,7 @@
}
@Test(groups = { "events" })
- @SpecAssertion(section = "7.7")
+ @SpecAssertion(section = "7.7", id = "unknown")
public void testResolvingChecksEventType()
{
Observer<AnEventType> observer = new AnObserver();
@@ -910,7 +926,7 @@
}
@Test(groups = { "broken", "events" })
- @SpecAssertion(section = "7.7")
+ @SpecAssertion(section = "7.7", id = "unknown")
public void testResolvingChecksTypeParameters()
{
AListObserver observer = new AListObserver();
@@ -926,7 +942,7 @@
}
@Test(groups = { "events" })
- @SpecAssertion(section = "7.7")
+ @SpecAssertion(section = "7.7", id = "unknown")
public void testResolvingChecksBindingTypes()
{
AnObserver observer = new AnObserver();
@@ -938,7 +954,7 @@
}
@Test(groups = { "events" })
- @SpecAssertion(section = "7.7")
+ @SpecAssertion(section = "7.7", id = "unknown")
public void testResolvingChecksBindingTypeMembers()
{
AnObserver observer = new AnObserver();
@@ -950,7 +966,7 @@
}
@Test(groups = { "events", "inheritance" })
- @SpecAssertion(section = "4.")
+ @SpecAssertion(section = "4.", id = "unknown")
public void testNonStaticObserverMethodNotInherited()
{
deployBeans(LazyFarmer.class);
@@ -958,7 +974,7 @@
}
@Test
- @SpecAssertion(section = "7.5.8")
+ @SpecAssertion(section = "7.5.8", id = "unknown")
public void testObserverCalledOnMostSpecializedInstance()
{
Shop.deliveryObservedBy = null;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/commonAnnotations/ResourceInjectionTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/commonAnnotations/ResourceInjectionTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/commonAnnotations/ResourceInjectionTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -12,19 +12,19 @@
public class ResourceInjectionTest extends AbstractTest
{
- @Test(groups="stub") @SpecAssertion(section="3.10")
+ @Test(groups="stub") @SpecAssertion(section="3.10", id =
"unknown")
public void testInjectionOfPersistenceContext()
{
assert false;
}
- @Test(groups="stub") @SpecAssertion(section="3.10")
+ @Test(groups="stub") @SpecAssertion(section="3.10", id =
"unknown")
public void testInjectionOfResource()
{
assert false;
}
- @Test(groups="stub") @SpecAssertion(section="3.10")
+ @Test(groups="stub") @SpecAssertion(section="3.10", id =
"unknown")
public void testInjectionOfEJB()
{
assert false;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/decorator/DecoratorDefinitionTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/decorator/DecoratorDefinitionTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/decorator/DecoratorDefinitionTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -6,13 +6,13 @@
public class DecoratorDefinitionTest
{
- @Test(groups="stub") @SpecAssertion(section="A.5")
+ @Test(groups="stub") @SpecAssertion(section="A.5", id =
"unknown")
public void testDecoratorBindingInherited()
{
assert false;
}
- @Test(groups="stub") @SpecAssertion(section="A.5")
+ @Test(groups="stub") @SpecAssertion(section="A.5", id =
"unknown")
public void testDecoratorBindingBlockedByIntermediateClass()
{
assert false;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/deployment/BeanDeploymentTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/deployment/BeanDeploymentTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/deployment/BeanDeploymentTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -10,98 +10,98 @@
*/
public class BeanDeploymentTest
{
- @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.2.7")
+ @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.2.7", id = "unknown")
public void testOnlySpecializedSimpleBeanDeployed()
{
// TODO Placeholder
assert false;
}
- @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.2.7")
+ @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.2.7", id = "unknown")
public void testSpecializedSimpleBeanExtends()
{
// TODO Placeholder
assert false;
}
- @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.2.7")
+ @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.2.7", id = "unknown")
public void testSpecializedSimpleBeanHasSameBindingAnnotations()
{
// TODO Placeholder
assert false;
}
- @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.2.7")
+ @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.2.7", id = "unknown")
public void testSpecializedSimpleBeanHasSameName()
{
// TODO Placeholder
assert false;
}
- @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.3.7")
+ @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.3.7", id = "unknown")
public void testOnlySpecializedEnterpriseBeanDeployed()
{
// TODO Placeholder
assert false;
}
- @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.3.7")
+ @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.3.7", id = "unknown")
public void testSpecializedEnterpriseBeanExtends()
{
// TODO Placeholder
assert false;
}
- @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.3.7")
+ @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.3.7", id = "unknown")
public void testSpecializedEnterpriseBeanHasSameBindingAnnotations()
{
// TODO Placeholder
assert false;
}
- @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.3.7")
+ @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.3.7", id = "unknown")
public void testSpecializedEnterpriseBeanHasSameName()
{
// TODO Placeholder
assert false;
}
- @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.3.7")
+ @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.3.7", id = "unknown")
public void testSpecializedEnterpriseBeanAllLocalInterfaces()
{
// TODO Placeholder
assert false;
}
- @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.3.7")
+ @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.3.7", id = "unknown")
public void testSpecializedEnterpriseBeanSupportsBeanClassLocalView()
{
// TODO Placeholder
assert false;
}
- @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.3.4")
+ @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.3.4", id = "unknown")
public void testOnlySpecializedProducerMethodBeanDeployed()
{
// TODO Placeholder
assert false;
}
- @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.3.4")
+ @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.3.4", id = "unknown")
public void testSpecializedProducerMethodBeanDirectlyOverrides()
{
// TODO Placeholder
assert false;
}
- @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.3.4")
+ @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.3.4", id = "unknown")
public void testSpecializedProducerMethodBeanHasSameBindingAnnotations()
{
// TODO Placeholder
assert false;
}
- @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.3.4")
+ @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.3.4", id = "unknown")
public void testSpecializedProducerMethodBeanHasSameName()
{
// TODO Placeholder
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/enterprise/EnterpriseBeanDeclarationTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/enterprise/EnterpriseBeanDeclarationTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/enterprise/EnterpriseBeanDeclarationTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -27,7 +27,7 @@
* time
*/
@Test(groups = { "enterpriseBeans" })
- @SpecAssertion(section = "3.3")
+ @SpecAssertion(section = "3.3", id = "unknown")
public void testStatelessWithDependentScopeOK()
{
deployBeans(Giraffe.class);
@@ -40,7 +40,7 @@
* time
*/
@Test(groups = { "enterpriseBeans" }, expectedExceptions =
DefinitionException.class)
- @SpecAssertion(section = "3.3")
+ @SpecAssertion(section = "3.3", id = "unknown")
public void testStatelessWithRequestScopeFails()
{
deployBeans(Beagle_Broken.class);
@@ -54,7 +54,7 @@
*/
@Test(groups = { "enterpriseBeans" }, expectedExceptions =
DefinitionException.class)
- @SpecAssertion(section = "3.3")
+ @SpecAssertion(section = "3.3", id = "unknown")
public void testStatelessWithConversationScopeFails()
{
deployBeans(Boxer_Broken.class);
@@ -67,7 +67,7 @@
* time
*/
@Test(groups = { "enterpriseBeans" }, expectedExceptions =
DefinitionException.class)
- @SpecAssertion(section = "3.3")
+ @SpecAssertion(section = "3.3", id = "unknown")
public void testStatelessWithSessionScopeFails()
{
deployBeans(Bullmastiff_Broken.class);
@@ -80,7 +80,7 @@
* time
*/
@Test(groups = { "enterpriseBeans" }, expectedExceptions =
DefinitionException.class)
- @SpecAssertion(section = "3.3")
+ @SpecAssertion(section = "3.3", id = "unknown")
public void testStatelessWithApplicationScopeFails()
{
deployBeans(Dachshund_Broken.class);
@@ -93,7 +93,7 @@
* initialization time
*/
@Test(groups = { "enterpriseBeans" })
- @SpecAssertion(section = "3.3")
+ @SpecAssertion(section = "3.3", id = "unknown")
public void testSingletonWithDependentScopeOK()
{
deployBeans(Labrador.class);
@@ -106,7 +106,7 @@
* initialization time
*/
@Test(groups = { "enterpriseBeans" }, expectedExceptions =
DefinitionException.class)
- @SpecAssertion(section = "3.3")
+ @SpecAssertion(section = "3.3", id = "unknown")
public void testSingletonWithRequestScopeFails()
{
deployBeans(Greyhound_Broken.class);
@@ -120,7 +120,7 @@
* initialization time
*/
@Test(groups = { "enterpriseBeans" }, expectedExceptions =
DefinitionException.class)
- @SpecAssertion(section = "3.3")
+ @SpecAssertion(section = "3.3", id = "unknown")
public void testSingletonWithConversationScopeFails()
{
deployBeans(Husky_Broken.class);
@@ -134,7 +134,7 @@
* initialization time
*/
@Test(groups = { "enterpriseBeans" }, expectedExceptions =
DefinitionException.class)
- @SpecAssertion(section = "3.3")
+ @SpecAssertion(section = "3.3", id = "unknown")
public void testSingletonWithSessionScopeFails()
{
deployBeans(IrishTerrier_Broken.class);
@@ -147,7 +147,7 @@
* initialization time
*/
@Test(groups = { "enterpriseBeans" })
- @SpecAssertion(section = "3.3")
+ @SpecAssertion(section = "3.3", id = "unknown")
public void testSingletonWithApplicationScopeOK()
{
deployBeans(Laika.class);
@@ -159,7 +159,7 @@
* initialization time.
*/
@Test(expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = "3.3")
+ @SpecAssertion(section = "3.3", id = "unknown")
public void testEnterpriseBeanInterceptorFails()
{
deployBeans(Pug_Broken.class);
@@ -171,7 +171,7 @@
* initialization time.
*/
@Test(expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = "3.3")
+ @SpecAssertion(section = "3.3", id = "unknown")
public void testEnterpriseBeanDecoratorFails()
{
deployBeans(Pekingese_Broken.class);
@@ -182,7 +182,7 @@
* annotations.
*/
@Test(expectedExceptions = DefinitionException.class, groups = {
"enterpriseBeans", "stub" })
- @SpecAssertion(section = "3.3")
+ @SpecAssertion(section = "3.3", id = "unknown")
public void
testMultipleAnnotationDefinedEnterpriseBeansWithSameImplementationClassFails()
{
// TODO: testable?
@@ -194,7 +194,7 @@
* class. This occurs when Web Beans are defined using XML
*/
@Test(groups = { "webbeansxml", "enterpriseBeans",
"stub" })
- @SpecAssertion(section = "3.3")
+ @SpecAssertion(section = "3.3", id = "unknown")
public void testMultipleXMLDefinedEnterpriseBeansWithSameImplementationClassOK()
{
assert false;
@@ -206,7 +206,7 @@
* thus no special declaration is required.
*/
@Test(groups = { "enterpriseBeans", "stub" })
- @SpecAssertion(section = "3.3.2")
+ @SpecAssertion(section = "3.3.2", id = "unknown")
public void testAnnotatedEnterpriseBean()
{
// TODO: dupe?
@@ -218,7 +218,7 @@
* by specifying the bean class in web-beans.xml.
*/
@Test(groups = { "enterpriseBeans", "webbeansxml",
"stub" })
- @SpecAssertion(section = "3.3.2")
+ @SpecAssertion(section = "3.3.2", id = "unknown")
public void testAnnotatedEnterpriseBeanComplementedWithXML()
{
// TODO dupe?
@@ -230,7 +230,7 @@
* ejb-jar.xml are also Web Beans.
*/
@Test(groups = { "enterpriseBeans", "ejbjarxml", "stub"
})
- @SpecAssertion(section = "3.3.2")
+ @SpecAssertion(section = "3.3.2", id = "unknown")
public void testEJBJARDefinedEnterpriseBean()
{
// TODO dupe?
@@ -242,7 +242,7 @@
* by specifying the bean class and EJB name in web-beans.xml
*/
@Test(groups = { "enterpriseBeans", "ejbjarxml",
"webbeansxml", "stub" })
- @SpecAssertion(section = "3.3.2")
+ @SpecAssertion(section = "3.3.2", id = "unknown")
public void testEJBJARDefinedEnterpriseBeanComplementedWithXML()
{
// TODO dupe?
@@ -255,7 +255,7 @@
* variables and their superinterfaces
*/
@Test(groups = { "enterpriseBeans", "stub" })
- @SpecAssertion(section = "3.3.3")
+ @SpecAssertion(section = "3.3.3", id = "unknown")
public void
testAPITypesAreLocalInterfacesWithoutWildcardTypesOrTypeVariablesWithSuperInterfaces()
{
assert false;
@@ -267,7 +267,7 @@
* superclasses
*/
@Test(groups = { "enterpriseBeans", "stub" })
- @SpecAssertion(section = "3.3.3")
+ @SpecAssertion(section = "3.3.3", id = "unknown")
public void
testEnterpriseBeanWithLocalViewAndParameterizedTypeIncludesBeanClassAndSuperclassesInAPITypes()
{
assert false;
@@ -277,7 +277,7 @@
* In addition, java.lang.Object is an API type of every enterprise Web Bean.
*/
@Test(groups = "enterpriseBeans")
- @SpecAssertion(section = "3.3.3")
+ @SpecAssertion(section = "3.3.3", id = "unknown")
public void testObjectIsInAPITypes()
{
assert createEnterpriseBean(Laika.class).getTypes().contains(Object.class);
@@ -287,7 +287,7 @@
* Remote interfaces are not included in the set of API types.
*/
@Test(groups = { "enterpriseBeans", "stub" })
- @SpecAssertion(section = "3.3.3")
+ @SpecAssertion(section = "3.3.3", id = "unknown")
public void testRemoteInterfacesAreNotInAPITypes()
{
assert false;
@@ -300,7 +300,7 @@
* attribute declares the EJB name of an EJB defined in ejb-jar.xml
*/
@Test(groups = { "enterpriseBeans", "webbeansxml",
"ejbjarxml", "stub" })
- @SpecAssertion(section = "3.3")
+ @SpecAssertion(section = "3.3", id = "unknown")
public void testXMLFilesEJBNameUsage()
{
assert false;
@@ -312,7 +312,7 @@
* thrown by the Web Bean manager at initialization time.
*/
@Test(expectedExceptions = DefinitionException.class, groups = {
"enterpriseBeans" })
- @SpecAssertion(section = "3.3")
+ @SpecAssertion(section = "3.3", id = "unknown")
public void testMessageDrivenBeansNotOK()
{
deployBeans(Leopard.class);
@@ -324,7 +324,7 @@
* to lower case.
*/
@Test(groups = "enterpriseBeans")
- @SpecAssertion(section = "3.3.8")
+ @SpecAssertion(section = "3.3.8", id = "unknown")
public void testDefaultName()
{
assert createEnterpriseBean(Pitbull.class).getName().equals("pitbull");
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/enterprise/EnterpriseBeanLifecycleTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/enterprise/EnterpriseBeanLifecycleTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/enterprise/EnterpriseBeanLifecycleTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -29,7 +29,7 @@
* returns an enterprise bean proxy
*/
@Test(groups = { "enterpriseBeans", "lifecycle", "stub"
})
- @SpecAssertion(section = "6.5")
+ @SpecAssertion(section = "6.5", id = "unknown")
public void testProxyCreated()
{
assert false;
@@ -40,7 +40,7 @@
* Bean remove method upon the proxy
*/
@Test(groups = { "enterpriseBeans", "clientProxy",
"lifecycle", "stub"})
- @SpecAssertion(section = "6.5")
+ @SpecAssertion(section = "6.5", id = "unknown")
public void testRemoveMethodCalled() throws Exception
{
GoodDoggie.destructorCalled = false;
@@ -66,7 +66,7 @@
* returned by Manager.getInstanceByType()
*/
@Test(groups = { "enterpriseBeans", "lifecycle",
"removeMethod", "stub" })
- @SpecAssertion(section = "6.5")
+ @SpecAssertion(section = "6.5", id = "unknown")
public void testFieldInjections()
{
assert false;
@@ -78,7 +78,7 @@
* instance, and is not required to call any remove method
*/
@Test(groups = { "enterpriseBeans", "lifecycle",
"removeMethod", "stub" })
- @SpecAssertion(section = "6.5")
+ @SpecAssertion(section = "6.5", id = "unknown")
public void testNoRemoveMethodsCalledIfEnterpriseBeanAlreadyRemoved()
{
assert false;
@@ -89,7 +89,7 @@
* the proxy and all EJB local object references.
*/
@Test(groups = { "enterpriseBeans", "lifecycle",
"removeMethod", "stub" })
- @SpecAssertion(section = "6.6")
+ @SpecAssertion(section = "6.6", id = "unknown")
public void testProxyAndLocalObjectReferencesDiscardedForStatelessEnterpriseBeans()
{
assert false;
@@ -101,7 +101,7 @@
* returned by Manager.getInstanceByType().
*/
@Test(groups = { "enterpriseBeans", "lifecycle", "stub"
})
- @SpecAssertion(section = "6.11")
+ @SpecAssertion(section = "6.11", id = "unknown")
public void testFieldInjectionsOnRemoveMethods()
{
assert false;
@@ -113,7 +113,7 @@
* in XML,
*/
@Test(groups = { "enterpriseBeans", "lifecycle", "stub"
})
- @SpecAssertion(section = "6.11")
+ @SpecAssertion(section = "6.11", id = "unknown")
public void testInitXMLDefinedValuesOnWebWeanEnterpriseBeans()
{
assert false;
@@ -125,7 +125,7 @@
* returned by Manager.getInstanceByType().
*/
@Test(groups = { "enterpriseBeans", "lifecycle", "stub"
})
- @SpecAssertion(section = "6.11")
+ @SpecAssertion(section = "6.11", id = "unknown")
public void testInitializerMethodsCalledWithCurrentParameterValues()
{
assert false;
@@ -136,7 +136,7 @@
* for the instance
*/
@Test(groups = { "enterpriseBeans", "lifecycle",
"interceptors", "stub" })
- @SpecAssertion(section = "6.11")
+ @SpecAssertion(section = "6.11", id = "unknown")
public void testInterceptorStackIsBuilt()
{
assert false;
@@ -147,7 +147,7 @@
* for the instance
*/
@Test(groups = { "enterpriseBeans", "lifecycle",
"decorators", "stub" })
- @SpecAssertion(section = "6.11")
+ @SpecAssertion(section = "6.11", id = "unknown")
public void testDecoratorStackIsBuilt()
{
assert false;
@@ -159,7 +159,7 @@
* objects, after the callback returns from the bean instance
*/
@Test(groups = { "enterpriseBeans", "lifecycle", "stub"
})
- @SpecAssertion(section = "6.11")
+ @SpecAssertion(section = "6.11", id = "unknown")
public void testDependentObjectsDestroyed()
{
assert false;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/enterprise/EnterpriseBeanRemoveMethodTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/enterprise/EnterpriseBeanRemoveMethodTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/enterprise/EnterpriseBeanRemoveMethodTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -24,7 +24,7 @@
* passed to the method by the Web Bean manager
*/
@Test(groups = { "enterpriseBeans", "removeMethod",
"lifecycle", "stub" })
- @SpecAssertion(section = "3.3.1")
+ @SpecAssertion(section = "3.3.1", id = "unknown")
public void
applicationMayCallRemoveMethodOnDependentScopedSessionEnterpriseBeansButNoParametersArePassed()
{
assert false;
@@ -36,7 +36,7 @@
* scope other than @Dependent, an UnsupportedOperationException is thrown.
*/
@Test(groups = { "enterpriseBeans", "removeMethod",
"lifecycle", "stub" }, expectedExceptions =
UnsupportedOperationException.class)
- @SpecAssertion(section = "3.3.1")
+ @SpecAssertion(section = "3.3.1", id = "unknown")
public void
applicationCannotCallRemoveMethodOnNonDependentScopedSessionEnterpriseBean()
{
assert false;
@@ -49,7 +49,7 @@
* destroying it
*/
@Test(groups = { "enterpriseBeans", "removeMethod",
"lifecycle", "stub" })
- @SpecAssertion(section = "3.3.1")
+ @SpecAssertion(section = "3.3.1", id = "unknown")
public void
applicationMayCallRemoveMethodOnDependentScopedSessionEnterpriseBeansButInstanceIsNotDestroyed()
{
assert false;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/enterprise/NewEnterpriseBeanTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/enterprise/NewEnterpriseBeanTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/enterprise/NewEnterpriseBeanTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -45,7 +45,7 @@
* declared type of the injection point.
*/
@Test(groups = { "new" })
- @SpecAssertion(section = "3.3.6")
+ @SpecAssertion(section = "3.3.6", id = "unknown")
public void testNewBeanIsDependentScoped()
{
assert Dependent.class.equals(newEnterpriseBean.getScopeType());
@@ -60,7 +60,7 @@
* declared type of the injection point.
*/
@Test(groups = { "new" })
- @SpecAssertion(section = "3.3.6")
+ @SpecAssertion(section = "3.3.6", id = "unknown")
public void testNewBeanIsOfStandardDeploymentType()
{
assert Standard.class.equals(newEnterpriseBean.getDeploymentType());
@@ -75,7 +75,7 @@
* declared type of the injection point.
*/
@Test(groups = { "new" })
- @SpecAssertion(section = "3.3.6")
+ @SpecAssertion(section = "3.3.6", id = "unknown")
public void testNewBeanIsHasOnlyNewBinding()
{
assert newEnterpriseBean.getBindings().size() == 1;
@@ -91,7 +91,7 @@
* declared type of the injection point.
*/
@Test(groups = { "new" })
- @SpecAssertion(section = "3.3.6")
+ @SpecAssertion(section = "3.3.6", id = "unknown")
public void testNewBeanHasNoWebBeanName()
{
assert newEnterpriseBean.getName() == null;
@@ -106,7 +106,7 @@
* declared type of the injection point.
*/
@Test(groups = { "stub", "new" })
- @SpecAssertion(section = "3.3.6")
+ @SpecAssertion(section = "3.3.6", id = "unknown")
public void testNewBeanHasNoStereotypes()
{
assert false;
@@ -121,7 +121,7 @@
* is an enterprise Web Bean.
*/
@Test(groups = { "new", "stub" })
- @SpecAssertion(section = "3.3.6")
+ @SpecAssertion(section = "3.3.6", id = "unknown")
public void testNewBeanIsEnterpriseWebBeanIfParameterTypeIsEnterpriseWebBean()
{
assert false;
@@ -139,7 +139,7 @@
* � has no decorators.
*/
@Test(groups = { "new", "stub" })
- @SpecAssertion(section = "3.3.6")
+ @SpecAssertion(section = "3.3.6", id = "unknown")
public void testNewBeanHasSameInitializerMethodsAsWrappedBean()
{
assert false;
@@ -157,7 +157,7 @@
* � has no decorators.
*/
@Test(groups = { "new", "stub" })
- @SpecAssertion(section = "3.3.6")
+ @SpecAssertion(section = "3.3.6", id = "unknown")
public void testNewBeanHasSameInjectedFieldsAsWrappedBean()
{
assert false;
@@ -175,7 +175,7 @@
* � has no decorators.
*/
@Test(groups = {"new", "stub" })
- @SpecAssertion(section = "3.3.6")
+ @SpecAssertion(section = "3.3.6", id = "unknown")
public void testNewBeanHasNoObservers()
{
assert false;
@@ -193,7 +193,7 @@
* � has no decorators.
*/
@Test(groups = { "new", "stub" })
- @SpecAssertion(section = "3.3.6")
+ @SpecAssertion(section = "3.3.6", id = "unknown")
public void testNewBeanHasNoProducerFields()
{
assert false;
@@ -211,7 +211,7 @@
* � has no decorators.
*/
@Test(groups = { "new", "stub" })
- @SpecAssertion(section = "3.3.6")
+ @SpecAssertion(section = "3.3.6", id = "unknown")
public void testNewBeanHasNoProducerMethods()
{
assert false;
@@ -229,7 +229,7 @@
* � has no decorators.
*/
@Test(groups = { "new", "stub" })
- @SpecAssertion(section = "3.3.6")
+ @SpecAssertion(section = "3.3.6", id = "unknown")
public void testNewBeanHasNoDisposalMethods()
{
assert false;
@@ -247,7 +247,7 @@
* � has no decorators.
*/
@Test(groups = { "stub", "new" })
- @SpecAssertion(section = "3.3.6")
+ @SpecAssertion(section = "3.3.6", id = "unknown")
public void testNewBeanHasSameInterceptorMethodsAsWrappedBean()
{
assert false;
@@ -265,7 +265,7 @@
* � has no decorators.
*/
@Test(groups = { "new" })
- @SpecAssertion(section = "3.3.6")
+ @SpecAssertion(section = "3.3.6", id = "unknown")
public void testNewBeanHasNoDecorators()
{
Annotation[] bindingTypes = newEnterpriseBean.getBindings().toArray(new
Annotation[0]);
@@ -281,7 +281,7 @@
* Bean implementation class.
*/
@Test(groups = { "new" })
- @SpecAssertion(section = "3.3.6")
+ @SpecAssertion(section = "3.3.6", id = "unknown")
public void testNewAnnotationMayBeAppliedToField()
{
deployBeans(AnnotatedField.class, WrappedEnterpriseBean.class);
@@ -297,7 +297,7 @@
* Bean implementation class.
*/
@Test(groups = { "new" })
- @SpecAssertion(section = "3.3.6")
+ @SpecAssertion(section = "3.3.6", id = "unknown")
public void testNewAnnotationMayBeAppliedToProducerMethodParameter()
{
deployBeans(AnnotatedProducerParameter.class, WrappedEnterpriseBean.class);
@@ -313,7 +313,7 @@
* Bean implementation class.
*/
@Test(groups = { "new" })
- @SpecAssertion(section = "3.3.6")
+ @SpecAssertion(section = "3.3.6", id = "unknown")
public void testNewAnnotationMayBeAppliedToInitializerMethodParameter()
{
deployBeans(AnnotatedInitializerParameter.class, WrappedEnterpriseBean.class);
@@ -329,7 +329,7 @@
* Bean implementation class.
*/
@Test(groups = { "new" })
- @SpecAssertion(section = "3.3.6")
+ @SpecAssertion(section = "3.3.6", id = "unknown")
public void testNewAnnotationMayBeAppliedToConstructorMethodParameter()
{
deployBeans(AnnotatedConstructorParameter.class, WrappedEnterpriseBean.class);
@@ -344,7 +344,7 @@
* by the container at deployment time.
*/
@Test(groups = { "new" }, expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = "3.3.6")
+ @SpecAssertion(section = "3.3.6", id = "unknown")
public void testNewAnnotationCannotAppearInConjunctionWithOtherBindingType()
{
deployBeans(NewAndOtherBindingType_Broken.class);
@@ -358,7 +358,7 @@
* by the container at deployment time.
*/
@Test(groups = { "stub", "new" }, expectedExceptions =
DefinitionException.class)
- @SpecAssertion(section = "3.3.6")
+ @SpecAssertion(section = "3.3.6", id = "unknown")
public void testNewAnnotationCannotBeAppliedToNonWebBeanImplementationClass()
{
assert false;
@@ -369,13 +369,13 @@
* as a binding type
*/
@Test(groups = { "stub", "new" }, expectedExceptions =
DefinitionException.class)
- @SpecAssertion(section = "3.3.6")
+ @SpecAssertion(section = "3.3.6", id = "unknown")
public void testNewAnnotationCannotBeExplicitlyDeclared()
{
assert false;
}
- @Test @SpecAssertion(section="3.2.6")
+ @Test @SpecAssertion(section="3.2.6", id = "unknown")
public void testForEachEnterpriseBeanANewBeanExists()
{
deployBeans(Order.class, Lion.class);
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/initializer/InitializerMethodTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/initializer/InitializerMethodTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/initializer/InitializerMethodTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -5,6 +5,7 @@
import org.jboss.webbeans.tck.AbstractTest;
import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecAssertions;
import org.jboss.webbeans.tck.impl.util.MockCreationalContext;
import org.testng.annotations.Test;
@@ -16,56 +17,61 @@
{
@Test(expectedExceptions=DefinitionException.class,
groups="initializerMethod")
- @SpecAssertion(section="3.8")
+ @SpecAssertion(section="3.8", id = "unknown")
public void testStaticInitializerMethodNotAllowed()
{
createSimpleBean(Dottrel.class);
}
@Test(groups={"stub", "initializerMethod", "servlet"})
- @SpecAssertion(section="3.9")
+ @SpecAssertion(section="3.9", id = "unknown")
public void testInitializerMethodCalledOnServlet()
{
assert false;
}
@Test(groups={"stub", "initializerMethod", "ejb3"})
- @SpecAssertion(section="3.9")
+ @SpecAssertion(section="3.9", id = "unknown")
public void testInitializerMethodCalledOnEJBSessionBean()
{
assert false;
}
@Test(groups={"stub", "initializerMethod", "ejb3"})
- @SpecAssertion(section="3.9")
+ @SpecAssertion(section="3.9", id = "unknown")
public void testInitializerMethodCalledOnEJBMDB()
{
assert false;
}
@Test(groups={"stub", "initializerMethod", "ejb3",
"singletons"})
- @SpecAssertion(section="3.9")
+ @SpecAssertion(section="3.9", id = "unknown")
public void testInitializerMethodCalledOnEJBSingleton()
{
assert false;
}
@Test(groups={"stub", "initializerMethod", "ejb3"})
- @SpecAssertion(section="3.9")
+ @SpecAssertion(section="3.9", id = "unknown")
public void testInitializerMethodNotABusinessMethod()
{
assert false;
}
@Test(groups={"stub", "initializerMethod",
"interceptors"})
- @SpecAssertion(section="3.9")
+ @SpecAssertion(section="3.9", id = "unknown")
public void testMethodInterceptorNotCalledOnInitializerMethod()
{
assert false;
}
@Test(groups={"initializerMethod"})
- @SpecAssertion(section={"3.9", "5.3", "3.9.2",
"3.9.3"})
+ @SpecAssertions({
+ @SpecAssertion(section = "3.9", id = "unknown"),
+ @SpecAssertion(section = "5.3", id = "unknown"),
+ @SpecAssertion(section = "3.9.2", id = "unknown"),
+ @SpecAssertion(section = "3.9.3", id = "unknown")
+ })
public void testMultipleInitializerMethodsAreCalled()
{
manager.addBean(createSimpleBean(Fox.class));
@@ -78,49 +84,52 @@
}
@Test(groups="initializerMethod",
expectedExceptions=DefinitionException.class)
- @SpecAssertion(section={"3.9.1", "3.4.2"})
+ @SpecAssertions({
+ @SpecAssertion(section = "3.9.1", id = "unknown"),
+ @SpecAssertion(section = "3.4.2", id = "unknown")
+ })
public void testInitializerMethodAnnotatedProduces()
{
createSimpleBean(Pheasant.class);
}
@Test(groups="initializerMethod",
expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="3.9.1")
+ @SpecAssertion(section="3.9.1", id = "unknown")
public void testInitializerMethodHasParameterAnnotatedDisposes()
{
createSimpleBean(Capercaillie.class);
}
@Test(groups="initializerMethod",
expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="3.9.1")
+ @SpecAssertion(section="3.9.1", id = "unknown")
public void testInitializerMethodHasParameterAnnotatedObserves()
{
createSimpleBean(Grouse.class);
}
@Test(groups={"stub", "initializerMethod",
"webbeansxml"})
- @SpecAssertion(section="3.9.2")
+ @SpecAssertion(section="3.9.2", id = "unknown")
public void testInitializerMethodDeclaredInXml()
{
assert false;
}
@Test(groups={"stub", "initializerMethod",
"webbeansxml"})
- @SpecAssertion(section="3.9.2")
+ @SpecAssertion(section="3.9.2", id = "unknown")
public void testInitializerMethodDeclaredInXmlIgnoresBindingAnnotationsInJava()
{
assert false;
}
@Test(groups={"stub", "initializerMethod",
"webbeansxml"}, expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="3.9.2")
+ @SpecAssertion(section="3.9.2", id = "unknown")
public void testInitializerMethodDeclaredInXmlDoesNotExist()
{
assert false;
}
@Test(groups={"stub", "initializerMethod",
"webbeansxml"})
- @SpecAssertion(section="3.9.2")
+ @SpecAssertion(section="3.9.2", id = "unknown")
public void testBeanHasAllInitializerMethodsDeclaredInJavaAndXml()
{
assert false;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/interceptor/InterceptorDefinitionTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/interceptor/InterceptorDefinitionTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/interceptor/InterceptorDefinitionTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -11,13 +11,13 @@
public class InterceptorDefinitionTest
{
- @Test(groups="stub") @SpecAssertion(section="4.2")
+ @Test(groups="stub") @SpecAssertion(section="4.2", id =
"unknown")
public void testNonStaticWithInterceptorBindingInherited()
{
assert false;
}
- @Test(groups="stub") @SpecAssertion(section="4.2")
+ @Test(groups="stub") @SpecAssertion(section="4.2", id =
"unknown")
public void testNonStaticWithInterceptorBindingBlockedByIntermediateClass()
{
assert false;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/jms/JmsDefinitionTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/jms/JmsDefinitionTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/jms/JmsDefinitionTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -14,7 +14,8 @@
public class JmsDefinitionTest extends AbstractTest
{
- @Test(expectedExceptions=DefinitionException.class, groups={"stub",
"jms"}) @SpecAssertion(section="2.6")
+ @Test(expectedExceptions=DefinitionException.class, groups={"stub",
"jms"})
+ @SpecAssertion(section="2.6", id = "unknown")
public void testJmsEndpointHasName()
{
assert false;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/producer/field/ProducerFieldDefinitionTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/producer/field/ProducerFieldDefinitionTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/producer/field/ProducerFieldDefinitionTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -14,6 +14,7 @@
import org.jboss.webbeans.tck.AbstractTest;
import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecAssertions;
import org.jboss.webbeans.tck.impl.literals.CurrentBinding;
import org.testng.annotations.Test;
@@ -46,7 +47,7 @@
* @throws Exception
*/
@Test(groups = { "producerField" })
- @SpecAssertion(section = "2.5.3")
+ @SpecAssertion(section = "2.5.3", id = "unknown")
public void testProducerFieldInheritsDeploymentTypeOfDeclaringWebBean() throws
Exception
{
deployBeans(TarantulaProducer.class, TarantulaConsumer.class);
@@ -68,7 +69,7 @@
*/
@Test(groups = { "broken", "producerField",
"enterpriseBeans" }, expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = "3.5")
+ @SpecAssertion(section = "3.5", id = "unknown")
public void testProducerFieldIsNotBusinessField() throws Exception
{
deployBeans(VibratingSpiderImpl_Broken.class);
@@ -81,7 +82,7 @@
* @throws Exception
*/
@Test(groups = "producerField")
- @SpecAssertion(section = "3.5")
+ @SpecAssertion(section = "3.5", id = "unknown")
public void testParameterizedReturnType() throws Exception
{
deployBeans(FunnelWeaverSpiderProducer.class, FunnelWeaverSpiderConsumer.class);
@@ -106,7 +107,7 @@
* @throws Exception
*/
@Test(groups = "producerField", expectedExceptions =
DefinitionException.class)
- @SpecAssertion(section = "3.5")
+ @SpecAssertion(section = "3.5", id = "unknown")
public void testParameterizedReturnTypeWithWildcard()
{
deployBeans(SpiderProducerWildCardType_Broken.class);
@@ -116,14 +117,17 @@
* A bean may declare multiple producer fields.
*/
@Test(groups = { "producerField", "deployment" })
- @SpecAssertion(section = "3.5")
+ @SpecAssertion(section = "3.5", id = "unknown")
public void testBeanDeclaresMultipleProducerFields()
{
deployBeans(OtherSpiderProducer.class);
}
@Test(groups = "producerField")
- @SpecAssertion(section = { "3.5", "2.3.1" })
+ @SpecAssertions({
+ @SpecAssertion(section = "3.5", id = "unknown"),
+ @SpecAssertion(section = "2.3.1", id = "unknown")
+ })
public void testDefaultBindingType()
{
deployBeans(StaticTarantulaProducer.class);
@@ -140,7 +144,7 @@
* @throws Exception
*/
@Test(groups = "producerField")
- @SpecAssertion(section = "3.5.1")
+ @SpecAssertion(section = "3.5.1", id = "unknown")
public void testApiTypeForClassReturn()
{
deployBeans(StaticTarantulaProducer.class);
@@ -164,7 +168,7 @@
* @throws Exception
*/
@Test(groups = { "producerField" })
- @SpecAssertion(section = "3.5.1")
+ @SpecAssertion(section = "3.5.1", id = "unknown")
public void testApiTypeForInterfaceReturn()
{
deployBeans(SpiderAsAnimalProducer.class);
@@ -183,7 +187,7 @@
* @throws Exception
*/
@Test(groups = { "producerField" })
- @SpecAssertion(section = "3.5.1")
+ @SpecAssertion(section = "3.5.1", id = "unknown")
public void testApiTypeForPrimitiveReturn()
{
deployBeans(OtherSpiderProducer.class);
@@ -202,7 +206,10 @@
* @throws Exception
*/
@Test(groups = { "producerField" })
- @SpecAssertion(section = { "3.5.1", "2.2" })
+ @SpecAssertions({
+ @SpecAssertion(section = "3.5.1", id = "unknown"),
+ @SpecAssertion(section = "2.2", id = "unknown")
+ })
public void testApiTypeForArrayTypeReturn()
{
deployBeans(OtherSpiderProducer.class);
@@ -221,7 +228,7 @@
* @throws Exception
*/
@Test(groups = "producerField")
- @SpecAssertion(section = "3.5.2")
+ @SpecAssertion(section = "3.5.2", id = "unknown")
public void testBindingType()
{
deployBeans(TameTarantulaProducer.class);
@@ -239,7 +246,7 @@
* @throws Exception
*/
@Test(groups = "producerField")
- @SpecAssertion(section = "3.5.2")
+ @SpecAssertion(section = "3.5.2", id = "unknown")
public void testScopeType()
{
deployBeans(TameTarantulaProducer.class);
@@ -258,7 +265,7 @@
* @throws Exception
*/
@Test(groups = "producerField")
- @SpecAssertion(section = "3.5.2")
+ @SpecAssertion(section = "3.5.2", id = "unknown")
public void testDeploymentType()
{
deployBeans(TameTarantulaProducer.class);
@@ -275,7 +282,7 @@
* @throws Exception
*/
@Test(groups = "producerField")
- @SpecAssertion(section = "3.5.2")
+ @SpecAssertion(section = "3.5.2", id = "unknown")
public void testNamedField()
{
deployBeans(BlackWidowProducer.class);
@@ -293,7 +300,10 @@
* @throws Exception
*/
@Test(groups = { "producerField" })
- @SpecAssertion(section = { "2.6.3", "3.5.4" })
+ @SpecAssertions({
+ @SpecAssertion(section = "2.6.3", id = "unknown"),
+ @SpecAssertion(section = "3.5.4", id = "unknown")
+ })
public void testDefaultNamedField()
{
deployBeans(StaticTarantulaProducer.class);
@@ -310,7 +320,11 @@
* @throws Exception
*/
@Test(groups = "producerField")
- @SpecAssertion(section = { "2.7.2", "3.5.2", "2.2" })
+ @SpecAssertions({
+ @SpecAssertion(section = "2.7.2", id = "unknown"),
+ @SpecAssertion(section = "3.5.2", id = "unknown"),
+ @SpecAssertion(section = "2.2", id = "unknown")
+ })
public void testStereotype()
{
deployBeans(StaticTarantulaProducer.class);
@@ -322,7 +336,7 @@
}
@Test(groups = "producerField")
- @SpecAssertion(section = "4.2")
+ @SpecAssertion(section = "4.2", id = "unknown")
public void testNonStaticProducerFieldNotInherited()
{
deployBeans(InfertileChicken.class);
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/producer/field/ProducerFieldLifecycleTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/producer/field/ProducerFieldLifecycleTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/producer/field/ProducerFieldLifecycleTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -11,6 +11,7 @@
import org.jboss.webbeans.tck.AbstractTest;
import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecAssertions;
import org.testng.annotations.Test;
/**
@@ -42,7 +43,7 @@
* value.
*/
@Test(groups = { "producerField" })
- @SpecAssertion(section = "5.6")
+ @SpecAssertion(section = "5.6", id = "unknown")
public void testProducerStaticFieldBean()
{
deployBeans(StaticTarantulaProducer.class, TarantulaConsumer.class);
@@ -80,7 +81,7 @@
* @throws Exception
*/
@Test(groups = { "producerField" })
- @SpecAssertion(section = "6.8")
+ @SpecAssertion(section = "6.8", id = "unknown")
public void testProducerFieldBeanCreate() throws Exception
{
deployBeans(BlackWidowProducer.class, BlackWidowConsumer.class);
@@ -96,7 +97,7 @@
}
@Test(groups = { "producerField", "specialization" })
- @SpecAssertion(section = "6.8")
+ @SpecAssertion(section = "6.8", id = "unknown")
public void testSpecializedBeanAlwaysUsed() throws Exception
{
deployBeans(TarantulaProducer.class, SpecializedTarantulaProducer.class,
TarantulaConsumer.class);
@@ -119,7 +120,11 @@
* @throws Exception
*/
@Test(groups = { "producerField" })
- @SpecAssertion(section = { "3.5", "6.8", "8.3" })
+ @SpecAssertions({
+ @SpecAssertion(section = "3.5", id = "unknown"),
+ @SpecAssertion(section = "6.8", id = "unknown"),
+ @SpecAssertion(section = "8.3", id = "unknown")
+ })
public void testProducerFieldReturnsNullIsDependent() throws Exception
{
deployBeans(NullSpiderProducer.class, NullSpiderConsumer.class);
@@ -141,8 +146,11 @@
*
* @throws Exception
*/
- @Test(groups = { "producerField" }, expectedExceptions =
IllegalProductException.class)
- @SpecAssertion(section = { "3.5", "6.8" })
+ @Test(groups = { "producerField" }, expectedExceptions =
IllegalProductException.class)
+ @SpecAssertions({
+ @SpecAssertion(section = "3.5", id = "unknown"),
+ @SpecAssertion(section = "6.8", id = "unknown")
+ })
public void testProducerFieldReturnsNullIsNotDependent() throws Exception
{
deployBeans(NullSpiderProducer_Broken.class, NullSpiderConsumer.class);
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/producer/method/DisposalMethodDefinitionTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/producer/method/DisposalMethodDefinitionTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/producer/method/DisposalMethodDefinitionTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -11,7 +11,7 @@
public class DisposalMethodDefinitionTest
{
- @Test(groups="stub") @SpecAssertion(section="4.2")
+ @Test(groups="stub") @SpecAssertion(section="4.2", id =
"unknown")
public void testNonStaticDisposalMethodNotInherited()
{
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/producer/method/ProducerMethodDefinitionTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/producer/method/ProducerMethodDefinitionTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/producer/method/ProducerMethodDefinitionTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -10,6 +10,7 @@
import org.jboss.webbeans.tck.AbstractTest;
import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecAssertions;
import org.testng.annotations.Test;
/**
@@ -21,7 +22,7 @@
{
@Test(groups="producerMethod")
- @SpecAssertion(section="2.5.3")
+ @SpecAssertion(section="2.5.3", id = "unknown")
public void testProducerMethodInheritsDeploymentTypeOfDeclaringWebBean() throws
Exception
{
Bean<SpiderProducer> bean = createSimpleBean(SpiderProducer.class);
@@ -32,7 +33,7 @@
}
@Test(groups="producerMethod")
- @SpecAssertion(section="3.4")
+ @SpecAssertion(section="3.4", id = "unknown")
public void testStaticMethod() throws Exception
{
Bean<BeanWithStaticProducerMethod> bean =
createSimpleBean(BeanWithStaticProducerMethod.class);
@@ -42,14 +43,14 @@
}
@Test(groups={"stub", "producerMethod",
"enterpriseBeans", "stub"},
expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="3.4")
+ @SpecAssertion(section="3.4", id = "unknown")
public void testProducerMethodIsNotBusinessMethod() throws Exception
{
assert false;
}
@Test(groups="producerMethod")
- @SpecAssertion(section="3.4")
+ @SpecAssertion(section="3.4", id = "unknown")
public void testParameterizedReturnType() throws Exception
{
Bean<SpiderProducer> bean = createSimpleBean(SpiderProducer.class);
@@ -59,7 +60,7 @@
}
@Test(groups="producerMethod", expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="3.4")
+ @SpecAssertion(section="3.4", id = "unknown")
public void testParameterizedReturnTypeWithWildcard() throws Exception
{
Bean<SpiderProducer> bean = createSimpleBean(SpiderProducer.class);
@@ -69,7 +70,7 @@
}
@Test(groups="producerMethod", expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="3.4")
+ @SpecAssertion(section="3.4", id = "unknown")
public void testParameterizedReturnTypeWithTypeParameter() throws Exception
{
Bean<SpiderProducer> bean = createSimpleBean(SpiderProducer.class);
@@ -79,7 +80,10 @@
}
@Test(groups="producerMethod")
- @SpecAssertion(section={"3.4", "2.3.1"})
+ @SpecAssertions({
+ @SpecAssertion(section = "3.4", id = "unknown"),
+ @SpecAssertion(section = "2.3.1", id = "unknown")
+ })
public void testDefaultBindingType() throws Exception
{
Bean<SpiderProducer> bean = createSimpleBean(SpiderProducer.class);
@@ -91,7 +95,7 @@
}
@Test(groups="producerMethod")
- @SpecAssertion(section="3.4.1")
+ @SpecAssertion(section="3.4.1", id = "unknown")
public void testApiTypeForClassReturn() throws Exception
{
Bean<SpiderProducer> bean = createSimpleBean(SpiderProducer.class);
@@ -108,7 +112,7 @@
}
@Test(groups="producerMethod")
- @SpecAssertion(section="3.4.1")
+ @SpecAssertion(section="3.4.1", id = "unknown")
public void testApiTypeForInterfaceReturn() throws Exception
{
Bean<SpiderProducer> bean = createSimpleBean(SpiderProducer.class);
@@ -121,7 +125,7 @@
}
@Test(groups="producerMethod")
- @SpecAssertion(section="3.4.1")
+ @SpecAssertion(section="3.4.1", id = "unknown")
public void testApiTypeForPrimitiveReturn() throws Exception
{
Bean<SpiderProducer> bean = createSimpleBean(SpiderProducer.class);
@@ -134,7 +138,10 @@
}
@Test(groups="producerMethod")
- @SpecAssertion(section={"3.4.1", "2.2"})
+ @SpecAssertions({
+ @SpecAssertion(section = "3.4.1", id = "unknown"),
+ @SpecAssertion(section = "2.2", id = "unknown")
+ })
public void testApiTypeForArrayTypeReturn() throws Exception
{
Bean<SpiderProducer> bean = createSimpleBean(SpiderProducer.class);
@@ -147,7 +154,7 @@
}
@Test(groups="producerMethod")
- @SpecAssertion(section="3.4.2")
+ @SpecAssertion(section="3.4.2", id = "unknown")
public void testBindingType() throws Exception
{
Bean<SpiderProducer> bean = createSimpleBean(SpiderProducer.class);
@@ -159,7 +166,7 @@
}
@Test(groups="producerMethod")
- @SpecAssertion(section="3.4.2")
+ @SpecAssertion(section="3.4.2", id = "unknown")
public void testScopeType() throws Exception
{
Bean<SpiderProducer> bean = createSimpleBean(SpiderProducer.class);
@@ -172,7 +179,7 @@
}
@Test(groups="producerMethod")
- @SpecAssertion(section="3.4.2")
+ @SpecAssertion(section="3.4.2", id = "unknown")
public void testDeploymentType() throws Exception
{
Bean<SpiderProducer> bean = createSimpleBean(SpiderProducer.class);
@@ -183,7 +190,7 @@
}
@Test(groups="producerMethod")
- @SpecAssertion(section="3.4.2")
+ @SpecAssertion(section="3.4.2", id = "unknown")
public void testNamedMethod() throws Exception
{
Bean<SpiderProducer> bean = createSimpleBean(SpiderProducer.class);
@@ -194,7 +201,7 @@
}
@Test(groups="producerMethod")
- @SpecAssertion(section="3.4.2")
+ @SpecAssertion(section="3.4.2", id = "unknown")
public void testDefaultNamedMethod() throws Exception
{
Bean<SpiderProducer> bean = createSimpleBean(SpiderProducer.class);
@@ -205,7 +212,7 @@
}
@Test(groups="producerMethod", expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="3.4")
+ @SpecAssertion(section="3.4", id = "unknown")
public void testProducerMethodWithParameterAnnotatedDisposes() throws Exception
{
Bean<SpiderProducer_Broken> bean =
createSimpleBean(SpiderProducer_Broken.class);
@@ -215,7 +222,7 @@
}
@Test(groups="producerMethod", expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="3.4")
+ @SpecAssertion(section="3.4", id = "unknown")
public void testProducerMethodWithParameterAnnotatedObserves() throws Exception
{
Bean<SpiderProducer_Broken> bean =
createSimpleBean(SpiderProducer_Broken.class);
@@ -225,7 +232,7 @@
}
@Test(groups={"stub", "disposalMethod"})
- @SpecAssertion(section="3.3.5")
+ @SpecAssertion(section="3.3.5", id = "unknown")
public void testDisposalMethodNonStatic()
{
// TODO Placeholder
@@ -233,7 +240,7 @@
}
@Test(groups={"stub", "disposalMethod"})
- @SpecAssertion(section="3.3.5")
+ @SpecAssertion(section="3.3.5", id = "unknown")
public void testDisposalMethodMethodDeclaredOnWebBeanImplementationClass()
{
// TODO Placeholder
@@ -241,7 +248,7 @@
}
@Test(groups={"stub", "disposalMethod"})
- @SpecAssertion(section="3.3.5")
+ @SpecAssertion(section="3.3.5", id = "unknown")
public void testDisposalMethodBindingAnnotations()
{
// TODO Placeholder
@@ -249,7 +256,7 @@
}
@Test(groups={"stub", "disposalMethod"})
- @SpecAssertion(section="3.3.5")
+ @SpecAssertion(section="3.3.5", id = "unknown")
public void testDisposalMethodDefaultBindingAnnotations()
{
// TODO Placeholder
@@ -257,7 +264,7 @@
}
@Test(groups={"stub", "disposalMethod"})
- @SpecAssertion(section="3.3.5")
+ @SpecAssertion(section="3.3.5", id = "unknown")
public void testDisposalMethodDoesNotResolveToProducerMethod()
{
// TODO Placeholder
@@ -265,7 +272,7 @@
}
@Test(groups={"stub", "disposalMethod"})
- @SpecAssertion(section="3.4.6")
+ @SpecAssertion(section="3.4.6", id = "unknown")
public void testDisposalMethodDeclaredOnEnabledBean()
{
// TODO Placeholder
@@ -275,7 +282,7 @@
}
@Test(groups={"stub", "disposalMethod"})
- @SpecAssertion(section="3.4.6")
+ @SpecAssertion(section="3.4.6", id = "unknown")
public void testBeanCanDeclareMultipleDisposalMethods()
{
// TODO move this
@@ -284,7 +291,7 @@
}
@Test(groups={"stub", "disposalMethod"})
- @SpecAssertion(section="3.4.6")
+ @SpecAssertion(section="3.4.6", id = "unknown")
public void testProducerMethodHasNoMoreThanOneDisposalMethod()
{
// TODO move this
@@ -293,7 +300,11 @@
}
@Test(groups="producerMethod")
- @SpecAssertion(section={"2.7.2", "3.4.2", "2.2"})
+ @SpecAssertions({
+ @SpecAssertion(section = "2.7.2", id = "unknown"),
+ @SpecAssertion(section = "3.4.2", id = "unknown"),
+ @SpecAssertion(section = "2.2", id = "unknown")
+ })
public void testStereotypeSpecifiesScope() throws Exception
{
Bean<SpiderProducer> bean = createSimpleBean(SpiderProducer.class);
@@ -306,7 +317,11 @@
}
@Test(groups="producerMethod", expectedExceptions=DefinitionException.class)
- @SpecAssertion(section={"2.7.2", "3.4.2", "2.2"})
+ @SpecAssertions({
+ @SpecAssertion(section = "2.7.2", id = "unknown"),
+ @SpecAssertion(section = "3.4.2", id = "unknown"),
+ @SpecAssertion(section = "2.2", id = "unknown")
+ })
public void testStereotypeEnforcesTypes() throws Exception
{
Bean<SpiderProducer_Broken> bean =
createSimpleBean(SpiderProducer_Broken.class);
@@ -316,7 +331,7 @@
}
@Test
- @SpecAssertion(section="4.2")
+ @SpecAssertion(section="4.2", id = "unknown")
public void testNonStaticProducerMethodNotInherited()
{
deployBeans(InfertileChicken.class);
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/producer/method/ProducerMethodLifecycleTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/producer/method/ProducerMethodLifecycleTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/producer/method/ProducerMethodLifecycleTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -8,6 +8,7 @@
import org.jboss.webbeans.tck.AbstractTest;
import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecAssertions;
import org.jboss.webbeans.tck.impl.util.MockCreationalContext;
import org.testng.annotations.Test;
@@ -19,7 +20,8 @@
public class ProducerMethodLifecycleTest extends AbstractTest
{
- @Test(groups={"producerMethod", "broken"})
@SpecAssertion(section="B.1")
+ @Test(groups={"producerMethod", "broken"})
+ @SpecAssertion(section="B.1", id = "unknown")
public void testProducerMethodBeanCreate() throws Exception
{
Bean<SpiderProducer> spiderProducer = createSimpleBean(SpiderProducer.class);
@@ -30,21 +32,24 @@
assert tarantula != null;
}
- @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.3.4")
+ @Test(groups={"stub", "specialization"})
+ @SpecAssertion(section="3.3.4", id = "unknown")
public void testSpecializedBeanAlwaysUsed()
{
// TODO Placeholder
assert false;
}
- @Test(groups={"stub", "disposalMethod",
"beanLifecycle"}) @SpecAssertion(section="3.3.5")
+ @Test(groups={"stub", "disposalMethod",
"beanLifecycle"})
+ @SpecAssertion(section="3.3.5", id = "unknown")
public void testDisposalMethodCalled()
{
// TODO Placeholder
assert false;
}
- @Test(groups={"stub", "disposalMethod",
"beanLifecycle"}) @SpecAssertion(section="3.3.5")
+ @Test(groups={"stub", "disposalMethod",
"beanLifecycle"})
+ @SpecAssertion(section="3.3.5", id = "unknown")
public void testDisposalMethodHasParametersInjected()
{
// TODO Placeholder
@@ -53,7 +58,11 @@
@Test(groups={"producerMethod", "broken"})
- @SpecAssertion(section={"3.4", "B.1", "7.3"})
+ @SpecAssertions({
+ @SpecAssertion(section = "3.4", id = "unknown"),
+ @SpecAssertion(section = "B.1", id = "unknown"),
+ @SpecAssertion(section = "7.3", id = "unknown")
+ })
public void testProducerMethodReturnsNullIsDependent() throws Exception
{
Bean<SpiderProducer> spiderProducer = createSimpleBean(SpiderProducer.class);
@@ -65,7 +74,10 @@
}
@Test(groups="producerMethod",
expectedExceptions=IllegalProductException.class)
- @SpecAssertion(section={"3.4", "B.1"})
+ @SpecAssertions({
+ @SpecAssertion(section = "3.4", id = "unknown"),
+ @SpecAssertion(section = "B.1", id = "unknown")
+ })
public void testProducerMethodReturnsNullIsNotDependent() throws Exception
{
Bean<SpiderProducer_Broken> spiderProducer =
createSimpleBean(SpiderProducer_Broken.class);
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/simple/NewSimpleBeanTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/simple/NewSimpleBeanTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/simple/NewSimpleBeanTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -47,7 +47,7 @@
* declared type of the injection point.
*/
@Test(groups = { "new" })
- @SpecAssertion(section = "3.2.5")
+ @SpecAssertion(section = "3.2.5", id = "unknown")
public void testNewBeanIsDependentScoped()
{
assert Dependent.class.equals(newSimpleBean.getScopeType());
@@ -62,7 +62,7 @@
* declared type of the injection point.
*/
@Test(groups = { "new" })
- @SpecAssertion(section = "3.2.5")
+ @SpecAssertion(section = "3.2.5", id = "unknown")
public void testNewBeanIsOfStandardDeploymentType()
{
assert Standard.class.equals(newSimpleBean.getDeploymentType());
@@ -77,7 +77,7 @@
* declared type of the injection point.
*/
@Test(groups = { "new" })
- @SpecAssertion(section = "3.2.5")
+ @SpecAssertion(section = "3.2.5", id = "unknown")
public void testNewBeanIsHasOnlyNewBinding()
{
assert newSimpleBean.getBindings().size() == 1;
@@ -93,7 +93,7 @@
* declared type of the injection point.
*/
@Test(groups = { "new" })
- @SpecAssertion(section = "3.2.5")
+ @SpecAssertion(section = "3.2.5", id = "unknown")
public void testNewBeanHasNoWebBeanName()
{
assert newSimpleBean.getName() == null;
@@ -108,7 +108,7 @@
* declared type of the injection point.
*/
@Test(groups = { "stub", "new" })
- @SpecAssertion(section = "3.2.5")
+ @SpecAssertion(section = "3.2.5", id = "unknown")
public void testNewBeanHasNoStereotypes()
{
assert false;
@@ -126,7 +126,7 @@
* � has no decorators.
*/
@Test(groups = {"new", "stub" })
- @SpecAssertion(section = "3.2.5")
+ @SpecAssertion(section = "3.2.5", id = "unknown")
public void testNewBeanHasNoObservers()
{
assert false;
@@ -144,7 +144,7 @@
* � has no decorators.
*/
@Test(groups = { "new", "stub" })
- @SpecAssertion(section = "3.2.5")
+ @SpecAssertion(section = "3.2.5", id = "unknown")
public void testNewBeanHasNoProducerFields()
{
assert false;
@@ -162,7 +162,7 @@
* � has no decorators.
*/
@Test(groups = { "new", "stub" })
- @SpecAssertion(section = "3.2.5")
+ @SpecAssertion(section = "3.2.5", id = "unknown")
public void testNewBeanHasNoProducerMethods()
{
assert false;
@@ -180,7 +180,7 @@
* � has no decorators.
*/
@Test(groups = { "new" , "stub"})
- @SpecAssertion(section = "3.2.5")
+ @SpecAssertion(section = "3.2.5", id = "unknown")
public void testNewBeanHasNoDisposalMethods()
{
//Class<?> type =
TypeInfo.ofTypes(newSimpleBean.getTypes()).getSuperClass();
@@ -200,7 +200,7 @@
* � has no decorators.
*/
@Test(groups = { "stub", "new" })
- @SpecAssertion(section = "3.2.5")
+ @SpecAssertion(section = "3.2.5", id = "unknown")
public void testNewBeanHasSameInterceptorMethodsAsWrappedBean()
{
assert false;
@@ -218,7 +218,7 @@
* � has no decorators.
*/
@Test(groups = { "new" })
- @SpecAssertion(section = "3.2.5")
+ @SpecAssertion(section = "3.2.5", id = "unknown")
public void testNewBeanHasNoDecorators()
{
Annotation[] bindingTypes = newSimpleBean.getBindings().toArray(new
Annotation[0]);
@@ -234,7 +234,7 @@
* Bean implementation class.
*/
@Test(groups = { "new" })
- @SpecAssertion(section = "3.2.5")
+ @SpecAssertion(section = "3.2.5", id = "unknown")
public void testNewAnnotationMayBeAppliedToField()
{
deployBeans(AnnotatedField.class, WrappedSimpleBean.class);
@@ -250,7 +250,7 @@
* Bean implementation class.
*/
@Test(groups = { "new" })
- @SpecAssertion(section = "3.2.5")
+ @SpecAssertion(section = "3.2.5", id = "unknown")
public void testNewAnnotationMayBeAppliedToProducerMethodParameter()
{
deployBeans(AnnotatedProducerParameter.class, WrappedSimpleBean.class);
@@ -266,7 +266,7 @@
* Bean implementation class.
*/
@Test(groups = { "new" })
- @SpecAssertion(section = "3.2.5")
+ @SpecAssertion(section = "3.2.5", id = "unknown")
public void testNewAnnotationMayBeAppliedToInitializerMethodParameter()
{
deployBeans(AnnotatedInitializerParameter.class, WrappedSimpleBean.class);
@@ -282,7 +282,7 @@
* Bean implementation class.
*/
@Test(groups = { "new" })
- @SpecAssertion(section = "3.2.5")
+ @SpecAssertion(section = "3.2.5", id = "unknown")
public void testNewAnnotationMayBeAppliedToConstructorMethodParameter()
{
deployBeans(AnnotatedConstructorParameter.class, WrappedSimpleBean.class);
@@ -297,7 +297,7 @@
* by the container at deployment time.
*/
@Test(groups = { "new" }, expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = "3.2.5")
+ @SpecAssertion(section = "3.2.5", id = "unknown")
public void testNewAnnotationCannotAppearInConjunctionWithOtherBindingType()
{
deployBeans(NewAndOtherBindingType_Broken.class);
@@ -311,7 +311,7 @@
* by the container at deployment time.
*/
@Test(groups = { "stub", "new" }, expectedExceptions =
DefinitionException.class)
- @SpecAssertion(section = "3.2.5")
+ @SpecAssertion(section = "3.2.5", id = "unknown")
public void testNewAnnotationCannotBeAppliedToNonWebBeanImplementationClass()
{
assert false;
@@ -322,14 +322,14 @@
* as a binding type
*/
@Test(groups = { "stub", "new" }, expectedExceptions =
DefinitionException.class)
- @SpecAssertion(section = "3.2.5")
+ @SpecAssertion(section = "3.2.5", id = "unknown")
public void testNewAnnotationCannotBeExplicitlyDeclared()
{
assert false;
}
@Test
- @SpecAssertion(section="3.2.5")
+ @SpecAssertion(section="3.2.5", id = "unknown")
public void testForEachSimpleBeanANewBeanExists()
{
deployBeans(Order.class, Lion.class);
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/simple/SimpleBeanDefinitionTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/simple/SimpleBeanDefinitionTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/simple/SimpleBeanDefinitionTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -31,35 +31,37 @@
//*** BEAN CLASS CHECKS ****//
- @Test(expectedExceptions=DefinitionException.class)
@SpecAssertion(section="3.2")
+ @Test(expectedExceptions=DefinitionException.class)
+ @SpecAssertion(section="3.2", id = "unknown")
public void testAbstractClassDeclaredInJavaIsNotAllowed()
{
createSimpleBean(Cow_Broken.class);
}
@Test(groups="innerClass")
- @SpecAssertion(section="3.2")
+ @SpecAssertion(section="3.2", id = "unknown")
public void testStaticInnerClassDeclaredInJavaAllowed()
{
createSimpleBean(StaticInnerBean_Broken.class);
}
@Test(expectedExceptions=DefinitionException.class, groups="innerClass")
- @SpecAssertion(section="3.2")
+ @SpecAssertion(section="3.2", id = "unknown")
public void testNonStaticInnerClassDeclaredInJavaNotAllowed()
{
createSimpleBean(InnerBean_Broken.class);
}
@SuppressWarnings("unchecked")
- @Test(expectedExceptions=DefinitionException.class)
@SpecAssertion(section="3.2")
+ @Test(expectedExceptions=DefinitionException.class)
+ @SpecAssertion(section="3.2", id = "unknown")
public void testParameterizedClassDeclaredInJavaIsNotAllowed()
{
createSimpleBean(ParameterizedBean_Broken.class);
}
@Test(expectedExceptions=DefinitionException.class, groups={"stub",
"interceptors", "decorators"})
- @SpecAssertion(section="3.2")
+ @SpecAssertion(section="3.2", id = "unknown")
public void testClassCannotBeInterceptorAndDecorator()
{
@@ -103,69 +105,69 @@
}
@Test(groups={"stub", "producerMethod", "webbeansxml"})
- @SpecAssertion(section="3.2.4")
+ @SpecAssertion(section="3.2.4", id = "unknown")
public void testBeanDeclaredInXmlIgnoresProducerMethodDeclaredInJava()
{
assert false;
}
@Test(groups={"stub", "disposalMethod", "webbeansxml"})
- @SpecAssertion(section="3.2.4")
+ @SpecAssertion(section="3.2.4", id = "unknown")
public void testBeanDeclaredInXmlIgnoresDisposalMethodDeclaredInJava()
{
assert false;
}
@Test(groups={"stub", "observerMethod", "webbeansxml"})
- @SpecAssertion(section="3.2.4")
+ @SpecAssertion(section="3.2.4", id = "unknown")
public void testBeanDeclaredInXmlIgnoresObserverMethodDeclaredInJava()
{
assert false;
}
@Test(expectedExceptions=DefinitionException.class, groups={"stub",
"webbeansxml"})
- @SpecAssertion(section="3.2.4")
+ @SpecAssertion(section="3.2.4", id = "unknown")
public void testAbstractClassDeclaredInXmlIsNotAllowed()
{
}
@Test(groups={"stub", "innerClass", "webbeansxml"})
- @SpecAssertion(section="3.2.4")
+ @SpecAssertion(section="3.2.4", id = "unknown")
public void testStaticInnerClassDeclaredInXmlAllowed()
{
assert false;
}
@Test(expectedExceptions=DefinitionException.class, groups={"stub",
"innerClass", "webbeansxml"})
- @SpecAssertion(section="3.2.4")
+ @SpecAssertion(section="3.2.4", id = "unknown")
public void testNonStaticInnerClassDeclaredInXmlNotAllowed()
{
assert false;
}
@Test(expectedExceptions=DefinitionException.class, groups={"stub",
"webbeansxml"})
- @SpecAssertion(section="3.2.4")
+ @SpecAssertion(section="3.2.4", id = "unknown")
public void testParameterizedClassDeclaredInXmlIsNotAllowed()
{
assert false;
}
@Test(expectedExceptions=DefinitionException.class, groups={"stub",
"interceptors"})
- @SpecAssertion(section="3.2.4")
+ @SpecAssertion(section="3.2.4", id = "unknown")
public void testClassHasInterceptorInJavaMustHaveInterceptorInXml()
{
assert false;
}
@Test(expectedExceptions=DefinitionException.class, groups={"stub",
"interceptors"})
- @SpecAssertion(section="3.2.4")
+ @SpecAssertion(section="3.2.4", id = "unknown")
public void testClassHasDecoratorInJavaMustHaveDecoratorInXml()
{
assert false;
}
- @Test @SpecAssertion(section="3.2.5.1")
+ @Test @SpecAssertion(section="3.2.5.1", id = "unknown")
public void testInitializerAnnotatedConstructor() throws Exception
{
deployBeans(Sheep.class);
@@ -183,7 +185,7 @@
}
@Test
- @SpecAssertion(section="3.2.5.1")
+ @SpecAssertion(section="3.2.5.1", id = "unknown")
public void testImplicitConstructorUsed()
{
Bean<Order> order = createSimpleBean(Order.class);
@@ -191,7 +193,7 @@
}
@Test
- @SpecAssertion(section="3.2.6.1")
+ @SpecAssertion(section="3.2.6.1", id = "unknown")
public void testEmptyConstructorUsed()
{
createSimpleBean(Donkey.class).create(new MockCreationalContext<Donkey>());
@@ -199,7 +201,7 @@
}
@Test
- @SpecAssertion(section="3.2.6.1")
+ @SpecAssertion(section="3.2.6.1", id = "unknown")
public void testInitializerAnnotatedConstructorUsedOverEmptyConstuctor() throws
Exception
{
deployBeans(Turkey.class);
@@ -215,56 +217,56 @@
}
@Test(expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="3.2.6.1")
+ @SpecAssertion(section="3.2.6.1", id = "unknown")
public void testTooManyInitializerAnnotatedConstructor()
{
createSimpleBean(Goose_Broken.class);
}
@Test(expectedExceptions=DefinitionException.class, groups={"stub",
"disposalMethod"})
- @SpecAssertion(section="3.2.6.1")
+ @SpecAssertion(section="3.2.6.1", id = "unknown")
public void testConstructorHasDisposesParameter()
{
assert false;
}
@Test(expectedExceptions=DefinitionException.class, groups={"stub",
"observerMethod"})
- @SpecAssertion(section="3.2.6.1")
+ @SpecAssertion(section="3.2.6.1", id = "unknown")
public void testConstructorHasObservesParameter()
{
assert false;
}
@Test(groups={"stub", "webbeansxml"})
- @SpecAssertion(section="3.2.6.2")
+ @SpecAssertion(section="3.2.6.2", id = "unknown")
public void testImplicitConstructorDeclaredInXmlUsed()
{
assert false;
}
@Test(groups={"stub", "webbeansxml"})
- @SpecAssertion(section="3.2.6.2")
+ @SpecAssertion(section="3.2.6.2", id = "unknown")
public void testEmptyConstructorDeclaredInXmlUsed()
{
assert false;
}
@Test(expectedExceptions=DefinitionException.class, groups={"stub",
"webbeansxml"})
- @SpecAssertion(section="3.2.6.2")
+ @SpecAssertion(section="3.2.6.2", id = "unknown")
public void testConstructorDeclaredInXmlDoesNotExist()
{
assert false;
}
@Test(groups={"stub", "webbeansxml"})
- @SpecAssertion(section="3.2.6.2")
+ @SpecAssertion(section="3.2.6.2", id = "unknown")
public void testConstructorDeclaredInXmlIgnoresBindingTypesDeclaredInJava()
{
assert false;
}
@Test
- @SpecAssertion(section="3.2.6.3")
+ @SpecAssertion(section="3.2.6.3", id = "unknown")
public void testBindingTypeAnnotatedConstructor() throws Exception
{
deployBeans(Duck.class);
@@ -280,7 +282,7 @@
}
@Test
- @SpecAssertion(section="3.2")
+ @SpecAssertion(section="3.2", id = "unknown")
public void testDependentScopedBeanCanHavePublicField() throws Exception
{
deployBeans(Tiger.class);
@@ -298,7 +300,7 @@
}
@Test(expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="3.2")
+ @SpecAssertion(section="3.2", id = "unknown")
public void testNonDependentScopedBeanCanNotHavePublicField()
{
deployBeans(Leopard_Broken.class);
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/simple/SimpleBeanLifecycleTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/simple/SimpleBeanLifecycleTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/implementation/simple/SimpleBeanLifecycleTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -28,7 +28,7 @@
}
@Test(groups="beanConstruction")
- @SpecAssertion(section="3.2.5.3")
+ @SpecAssertion(section="3.2.5.3", id = "unknown")
public void testInjectionOfParametersIntoBeanConstructor()
{
Bean<FishPond> goldfishPondBean = createSimpleBean(FishPond.class);
@@ -39,14 +39,16 @@
assert fishPond.goldfish != null;
}
- @Test(groups={"stub", "specialization"})
@SpecAssertion(section="3.2.6")
+ @Test(groups={"stub", "specialization"})
+ @SpecAssertion(section="3.2.6", id = "unknown")
public void testSpecializedBeanAlwaysUsed()
{
// TODO Placeholder
assert false;
}
- @Test(groups="beanLifecycle") @SpecAssertion(section="5.3")
+ @Test(groups="beanLifecycle")
+ @SpecAssertion(section="5.3", id = "unknown")
public void testCreateReturnsInstanceOfBean()
{
Bean<RedSnapper> bean = createSimpleBean(RedSnapper.class);
@@ -54,42 +56,42 @@
}
@Test(groups={"stub", "beanLifecycle", "interceptors"})
- @SpecAssertion(section="6.3")
+ @SpecAssertion(section="6.3", id = "unknown")
public void testCreateBindsInterceptorStack()
{
assert false;
}
@Test(groups={"stub", "beanLifecycle", "decorators"})
- @SpecAssertion(section="6.3")
+ @SpecAssertion(section="6.3", id = "unknown")
public void testCreateBindsDecoratorStack()
{
assert false;
}
@Test(groups={"stub", "beanLifecycle",
"commonAnnotations"})
- @SpecAssertion(section="6.3")
+ @SpecAssertion(section="6.3", id = "unknown")
public void testCreateInjectsEjb()
{
assert false;
}
@Test(groups={"stub", "beanLifecycle",
"commonAnnotations"})
- @SpecAssertion(section="6.3")
+ @SpecAssertion(section="6.3", id = "unknown")
public void testCreateInjectsPersistenceContext()
{
assert false;
}
@Test(groups={"stub", "beanLifecycle",
"commonAnnotations"})
- @SpecAssertion(section="6.3")
+ @SpecAssertion(section="6.3", id = "unknown")
public void testCreateInjectsResource()
{
assert false;
}
@Test(groups={"beanLifecycle", "lifecycleCallbacks"})
- @SpecAssertion(section="6.3")
+ @SpecAssertion(section="6.3", id = "unknown")
public void testPostConstructPreDestroy() throws Exception
{
Bean<FarmOffice> farmOfficeBean = createSimpleBean(FarmOffice.class);
@@ -104,7 +106,7 @@
assert farm.closed!=null;
}
- @Test @SpecAssertion(section="4.2")
+ @Test @SpecAssertion(section="4.2", id = "unknown")
public void testSubClassInheritsPostConstructOnSuperclass() throws Exception
{
OrderProcessor.postConstructCalled = false;
@@ -120,7 +122,7 @@
assert OrderProcessor.postConstructCalled;
}
- @Test @SpecAssertion(section="4.2")
+ @Test @SpecAssertion(section="4.2", id = "unknown")
public void testSubClassInheritsPreDestroyOnSuperclass() throws Exception
{
OrderProcessor.preDestroyCalled = false;
@@ -137,7 +139,7 @@
assert OrderProcessor.preDestroyCalled;
}
- @Test @SpecAssertion(section="4.2")
+ @Test @SpecAssertion(section="4.2", id = "unknown")
public void
testSubClassDoesNotInheritPostConstructOnSuperclassBlockedByIntermediateClass() throws
Exception
{
@@ -154,7 +156,7 @@
assert !OrderProcessor.postConstructCalled;
}
- @Test @SpecAssertion(section="4.2")
+ @Test @SpecAssertion(section="4.2", id = "unknown")
public void
testSubClassDoesNotInheritPreDestroyConstructOnSuperclassBlockedByIntermediateClass()
throws Exception
{
OrderProcessor.preDestroyCalled = false;
@@ -172,7 +174,8 @@
}
- @Test(groups="injection") @SpecAssertion(section="6.3")
+ @Test(groups="injection")
+ @SpecAssertion(section="6.3", id = "unknown")
public void testCreateInjectsFieldsDeclaredInJava()
{
Bean<TunaFarm> tunaFarmBean = createSimpleBean(TunaFarm.class);
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/realization/RealizationTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/realization/RealizationTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/realization/RealizationTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -33,7 +33,7 @@
return deploymentTypes;
}
- @Test @SpecAssertion(section="4.4")
+ @Test @SpecAssertion(section="4.4", id = "unknown")
public void testRealizedBeanWithProducerMethodHasSameScope()
{
deployBeans(Cow.class);
@@ -41,7 +41,7 @@
assert manager.resolveByType(Dung.class,
SMELLY_LITERAL).iterator().next().getScopeType().equals(RequestScoped.class);
}
- @Test @SpecAssertion(section="4.4")
+ @Test @SpecAssertion(section="4.4", id = "unknown")
public void testRealizedBeanWithProducerMethodHasDeploymentTypeOfRealizingClass()
{
deployBeans(Cow.class);
@@ -49,7 +49,7 @@
assert manager.resolveByType(Dung.class,
SMELLY_LITERAL).iterator().next().getDeploymentType().equals(AnotherDeploymentType.class);
}
- @Test @SpecAssertion(section="4.4")
+ @Test @SpecAssertion(section="4.4", id = "unknown")
public void testRealizedBeanWithProducerMethodHasSameBindings()
{
deployBeans(Cow.class);
@@ -58,7 +58,7 @@
assert manager.resolveByType(Dung.class,
SMELLY_LITERAL).iterator().next().getBindings().iterator().next().annotationType().equals(Smelly.class);
}
- @Test(a)SpecAssertion(section="4.4")
+ @Test(a)SpecAssertion(section="4.4", id = "unknown")
public void testRealizedBeanWithProducerMethodHasBindingsOfMethodAndRealizingType()
{
deployBeans(TameCow.class);
@@ -67,7 +67,7 @@
assert annotationSetMatches(manager.resolveByType(Dung.class,
SMELLY_LITERAL).iterator().next().getBindings(), Smelly.class, Tame.class);
}
- @Test @SpecAssertion(section="4.4")
+ @Test @SpecAssertion(section="4.4", id = "unknown")
public void testRealizedBeanWithProducerMethodHasSameStereotypes()
{
deployBeans(LabradorKennel.class);
@@ -75,13 +75,13 @@
assert
manager.resolveByType(Dog.class).iterator().next().getScopeType().equals(RequestScoped.class);
}
- @Test(groups="stub") @SpecAssertion(section="4.1")
+ @Test(groups="stub") @SpecAssertion(section="4.1", id =
"unknown")
public void testRealizedBeanWithProducerMethodHasSameInterceptorBindings()
{
assert false;
}
- @Test @SpecAssertion(section="4.4")
+ @Test @SpecAssertion(section="4.4", id = "unknown")
public void testRealizedBeanWithProducerFieldHasSameScope()
{
deployBeans(Horse.class);
@@ -89,7 +89,7 @@
assert manager.resolveByType(Dung.class,
SMELLY_LITERAL).iterator().next().getScopeType().equals(RequestScoped.class);
}
- @Test @SpecAssertion(section="4.4")
+ @Test @SpecAssertion(section="4.4", id = "unknown")
public void testRealizedBeanWithProducerFieldHasDeploymentTypeOfRealizingClass()
{
deployBeans(Horse.class);
@@ -97,7 +97,7 @@
assert manager.resolveByType(Dung.class,
SMELLY_LITERAL).iterator().next().getDeploymentType().equals(AnotherDeploymentType.class);
}
- @Test @SpecAssertion(section="4.4")
+ @Test @SpecAssertion(section="4.4", id = "unknown")
public void testRealizedBeanWithProducerFieldHasSameBindings()
{
deployBeans(Horse.class);
@@ -106,7 +106,7 @@
assert manager.resolveByType(Dung.class,
SMELLY_LITERAL).iterator().next().getBindings().iterator().next().annotationType().equals(Smelly.class);
}
- @Test @SpecAssertion(section="4.4")
+ @Test @SpecAssertion(section="4.4", id = "unknown")
public void testRealizedBeanWithProducerFieldHasBindingsOfMethodAndRealizingType()
{
deployBeans(TameHorse.class);
@@ -115,7 +115,7 @@
assert annotationSetMatches(manager.resolveByType(Dung.class,
SMELLY_LITERAL).iterator().next().getBindings(), Smelly.class, Tame.class);
}
- @Test @SpecAssertion(section="4.4")
+ @Test @SpecAssertion(section="4.4", id = "unknown")
public void testRealizedBeanWithProducerFieldHasSameStereotypes()
{
deployBeans(Stable.class);
@@ -123,25 +123,25 @@
assert
manager.resolveByType(Horse.class).iterator().next().getScopeType().equals(RequestScoped.class);
}
- @Test(groups="stub") @SpecAssertion(section="4.4")
+ @Test(groups="stub") @SpecAssertion(section="4.4", id =
"unknown")
public void testRealizedBeanWithProducerFieldHasSameInterceptorBindings()
{
assert false;
}
- @Test(groups="stub") @SpecAssertion(section="4.4")
+ @Test(groups="stub") @SpecAssertion(section="4.4", id =
"unknown")
public void testDisposalMethodInherited()
{
assert false;
}
- @Test(groups="stub") @SpecAssertion(section="4.4")
+ @Test(groups="stub") @SpecAssertion(section="4.4", id =
"unknown")
public void testRealizedDisposalMethodHasBindingsOfMethodAndRealizingType()
{
assert false;
}
- @Test @SpecAssertion(section="4.4")
+ @Test @SpecAssertion(section="4.4", id = "unknown")
public void testObserverMethodInheritedAndHasSameBindings()
{
deployBeans(FarmHouse.class);
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/enterprise/EnterpriseBeanSpecializationTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/enterprise/EnterpriseBeanSpecializationTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/enterprise/EnterpriseBeanSpecializationTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -12,6 +12,7 @@
import org.jboss.webbeans.tck.AbstractTest;
import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecAssertions;
import org.testng.annotations.Test;
/**
@@ -33,7 +34,10 @@
private static Annotation LANDOWNER_LITERAL = new AnnotationLiteral<Landowner>()
{};
@Test
- @SpecAssertion(section = {"4.3.1", "3.2.7"})
+ @SpecAssertions({
+ @SpecAssertion(section = "4.3.1", id = "unknown"),
+ @SpecAssertion(section = "3.2.7", id = "unknown")
+ })
public void testSpecializingBeanHasBindingsOfSpecializedAndSpecializingBean()
{
deployBeans(Farmer.class, LazyFarmer.class);
@@ -43,7 +47,11 @@
assert annotationSetMatches( manager.resolveByType(Farmer.class,
LANDOWNER_LITERAL).iterator().next().getBindings(), Landowner.class, Lazy.class);
}
- @Test @SpecAssertion(section = {"4.3.1", "3.2.7"})
+ @Test
+ @SpecAssertions({
+ @SpecAssertion(section = "4.3.1", id = "unknown"),
+ @SpecAssertion(section = "3.2.7", id = "unknown")
+ })
public void testSpecializingBeanHasNameOfSpecializedBean()
{
deployBeans(Farmer.class, LazyFarmer.class);
@@ -53,14 +61,17 @@
}
@Test(expectedExceptions=DefinitionException.class)
- @SpecAssertion(section = "4.3.1")
+ @SpecAssertion(section = "4.3.1", id = "unknown")
public void testSpecializingAndSpecializedBeanHasName()
{
deployBeans(FarmYard_Broken.class);
}
@Test(groups="broken")
- @SpecAssertion(section={"4.3.1", "3.2.7"})
+ @SpecAssertions({
+ @SpecAssertion(section = "4.3.1", id = "unknown"),
+ @SpecAssertion(section = "3.2.7", id = "unknown")
+ })
public void testSpecializedBeanNotInstantiated() throws Exception
{
deployBeans(LazyFarmer.class, Farmer.class);
@@ -78,14 +89,14 @@
}
@Test(expectedExceptions=InconsistentSpecializationException.class)
- @SpecAssertion(section="4.3.1")
+ @SpecAssertion(section="4.3.1", id = "unknown")
public void testSpecializingBeanDoesNotHaveHigherPrecedenceThanSpecializedBean()
{
deployBeans(Farmer.class, OrganicFarmer_Broken.class);
}
@Test(groups="broken")
- @SpecAssertion(section="4.3.1")
+ @SpecAssertion(section="4.3.1", id = "unknown")
public void testProducerMethodOnSpecializedBeanCalledOnSpecializingBean() throws
Exception
{
deployBeans(Office.class, Building.class);
@@ -103,42 +114,42 @@
}
@Test(expectedExceptions=InconsistentSpecializationException.class)
- @SpecAssertion(section="4.3.1")
+ @SpecAssertion(section="4.3.1", id = "unknown")
public void testTwoBeansSpecializeTheSameBean()
{
deployBeans(Farmer.class, SheepFarmer_Broken.class, FishFarmer_Broken.class);
}
@Test(groups={"specialization"},expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="3.2.7")
+ @SpecAssertion(section="3.2.7", id = "unknown")
public void testSpecializingClassDirectlyExtendsSimpleBean()
{
deployBeans(Tractor_Broken.class);
}
@Test(groups={"specialization"},expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="3.2.7")
+ @SpecAssertion(section="3.2.7", id = "unknown")
public void testSpecializingClassDirectlyExtendsNothing()
{
deployBeans(Cow_Broken.class);
}
@Test(groups={"specialization"},expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="3.2.7")
+ @SpecAssertion(section="3.2.7", id = "unknown")
public void testSpecializingClassImplementsInterfaceAndExtendsNothing()
{
deployBeans(Donkey_Broken.class);
}
@Test(groups={"broken",
"specialization"},expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="3.3.7")
+ @SpecAssertion(section="3.3.7", id = "unknown")
public void testSpecializingBeanDoesNotSupportAllLocalInterfacesOnSpecializedBean()
{
assert false;
}
@Test(groups={"broken",
"specialization"},expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="3.3.7")
+ @SpecAssertion(section="3.3.7", id = "unknown")
public void testSpecializingBeanDoesNotSupportLocalInterfaceView()
{
assert false;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/producer/method/ProducerMethodSpecializationTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/producer/method/ProducerMethodSpecializationTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/producer/method/ProducerMethodSpecializationTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -12,6 +12,7 @@
import org.jboss.webbeans.tck.AbstractTest;
import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecAssertions;
import org.testng.annotations.Test;
/**
@@ -32,7 +33,11 @@
return deploymentTypes;
}
- @Test @SpecAssertion(section = {"4.3.1", "3.4.5"})
+ @Test
+ @SpecAssertions({
+ @SpecAssertion(section = "4.3.1", id = "unknown"),
+ @SpecAssertion(section = "3.4.5", id = "unknown")
+ })
public void testSpecializingBeanHasBindingsOfSpecializedAndSpecializingBean()
{
deployBeans(JewelryShop.class);
@@ -41,7 +46,11 @@
assert annotationSetMatches( manager.resolveByType(Product.class,
EXPENSIVE_LITERAL).iterator().next().getBindings(), Expensive.class, Sparkly.class);
}
- @Test @SpecAssertion(section = {"4.3.1", "3.4.5"})
+ @Test
+ @SpecAssertions({
+ @SpecAssertion(section = "4.3.1", id = "unknown"),
+ @SpecAssertion(section = "3.4.5", id = "unknown")
+ })
public void testSpecializingBeanHasNameOfSpecializedBean()
{
deployBeans(JewelryShop.class);
@@ -49,13 +58,18 @@
assert manager.resolveByType(Product.class, new
AnnotationLiteral<Sparkly>(){}).iterator().next().getName().equals("expensiveGift");
}
- @Test(expectedExceptions=DefinitionException.class) @SpecAssertion(section =
"4.3.1")
+ @Test(expectedExceptions=DefinitionException.class)
+ @SpecAssertion(section = "4.3.1", id = "unknown")
public void testSpecializingAndSpecializedBeanHasName()
{
deployBeans(HighSchool_Broken.class);
}
- @Test @SpecAssertion(section={"4.3.1", "3.4.5"})
+ @Test
+ @SpecAssertions({
+ @SpecAssertion(section = "4.3.1", id = "unknown"),
+ @SpecAssertion(section = "3.4.5", id = "unknown")
+ })
public void testSpecializedBeanNotInstantiated() throws Exception
{
deployBeans(JewelryShop.class, Shop.class);
@@ -73,35 +87,35 @@
}
@Test(expectedExceptions=InconsistentSpecializationException.class)
- @SpecAssertion(section="4.3.1")
+ @SpecAssertion(section="4.3.1", id = "unknown")
public void testSpecializingBeanDoesNotHaveHigherPrecedenceThanSpecializedBean()
{
deployBeans(ClothesShop_Broken.class);
}
@Test(expectedExceptions=InconsistentSpecializationException.class)
- @SpecAssertion(section="4.3.1")
+ @SpecAssertion(section="4.3.1", id = "unknown")
public void testTwoBeansSpecializeTheSameBean()
{
deployBeans(PictureShop_Broken.class, Bookshop_Broken.class);
}
@Test(expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="3.4.5")
+ @SpecAssertion(section="3.4.5", id = "unknown")
public void testSpecializedStaticMethod()
{
deployBeans(FurnitureShop_Broken.class);
}
@Test(expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="3.4.5")
+ @SpecAssertion(section="3.4.5", id = "unknown")
public void testSpecializedMethodDoesNotOverrideAnotherProducerMethod()
{
deployBeans(FurnitureShop_Broken.class);
}
@Test(expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="3.4.5")
+ @SpecAssertion(section="3.4.5", id = "unknown")
public void testSpecializedMethodIndirectlyOverridesAnotherProducerMethod()
{
deployBeans(ShoeShop_Broken.class);
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/simple/SimpleBeanSpecializationTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/simple/SimpleBeanSpecializationTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/simple/SimpleBeanSpecializationTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -12,6 +12,7 @@
import org.jboss.webbeans.tck.AbstractTest;
import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecAssertions;
import org.testng.annotations.Test;
/**
@@ -32,7 +33,11 @@
private static Annotation LANDOWNER_LITERAL = new AnnotationLiteral<Landowner>()
{};
- @Test @SpecAssertion(section = {"4.3.1", "3.2.7"})
+ @Test
+ @SpecAssertions({
+ @SpecAssertion(section = "4.3.1", id = "unknown"),
+ @SpecAssertion(section = "3.2.7", id = "unknown")
+ })
public void testSpecializingBeanHasBindingsOfSpecializedAndSpecializingBean()
{
deployBeans(LazyFarmer.class);
@@ -42,7 +47,11 @@
assert annotationSetMatches( manager.resolveByType(Farmer.class,
LANDOWNER_LITERAL).iterator().next().getBindings(), Landowner.class, Lazy.class);
}
- @Test @SpecAssertion(section = {"4.3.1", "3.2.7"})
+ @Test
+ @SpecAssertions({
+ @SpecAssertion(section = "4.3.1", id = "unknown"),
+ @SpecAssertion(section = "3.2.7", id = "unknown")
+ })
public void testSpecializingBeanHasNameOfSpecializedBean()
{
deployBeans(LazyFarmer.class);
@@ -51,13 +60,18 @@
assert manager.resolveByType(Farmer.class,
LANDOWNER_LITERAL).iterator().next().getName().equals("farmer");
}
- @Test(expectedExceptions=DefinitionException.class) @SpecAssertion(section =
"4.3.1")
+ @Test(expectedExceptions=DefinitionException.class)
+ @SpecAssertion(section = "4.3.1", id = "unknown")
public void testSpecializingAndSpecializedBeanHasName()
{
deployBeans(FarmYard_Broken.class);
}
- @Test @SpecAssertion(section={"4.3.1", "3.2.7"})
+ @Test
+ @SpecAssertions({
+ @SpecAssertion(section = "4.3.1", id = "unknown"),
+ @SpecAssertion(section = "3.2.7", id = "unknown")
+ })
public void testSpecializedBeanNotInstantiated() throws Exception
{
deployBeans(LazyFarmer.class, Farmer.class);
@@ -75,13 +89,13 @@
}
@Test(expectedExceptions=InconsistentSpecializationException.class)
- @SpecAssertion(section="4.3.1")
+ @SpecAssertion(section="4.3.1", id = "unknown")
public void testSpecializingBeanDoesNotHaveHigherPrecedenceThanSpecializedBean()
{
deployBeans(OrganicFarmer_Broken.class);
}
- @Test @SpecAssertion(section="4.3.1")
+ @Test @SpecAssertion(section="4.3.1", id = "unknown")
public void testProducerMethodOnSpecializedBeanCalledOnSpecializingBean() throws
Exception
{
deployBeans(Office.class, Building.class);
@@ -99,28 +113,28 @@
}
@Test(expectedExceptions=InconsistentSpecializationException.class)
- @SpecAssertion(section="4.3.1")
+ @SpecAssertion(section="4.3.1", id = "unknown")
public void testTwoBeansSpecializeTheSameBean()
{
deployBeans(SheepFarmer_Broken.class, FishFarmer_Broken.class);
}
@Test(groups={"specialization"},expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="3.2.7")
+ @SpecAssertion(section="3.2.7", id = "unknown")
public void testSpecializingClassDirectlyExtendsEnterpriseBean()
{
deployBeans(FarmEquipment.class, Tractor_Broken.class);
}
@Test(groups={"specialization"},expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="3.2.7")
+ @SpecAssertion(section="3.2.7", id = "unknown")
public void testSpecializingClassDirectlyExtendsNothing()
{
deployBeans(Cow_Broken.class);
}
@Test(groups={"specialization"},expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="3.2.7")
+ @SpecAssertion(section="3.2.7", id = "unknown")
public void testSpecializingClassImplementsInterfaceAndExtendsNothing()
{
deployBeans(Donkey_Broken.class);
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/byname/InstantiationByNameTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/byname/InstantiationByNameTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/byname/InstantiationByNameTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -15,7 +15,7 @@
public class InstantiationByNameTest extends AbstractTest
{
- @Test(groups="resolution") @SpecAssertion(section="5.10")
+ @Test(groups="resolution") @SpecAssertion(section="5.10", id =
"unknown")
public void testNoWebBeansFound() throws Exception
{
Bean<Cod> codBean = createSimpleBean(Cod.class);
@@ -27,7 +27,7 @@
}
@Test(expectedExceptions=AmbiguousDependencyException.class)
- @SpecAssertion(section="5.7.1")
+ @SpecAssertion(section="5.7.1", id = "unknown")
public void testAmbiguousDependencies() throws Exception
{
Bean<Cod> codBean = createSimpleBean(Cod.class);
@@ -40,7 +40,7 @@
manager.getInstanceByName("whitefish");
}
- @Test(groups={"resolution", "beanLifecycle"})
@SpecAssertion(section="5.7.1")
+ @Test(groups={"resolution", "beanLifecycle"})
@SpecAssertion(section="5.7.1", id = "unknown")
public void testGetInstanceByName()
{
Bean<Tuna> tunaBean = createSimpleBean(Tuna.class);
@@ -70,7 +70,7 @@
}
}
- @Test(groups={"stub", "resolution", "el"})
@SpecAssertion(section="5.10")
+ @Test(groups={"stub", "resolution", "el"})
@SpecAssertion(section="5.10", id = "unknown")
public void testGetInstanceByNameCalledOncePerDistinctNameInElExpression()
{
assert false;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/byname/ResolutionByNameTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/byname/ResolutionByNameTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/byname/ResolutionByNameTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -36,7 +36,7 @@
* the Web Bean
*/
@Test(groups={"stub", "el"})
- @SpecAssertion(section="5.11")
+ @SpecAssertion(section="5.11", id = "unknown")
public void testELResolver()
{
assert manager.getInstanceByName("nonexistant") == null;
@@ -59,7 +59,7 @@
* AmbiguousDependencyException.
*/
@Test(expectedExceptions=AmbiguousDependencyException.class)
- @SpecAssertion(section="5.11")
+ @SpecAssertion(section="5.11", id = "unknown")
public void testDuplicateNamedBeans()
{
try
@@ -80,7 +80,7 @@
}
}
- @Test @SpecAssertion(section="5.11")
+ @Test @SpecAssertion(section="5.11", id = "unknown")
public void testNamedBasedResolution()
{
@@ -112,7 +112,7 @@
assert manager.resolveByName("whitefish").contains(plaiceBean);
}
- @Test(groups="resolution") @SpecAssertion(section="5.11")
+ @Test(groups="resolution") @SpecAssertion(section="5.11", id =
"unknown")
public void testNoWebBeansFound() throws Exception
{
Bean<Cod> codBean = createSimpleBean(Cod.class);
@@ -133,7 +133,7 @@
* highest precedence deployment type that occurs in the set. If there are no
matching Web Beans,
* an empty set is returned.
*/
- @Test(groups="stub") @SpecAssertion(section="5.11")
+ @Test(groups="stub") @SpecAssertion(section="5.11", id =
"unknown")
public void testOnlyHighestPrecedenceResolved()
{
// Both Cod and Plaice are named "whitefish" - Plaice has the highest
deployment type (AnotherDeploymentType)
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/clientProxy/ClientProxyTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/clientProxy/ClientProxyTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/clientProxy/ClientProxyTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -31,7 +31,7 @@
}
@Test(groups = "configuration().getBeans()")
- @SpecAssertion(section = { "5.4" })
+ @SpecAssertion(section = "5.4", id = "unknown")
public void testClientProxyUsedForNormalScope()
{
Bean<Tuna> tunaBean = createSimpleBean(Tuna.class);
@@ -41,7 +41,7 @@
}
@Test(groups = "configuration().getBeans()")
- @SpecAssertion(section = { "5.4" })
+ @SpecAssertion(section = "5.4", id = "unknown")
public void testClientProxyNotUsedForPseudoScope()
{
Bean<Fox> foxBean = createSimpleBean(Fox.class);
@@ -58,7 +58,7 @@
}
@Test(groups = "configuration().getBeans()")
- @SpecAssertion(section = "5.4")
+ @SpecAssertion(section = "5.4", id = "unknown")
public void testSimpleWebBeanClientProxyIsSerializable() throws IOException,
ClassNotFoundException
{
Bean<TunedTuna> tunaBean = createSimpleBean(TunedTuna.class);
@@ -72,7 +72,7 @@
}
@Test(groups = "configuration().getBeans()", expectedExceptions =
UnproxyableDependencyException.class)
- @SpecAssertion(section = "5.4.1")
+ @SpecAssertion(section = "5.4.1", id = "unknown")
public void testInjectionPointWithUnproxyableTypeWhichResolvesToNormalScopedWebBean()
{
Bean<FinalTuna_Broken> tunaBean = createSimpleBean(FinalTuna_Broken.class);
@@ -83,7 +83,7 @@
}
@Test(groups = "configuration().getBeans()")
- @SpecAssertion(section = "5.4.2")
+ @SpecAssertion(section = "5.4.2", id = "unknown")
public void testClientProxyInvocation()
{
Bean<TunedTuna> tunaBean = createSimpleBean(TunedTuna.class);
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/injection/InjectionTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/injection/InjectionTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/injection/InjectionTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -32,7 +32,7 @@
}
@Test(groups = { "injection", "producerMethod" })
- @SpecAssertion(section = "5.2")
+ @SpecAssertion(section = "5.2", id = "unknown")
public void testInjectionPerformsBoxingIfNecessary() throws Exception
{
Bean<SpiderProducer> spiderProducer =
createSimpleBean(SpiderProducer.class);
@@ -45,14 +45,14 @@
}
@Test(groups = { "injection", "producerMethod" },
expectedExceptions = NullableDependencyException.class)
- @SpecAssertion(section = "5.2")
+ @SpecAssertion(section = "5.2", id = "unknown")
public void testPrimitiveInjectionPointResolvesToNullableWebBean() throws Exception
{
deployBeans(FarmHouseProducer_Broken.class, FarmHouse_Broken.class);
}
@Test(groups = { "injection", "clientProxy" }, expectedExceptions
= ContextNotActiveException.class)
- @SpecAssertion(section = "5.3")
+ @SpecAssertion(section = "5.3", id = "unknown")
public void testInvokeNormalInjectedWebBeanWhenContextNotActive()
{
Bean<TunaFarm> tunaFarmBean = createSimpleBean(TunaFarm.class);
@@ -65,7 +65,7 @@
}
@Test(groups = "injection")
- @SpecAssertion(section = "5.3")
+ @SpecAssertion(section = "5.3", id = "unknown")
public void testInvokeDependentScopeWhenContextNotActive()
{
Bean<FoxRun> foxRunBean = createSimpleBean(FoxRun.class);
@@ -76,7 +76,7 @@
}
@Test(groups = "injection", expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = "3.7")
+ @SpecAssertion(section = "3.7", id = "unknown")
public void testInjectingStaticField()
{
Bean<BeanWithStaticBoundField_Broken> bean =
createSimpleBean(BeanWithStaticBoundField_Broken.class);
@@ -86,7 +86,7 @@
}
@Test(groups = "injection", expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = "3.7")
+ @SpecAssertion(section = "3.7", id = "unknown")
public void testInjectingFinalField()
{
Bean<BeanWithFinalBoundField_Broken> bean =
createSimpleBean(BeanWithFinalBoundField_Broken.class);
@@ -95,7 +95,7 @@
bean.create(new MockCreationalContext<BeanWithFinalBoundField_Broken>());
}
- @Test @SpecAssertion(section="4.2")
+ @Test @SpecAssertion(section="4.2", id = "unknown")
public void testFieldDeclaredInSuperclassInjected() throws Exception
{
deployBeans(Fox.class, DeluxeHenHouse.class, HenHouse.class);
@@ -113,35 +113,35 @@
}
@Test(groups = { "stub", "injection", "webbeansxml" })
- @SpecAssertion(section = "3.8.2")
+ @SpecAssertion(section = "3.8.2", id = "unknown")
public void testInjectFieldsDeclaredInXml()
{
assert false;
}
@Test(groups = { "stub", "injection", "webbeansxml" })
- @SpecAssertion(section = "3.8.2")
+ @SpecAssertion(section = "3.8.2", id = "unknown")
public void testInjectedFieldDeclaredInXmlIgnoresJavaAnnotations()
{
assert false;
}
@Test(groups = { "stub", "injection", "webbeansxml" })
- @SpecAssertion(section = "3.8.2")
+ @SpecAssertion(section = "3.8.2", id = "unknown")
public void testInjectedFieldDeclaredInXmlAssumesCurrent()
{
assert false;
}
@Test(groups = { "stub", "injection", "webbeansxml" },
expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = "3.8.2")
+ @SpecAssertion(section = "3.8.2", id = "unknown")
public void testNonexistentFieldDefinedInXml()
{
assert false;
}
@Test(groups = { "stub", "injection", "webbeansxml" })
- @SpecAssertion(section = "3.8.2")
+ @SpecAssertion(section = "3.8.2", id = "unknown")
public void testInjectFieldsDeclaredInXmlAndJava()
{
assert false;
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/injectionpoint/InjectionPointTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/injectionpoint/InjectionPointTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/injectionpoint/InjectionPointTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -46,7 +46,7 @@
{
@Test(groups = { "injectionPoint" })
- @SpecAssertion(section = "5.6")
+ @SpecAssertion(section = "5.6", id = "unknown")
public void testGetBean()
{
deployBeans(FieldInjectionPointBean.class, BeanWithInjectionPointMetadata.class);
@@ -70,7 +70,7 @@
}
@Test(groups = { "injectionPoint" })
- @SpecAssertion(section = "5.6")
+ @SpecAssertion(section = "5.6", id = "unknown")
public void testGetType()
{
deployBeans(FieldInjectionPointBean.class, BeanWithInjectionPointMetadata.class);
@@ -91,7 +91,7 @@
}
@Test(groups = { "injectionPoint" })
- @SpecAssertion(section = "5.6")
+ @SpecAssertion(section = "5.6", id = "unknown")
public void testGetBindingTypes()
{
deployBeans(FieldInjectionPointBean.class, BeanWithInjectionPointMetadata.class);
@@ -114,7 +114,7 @@
}
@Test(groups = { "injectionPoint" })
- @SpecAssertion(section = "5.6")
+ @SpecAssertion(section = "5.6", id = "unknown")
public void testGetMemberField()
{
deployBeans(FieldInjectionPointBean.class, BeanWithInjectionPointMetadata.class);
@@ -135,7 +135,7 @@
}
@Test(groups = { "injectionPoint" })
- @SpecAssertion(section = "5.6")
+ @SpecAssertion(section = "5.6", id = "unknown")
public void testGetMemberMethod()
{
deployBeans(MethodInjectionPointBean.class, BeanWithInjectionPointMetadata.class);
@@ -161,7 +161,7 @@
}
@Test(groups = { "injectionPoint" })
- @SpecAssertion(section = "5.6")
+ @SpecAssertion(section = "5.6", id = "unknown")
public void testGetMemberConstructor()
{
deployBeans(ConstructorInjectionPointBean.class,
BeanWithInjectionPointMetadata.class);
@@ -187,7 +187,7 @@
}
@Test(groups = { "injectionPoint" })
- @SpecAssertion(section = "5.6")
+ @SpecAssertion(section = "5.6", id = "unknown")
public void testGetAnnotation()
{
deployBeans(FieldInjectionPointBean.class, BeanWithInjectionPointMetadata.class);
@@ -208,7 +208,7 @@
}
@Test(groups = { "injectionPoint" })
- @SpecAssertion(section = "5.6")
+ @SpecAssertion(section = "5.6", id = "unknown")
public void testGetAnnotations()
{
deployBeans(FieldInjectionPointBean.class, BeanWithInjectionPointMetadata.class);
@@ -232,7 +232,7 @@
}
@Test(groups = { "injectionPoint" })
- @SpecAssertion(section = "5.6")
+ @SpecAssertion(section = "5.6", id = "unknown")
public void testStandardDeployment() throws Exception
{
deployBeans();
@@ -251,7 +251,7 @@
}
@Test(groups = { "injectionPoint" })
- @SpecAssertion(section = "5.6")
+ @SpecAssertion(section = "5.6", id = "unknown")
public void testDependentScope() throws Exception
{
deployBeans();
@@ -270,7 +270,7 @@
}
@Test(groups = { "injectionPoint" })
- @SpecAssertion(section = "5.6")
+ @SpecAssertion(section = "5.6", id = "unknown")
public void testApiTypeInjectionPoint()
{
deployBeans(FieldInjectionPointBean.class, BeanWithInjectionPointMetadata.class);
@@ -291,7 +291,7 @@
}
@Test(groups = { "injectionPoint" })
- @SpecAssertion(section = "5.6")
+ @SpecAssertion(section = "5.6", id = "unknown")
public void testCurrentBinding()
{
deployBeans(FieldInjectionPointBean.class, BeanWithInjectionPointMetadata.class);
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/manager/ManagerTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/manager/ManagerTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/manager/ManagerTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -12,7 +12,7 @@
public class ManagerTest extends AbstractTest
{
@Test(groups={"manager", "injection", "deployment"})
- @SpecAssertion(section="5.7")
+ @SpecAssertion(section="5.7", id = "unknown")
public void testInjectingManager() throws Exception
{
deployBeans(FishFarmOffice.class);
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/typesafe/InstantiationByTypeTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/typesafe/InstantiationByTypeTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/typesafe/InstantiationByTypeTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -33,7 +33,7 @@
}
@Test(groups={"resolution", "beanLifecycle"})
- @SpecAssertion(section="5.8")
+ @SpecAssertion(section="5.8", id = "unknown")
public void testCurrentBindingTypeAssumed()
{
Bean<Tuna> tunaBean = createSimpleBean(Tuna.class);
@@ -42,14 +42,14 @@
}
@Test(groups="resolution",
expectedExceptions=IllegalArgumentException.class)
- @SpecAssertion(section="5.8")
+ @SpecAssertion(section="5.8", id = "unknown")
public void testParameterizedTypeWithWildcardParameter()
{
manager.getInstanceByType(new
TypeLiteral<ParameterizedBean_Broken<?>>(){});
}
@Test(groups="resolution",
expectedExceptions=IllegalArgumentException.class)
- @SpecAssertion(section="5.8")
+ @SpecAssertion(section="5.8", id = "unknown")
public <T> void testParameterizedTypeWithTypeParameter()
{
manager.getInstanceByType(new
TypeLiteral<ParameterizedBean_Broken<T>>(){});
@@ -57,21 +57,21 @@
@Test(groups="resolution",
expectedExceptions=DuplicateBindingTypeException.class)
- @SpecAssertion(section="5.8")
+ @SpecAssertion(section="5.8", id = "unknown")
public void testDuplicateBindingTypesUsed()
{
manager.getInstanceByType(Tuna.class, new CurrentBinding(), new CurrentBinding());
}
@Test(groups="resolution",
expectedExceptions=IllegalArgumentException.class)
- @SpecAssertion(section="5.8")
+ @SpecAssertion(section="5.8", id = "unknown")
public void testNonBindingTypeUsed()
{
manager.getInstanceByType(Tuna.class, new AnotherDeploymentTypeLiteral());
}
@Test(expectedExceptions=AmbiguousDependencyException.class)
- @SpecAssertion(section="5.8")
+ @SpecAssertion(section="5.8", id = "unknown")
public void testAmbiguousDependencies() throws Exception
{
Bean<Cod> codBean = createSimpleBean(Cod.class);
@@ -84,7 +84,7 @@
}
@Test(expectedExceptions=UnsatisfiedDependencyException.class)
- @SpecAssertion(section="5.8")
+ @SpecAssertion(section="5.8", id = "unknown")
public void testUnsatisfiedDependencies() throws Exception
{
Bean<Cod> codBean = createSimpleBean(Cod.class);
@@ -97,7 +97,7 @@
}
@Test(expectedExceptions=UnproxyableDependencyException.class)
- @SpecAssertion(section="5.8")
+ @SpecAssertion(section="5.8", id = "unknown")
public void testUnproxyableDependencies() throws Exception
{
deployBeans(FinalTuna_Broken.class);
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/typesafe/ResolutionByTypeTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/typesafe/ResolutionByTypeTest.java 2009-01-29
20:32:47 UTC (rev 1360)
+++
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/typesafe/ResolutionByTypeTest.java 2009-01-30
09:53:04 UTC (rev 1361)
@@ -13,6 +13,7 @@
import org.jboss.webbeans.tck.AbstractTest;
import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecAssertions;
import org.jboss.webbeans.tck.impl.literals.CurrentBinding;
import org.testng.annotations.Test;
@@ -33,7 +34,7 @@
}
@Test(groups="resolution")
- @SpecAssertion(section="5.9")
+ @SpecAssertion(section="5.9", id = "unknown")
public void testDefaultBindingTypeAssumed() throws Exception
{
Bean<Tuna> tunaBean = createSimpleBean(Tuna.class);
@@ -44,35 +45,35 @@
}
@Test(groups="resolution",
expectedExceptions=IllegalArgumentException.class)
- @SpecAssertion(section="5.9")
+ @SpecAssertion(section="5.9", id = "unknown")
public void testParameterizedTypeWithWildcardParameter()
{
manager.resolveByType(new
TypeLiteral<ParameterizedBean_Broken<?>>(){});
}
@Test(groups="resolution",
expectedExceptions=IllegalArgumentException.class)
- @SpecAssertion(section="5.9")
+ @SpecAssertion(section="5.9", id = "unknown")
public <T> void testParameterizedTypeWithTypeParameter()
{
manager.resolveByType(new
TypeLiteral<ParameterizedBean_Broken<T>>(){});
}
@Test(groups="resolution",
expectedExceptions=DuplicateBindingTypeException.class)
- @SpecAssertion(section="5.9")
+ @SpecAssertion(section="5.9", id = "unknown")
public void testDuplicateBindingTypesUsed()
{
manager.resolveByType(Tuna.class, new CurrentBinding(), new CurrentBinding());
}
@Test(groups="resolution",
expectedExceptions=IllegalArgumentException.class)
- @SpecAssertion(section="5.9")
+ @SpecAssertion(section="5.9", id = "unknown")
public void testNonBindingTypeUsed()
{
manager.resolveByType(Tuna.class, new AnotherDeploymentTypeLiteral());
}
@Test(groups="resolution")
- @SpecAssertion(section={"5.9"})
+ @SpecAssertion(section="5.9", id = "unknown")
public void testResolveByType() throws Exception
{
Bean<Tuna> tunaBean = createSimpleBean(Tuna.class);
@@ -98,7 +99,10 @@
}
@Test(groups="injection")
- @SpecAssertion(section={"2.3.5","5.9.2"})
+ @SpecAssertions({
+ @SpecAssertion(section = "2.3.5", id = "unknown"),
+ @SpecAssertion(section = "5.9.2", id = "unknown")
+ })
public void testAllBindingTypesSpecifiedForResolutionMustAppearOnWebBean()
{
Bean<Cod> codBean = createSimpleBean(Cod.class);
@@ -132,7 +136,7 @@
}
@Test(groups="resolution")
- @SpecAssertion(section="5.9")
+ @SpecAssertion(section="5.9", id = "unknown")
public void testResolveByTypeWithTypeParameter() throws Exception
{
Bean<ScottishFishFarmer> scottishFishFarmerBean =
createSimpleBean(ScottishFishFarmer.class);
@@ -146,7 +150,7 @@
}
@Test(groups={"resolution", "producerMethod"})
- @SpecAssertion(section="5.9")
+ @SpecAssertion(section="5.9", id = "unknown")
public void testResolveByTypeWithArray() throws Exception
{
Bean<SpiderProducer> spiderProducerBean =
createSimpleBean(SpiderProducer.class);
@@ -161,7 +165,7 @@
assert manager.resolveByType(Spider[].class).size() == 1;
}
- @Test @SpecAssertion(section="5.9")
+ @Test @SpecAssertion(section="5.9", id = "unknown")
public void testOnlyHighestEnabledPrecedenceWebBeansResolved() throws Exception
{
Bean<Cod> codBean = createSimpleBean(Cod.class);
@@ -179,7 +183,8 @@
}
- @Test(groups="resolution") @SpecAssertion(section="5.9")
+ @Test(groups="resolution")
+ @SpecAssertion(section="5.9", id = "unknown")
public void testNoWebBeansFound() throws Exception
{
Bean<Salmon> salmonBean = createSimpleBean(Salmon.class);
@@ -192,7 +197,8 @@
assert manager.resolveByType(Tuna.class, new CurrentBinding()).size() == 0;
}
- @Test(groups="resolution") @SpecAssertion(section="5.9.1")
+ @Test(groups="resolution")
+ @SpecAssertion(section="5.9.1", id = "unknown")
public void testResolveByTypeWithNonBindingMembers() throws Exception
{
Bean<Halibut> halibutBean = createSimpleBean(Halibut.class);
@@ -222,7 +228,7 @@
}
@Test(groups="resolution", expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="5.9.1")
+ @SpecAssertion(section="5.9.1", id = "unknown")
public void testArrayValuedAnnotationMemberWithoutNonBinding()
{
manager.resolveByType(Animal.class, new
BindingTypeWithBindingArrayTypeMemberLiteral_Broken() {
@@ -236,7 +242,7 @@
}
@Test(groups="resolution", expectedExceptions=DefinitionException.class)
- @SpecAssertion(section="5.9.1")
+ @SpecAssertion(section="5.9.1", id = "unknown")
public void testAnnotationValuedAnnotationMemberWithoutNonBinding()
{
manager.resolveByType(Animal.class, new
BindingTypeWithBindingAnnotationMemberLiteral_Broken()