myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r513316 - /myfaces/fusion/trunk/core15/src/test/java/org/apache/myfaces/fusion/conversation/TestConversationPersistence.java
Date Thu, 01 Mar 2007 13:47:23 GMT
Author: imario
Date: Thu Mar  1 05:47:21 2007
New Revision: 513316

URL: http://svn.apache.org/viewvc?view=rev&rev=513316
Log:
added testcase for conversation with persistence

Modified:
    myfaces/fusion/trunk/core15/src/test/java/org/apache/myfaces/fusion/conversation/TestConversationPersistence.java

Modified: myfaces/fusion/trunk/core15/src/test/java/org/apache/myfaces/fusion/conversation/TestConversationPersistence.java
URL: http://svn.apache.org/viewvc/myfaces/fusion/trunk/core15/src/test/java/org/apache/myfaces/fusion/conversation/TestConversationPersistence.java?view=diff&rev=513316&r1=513315&r2=513316
==============================================================================
--- myfaces/fusion/trunk/core15/src/test/java/org/apache/myfaces/fusion/conversation/TestConversationPersistence.java
(original)
+++ myfaces/fusion/trunk/core15/src/test/java/org/apache/myfaces/fusion/conversation/TestConversationPersistence.java
Thu Mar  1 05:47:21 2007
@@ -62,20 +62,6 @@
 		UserData user3 = conv.readUser(user.getId());
 
 		assertNotSame("should not be the same user", user ,user3);
-
-		/* end all conversations*/
-		ConversationManager.getInstance().clearCurrentConversationContext();
-
-		conv.updateUser(user.getId(), "test2");
-
-		/* invalidate conversation */
-		conv.invalidate();
-
-		UserData user4 = conv.readUser(user.getId());
-
-		assertNotNull(user4);
-		assertEquals(user.getId(), user4.getId());
-		assertEquals("test", user4.getUsername());
 	}
 
 	public void testRestartConversation()
@@ -94,5 +80,19 @@
 		assertNotNull("should have got a user", restartedUser);
 		assertNotSame("should not be the same user", user, restartedUser);
 		assertEquals("has to be the same user id", user.getId(), restartedUser.getId());
+
+		/* end all conversations*/
+		ConversationManager.getInstance().clearCurrentConversationContext();
+
+		conv.updateUser(user.getId(), "test2");
+
+		/* invalidate conversation */
+		conv.invalidate();
+
+		UserData user4 = conv.readUser(user.getId());
+
+		assertNotNull(user4);
+		assertEquals(user.getId(), user4.getId());
+		assertEquals("test", user4.getUsername());
 	}
 }



Mime
View raw message