Author: mjakl
Date: Fri Jul  3 20:13:32 2009
New Revision: 791002

URL: http://svn.apache.org/viewvc?rev=791002&view=rev
Log:
Added a test to make sure that published items with the same id get overwritten.

Modified:
    
mina/sandbox/vysper/trunk/src/test/java/org/apache/vysper/xmpp/modules/extension/xep0060_pubsub/disco/PubSubDiscoItemsTestCase.java

Modified: 
mina/sandbox/vysper/trunk/src/test/java/org/apache/vysper/xmpp/modules/extension/xep0060_pubsub/disco/PubSubDiscoItemsTestCase.java
URL: 
http://svn.apache.org/viewvc/mina/sandbox/vysper/trunk/src/test/java/org/apache/vysper/xmpp/modules/extension/xep0060_pubsub/disco/PubSubDiscoItemsTestCase.java?rev=791002&r1=791001&r2=791002&view=diff
==============================================================================
--- 
mina/sandbox/vysper/trunk/src/test/java/org/apache/vysper/xmpp/modules/extension/xep0060_pubsub/disco/PubSubDiscoItemsTestCase.java
 (original)
+++ 
mina/sandbox/vysper/trunk/src/test/java/org/apache/vysper/xmpp/modules/extension/xep0060_pubsub/disco/PubSubDiscoItemsTestCase.java
 Fri Jul  3 20:13:32 2009
@@ -133,7 +133,8 @@
         XMLElement item3 = new 
XMLElement("item3","namespace3",(Attribute[])null, (XMLFragment[])null);
         node.publish(client, relay, "itemid1", item1);
         Thread.sleep(10);
-        node.publish(client, relay, "itemid2", item2);
+        node.publish(client, relay, "itemid2", item1); // publish this one 
with the same id as the next one (overwritten by the next)
+        node.publish(client, relay, "itemid2", item2); // overwrite the prev. 
item (use the same itemid)
         Thread.sleep(10);
         node.publish(client, relay, "itemid3", item3);
         


Reply via email to