click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r1027858 - /click/trunk/click/framework/test/org/apache/click/ControlRegistryTest.java
Date Wed, 27 Oct 2010 08:52:15 GMT
Author: sabob
Date: Wed Oct 27 08:52:15 2010
New Revision: 1027858

URL: http://svn.apache.org/viewvc?rev=1027858&view=rev
Log:
Moved Ajax functionality into AjaxBehavior

Modified:
    click/trunk/click/framework/test/org/apache/click/ControlRegistryTest.java

Modified: click/trunk/click/framework/test/org/apache/click/ControlRegistryTest.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/test/org/apache/click/ControlRegistryTest.java?rev=1027858&r1=1027857&r2=1027858&view=diff
==============================================================================
--- click/trunk/click/framework/test/org/apache/click/ControlRegistryTest.java (original)
+++ click/trunk/click/framework/test/org/apache/click/ControlRegistryTest.java Wed Oct 27
08:52:15 2010
@@ -19,7 +19,7 @@
 package org.apache.click;
 
 import junit.framework.TestCase;
-import org.apache.click.ajax.AjaxBehavior;
+import org.apache.click.ajax.DefaultAjaxBehavior;
 import org.apache.click.control.TextField;
 
 /**
@@ -37,7 +37,7 @@ public class ControlRegistryTest extends
 
         TextField field = new TextField("field");
         assertFalse(registry.hasAjaxTargetControls());
-        field.addBehavior(new AjaxBehavior());
+        field.addBehavior(new DefaultAjaxBehavior());
         assertTrue(registry.hasAjaxTargetControls());
     }
 
@@ -53,12 +53,12 @@ public class ControlRegistryTest extends
 
         // Test that adding behavior registers control as ajax target
         assertFalse(registry.hasAjaxTargetControls());
-        field.addBehavior(new AjaxBehavior());
+        field.addBehavior(new DefaultAjaxBehavior());
         assertTrue(registry.hasAjaxTargetControls());
         assertEquals(1, registry.getAjaxTargetControls().size());
 
         // Test that adding another behavior does not register the control twice
-        field.addBehavior(new AjaxBehavior());
+        field.addBehavior(new DefaultAjaxBehavior());
         assertEquals(1, registry.getAjaxTargetControls().size());
 
         // Test that invoking onInit does not register the control twice
@@ -76,7 +76,7 @@ public class ControlRegistryTest extends
 
         TextField field = new TextField("field");
 
-        Behavior interceptor = new AjaxBehavior();
+        Behavior interceptor = new DefaultAjaxBehavior();
 
         // Check interceptor is registered with registry
         assertFalse(registry.hasInterceptors());
@@ -96,7 +96,7 @@ public class ControlRegistryTest extends
 
         TextField field = new TextField("field");
 
-        Behavior interceptor = new AjaxBehavior();
+        Behavior interceptor = new DefaultAjaxBehavior();
 
         // Check interceptor is registered with registry
         assertFalse(registry.hasInterceptors());



Mime
View raw message