click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r962590 - /click/trunk/click/mock/test/org/apache/click/MockContextTest.java
Date Fri, 09 Jul 2010 16:09:23 GMT
Author: sabob
Date: Fri Jul  9 16:09:23 2010
New Revision: 962590

URL: http://svn.apache.org/viewvc?rev=962590&view=rev
Log:
fix tests

Modified:
    click/trunk/click/mock/test/org/apache/click/MockContextTest.java

Modified: click/trunk/click/mock/test/org/apache/click/MockContextTest.java
URL: http://svn.apache.org/viewvc/click/trunk/click/mock/test/org/apache/click/MockContextTest.java?rev=962590&r1=962589&r2=962590&view=diff
==============================================================================
--- click/trunk/click/mock/test/org/apache/click/MockContextTest.java (original)
+++ click/trunk/click/mock/test/org/apache/click/MockContextTest.java Fri Jul  9 16:09:23
2010
@@ -356,8 +356,8 @@ public class MockContextTest extends Tes
         CallbackDispatcher callbackDispatcher = CallbackDispatcher.getThreadLocalDispatcher();
 
         // Assert that the submit control is registered as a callback
-        assertEquals(1, callbackDispatcher.getBehaviorEnabledControls().size());
-        assertSame(submit, callbackDispatcher.getBehaviorEnabledControls().iterator().next());
+        assertEquals(1, callbackDispatcher.getAjaxTargetControls().size());
+        assertSame(submit, callbackDispatcher.getAjaxTargetControls().iterator().next());
 
         // Process the preResponse callback event
         context.executePreResponseCallbackEvent();
@@ -372,12 +372,12 @@ public class MockContextTest extends Tes
         assertTrue("preDestroy callback event was not processed", preDestroyCalled);
 
         // Assert that the callback was not removed after all events was processed
-        assertEquals(1, callbackDispatcher.getBehaviorEnabledControls().size());
+        assertEquals(1, callbackDispatcher.getAjaxTargetControls().size());
 
         // Test that reset will clear the callback dispatcher
         context.reset();
 
         // Assert that the callback was removed after reset
-        assertEquals(0, callbackDispatcher.getBehaviorEnabledControls().size());
+        assertEquals(0, callbackDispatcher.getAjaxTargetControls().size());
     }
 }



Mime
View raw message