[webbeans-commits] Webbeans SVN: r1565 - in tck/trunk/impl/src/main: resources and 1 other directory.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Wed Feb 18 03:18:43 EST 2009
Author: shane.bryzak at jboss.com
Date: 2009-02-18 03:18:43 -0500 (Wed, 18 Feb 2009)
New Revision: 1565
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/context/conversation/ConversationContextTest.java
tck/trunk/impl/src/main/resources/tck-audit.xml
Log:
mapped conversation context tests to assertions
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/context/conversation/ConversationContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/context/conversation/ConversationContextTest.java 2009-02-18 07:46:33 UTC (rev 1564)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/integration/context/conversation/ConversationContextTest.java 2009-02-18 08:18:43 UTC (rev 1565)
@@ -12,217 +12,134 @@
*/
public class ConversationContextTest extends AbstractDeclarativeTest
{
- /**
- * For a JSF faces request, the context is active from the beginning of the
- * apply request values phase, until the response is complete.
- */
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4", id = "unknown")
+ @SpecAssertion(section = "8.5.4", id = "a")
public void testContextActiveFromBeginningOfApplyRequestValuesPhasetoResponseCompleteForJsfRequest()
{
assert false;
}
- /**
- * For a JSF non-faces request, the context is active during the render
- * response phase
- */
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4", id = "unknown")
+ @SpecAssertion(section = "8.5.4", id = "b")
public void testContextActiveDuringRenderResponsePhaseForNonFacesJsfRequest()
{
assert false;
}
- /**
- * Any JSF request has exactly one associated conversation
- */
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4", id = "unknown")
+ @SpecAssertion(section = "8.5.4", id = "c")
public void testJsfRequestHasExactlyOneAssociatedConversation()
{
assert false;
}
- /**
- * The conversation associated with a JSF request is determined at the end of
- * the restore view phase and does not change during the request
- */
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4", id = "unknown")
+ @SpecAssertion(section = "8.5.4", id = "d")
public void testAssociatedConversationOfJsfRequestIsDeterminedAtEndOfRestoreViewPhase()
{
assert false;
}
- /**
- * The conversation associated with a JSF request is determined at the end of
- * the restore view phase and does not change during the request
- */
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4", id = "unknown")
+ @SpecAssertion(section = "8.5.4", id = "d")
public void testAssociatedConversationOfJsfRequestDoesNotChangeDuringRequest()
{
assert false;
}
- /**
- * By default, a conversation is transient
- */
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4", id = "unknown")
+ @SpecAssertion(section = "8.5.4", id = "e")
public void testDefaultConversationIsTransient()
{
assert false;
}
- /**
- * All long-running conversations have a string-valued unique identifier
- */
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4", id = "unknown")
+ @SpecAssertion(section = "8.5.4", id = "h")
public void testConversationsHaveUniqueStringIdentifiers()
{
assert false;
}
- /**
- * If the conversation associated with the current JSF request is in the
- * transient state at the end of a JSF request, it is destroyed, and the
- * conversation context is also destroyed.
- */
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4", id = "unknown")
+ @SpecAssertion(section = "8.5.4", id = "j")
public void testTransientConversationIsDestroyedAtEndOfJsfRequest()
{
assert false;
}
- /**
- * If the conversation associated with the current JSF request is in the
- * transient state at the end of a JSF request, it is destroyed, and the
- * conversation context is also destroyed.
- */
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4", id = "unknown")
+ @SpecAssertion(section = "8.5.4", id = "j")
public void testTransientConversationContextIsDestroyedAtEndOfJsfRequest()
{
assert false;
}
- /**
- * If the conversation associated with the current JSF request is in the
- * long-running state at the end of a JSF request, it is not destroyed
- */
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4", id = "unknown")
+ @SpecAssertion(section = "8.5.4", id = "k")
public void testLongRunningConversationNotDestroyedAtEndOfJsfRequest()
{
assert false;
}
- /**
- * The long-running conversation context associated with a request that
- * renders a JSF view is automatically propagated to any faces request (JSF
- * form submission) that originates from that rendered page.
- */
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4", id = "unknown")
+ @SpecAssertion(section = "8.5.4", id = "l")
public void testLongRunningConversationOfJsfRenderingRequestIsPropagatedToRequestFromRenderedPage()
{
assert false;
}
- /**
- * The long-running conversation context associated with a request that
- * results in a JSF redirect (via a navigation rule) is automatically
- * propagated to the resulting non-faces request, and to any other subsequent
- * request to the same URL. This is accomplished via use of a GET request
- * parameter named cid containing the unique identifier of the conversation.
- */
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4", id = "unknown")
+ @SpecAssertion(section = "8.5.4", id = "m")
public void testLongRunningConversationOfJsfRedirectIsPropagatedToNonFacesRequest()
{
assert false;
}
- /**
- * The long-running conversation associated with a request may be propagated
- * to any non-faces request via use of a GET request parameter named cid
- * containing the unique identifier of the conversation. In this case, the
- * application must manage this request parameter
- */
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4", id = "unknown")
+ @SpecAssertion(section = "8.5.4", id = "n")
public void testLongRunningConversationManuallyPropagatedToNonFacesRequest()
{
assert false;
}
- /**
- * When no conversation is propagated to a JSF request, the request is
- * associated with a new transient conversation.
- */
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4", id = "unknown")
+ @SpecAssertion(section = "8.5.4", id = "o")
public void testNewTransientRequestIsCreatedWhenNoConversationIsPropagated()
{
assert false;
}
- /**
- * All long-running conversations are scoped to a particular HTTP servlet
- * session and may not cross session boundaries
- */
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4", id = "unknown")
+ @SpecAssertion(section = "8.5.4", id = "p")
public void testLongRunningConversationsMayNotCrossHttpSessions()
{
assert false;
}
- /**
- * When the HTTP servlet session is invalidated, all long-running
- * conversation contexts created during the current session are destroyed
- */
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4", id = "unknown")
+ @SpecAssertion(section = "8.5.4", id = "q")
public void testAllLongRunningConversationContextsOfInvalidatedHttpSessionAreDestroyed()
{
assert false;
}
- /**
- * The Web Bean manager is permitted to arbitrarily destroy any long-running
- * conversation that is associated with no current JSF request, in order to
- * conserve resources
- */
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4", id = "unknown")
+ @SpecAssertion(section = "8.5.4", id = "r")
public void testManagerCanDestroyOrphanedLongRunningConversations()
{
assert false;
}
- /**
- * If the propagated conversation cannot be restored, the request is
- * associated with a new transient conversation
- */
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4", id = "unknown")
+ @SpecAssertion(section = "8.5.4", id = "s")
public void testNewTransientConversationIsCreatedWhenConversationCannotBeRestored()
{
assert false;
}
- /**
- * The Web Bean manager ensures that a long-running conversation may be
- * associated with at most one request at a time, by blocking or rejecting
- * concurrent requests.
- */
@Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "8.5.4", id = "unknown")
+ @SpecAssertion(section = "8.5.4", id = "u")
public void testConcurrentRequestsToLongRunningConversationsAreHandled()
{
assert false;
Modified: tck/trunk/impl/src/main/resources/tck-audit.xml
===================================================================
--- tck/trunk/impl/src/main/resources/tck-audit.xml 2009-02-18 07:46:33 UTC (rev 1564)
+++ tck/trunk/impl/src/main/resources/tck-audit.xml 2009-02-18 08:18:43 UTC (rev 1565)
@@ -3023,7 +3023,7 @@
</assertion>
<assertion id="m">
- <text>The long-running conversation context associated with a request that renders a JSF view is automatically propagated to any faces request (JSF form submission) that originates from that rendered page</text>
+ <text>The long-running conversation context associated with a request that results in a JSF redirect (via a navigation rule) is automatically propagated to the resulting non-faces request, and to any other subsequent request to the same URL. This is accomplished via use of a GET request parameter named cid containing the unique identifier of the conversation</text>
</assertion>
<assertion id="n">
More information about the weld-commits
mailing list