click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r930825 - /click/trunk/click/extras/test/org/apache/click/extras/control/TabbedFormTest.java
Date Mon, 05 Apr 2010 08:11:38 GMT
Author: sabob
Date: Mon Apr  5 08:11:38 2010
New Revision: 930825

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

Modified:
    click/trunk/click/extras/test/org/apache/click/extras/control/TabbedFormTest.java

Modified: click/trunk/click/extras/test/org/apache/click/extras/control/TabbedFormTest.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/test/org/apache/click/extras/control/TabbedFormTest.java?rev=930825&r1=930824&r2=930825&view=diff
==============================================================================
--- click/trunk/click/extras/test/org/apache/click/extras/control/TabbedFormTest.java (original)
+++ click/trunk/click/extras/test/org/apache/click/extras/control/TabbedFormTest.java Mon
Apr  5 08:11:38 2010
@@ -24,21 +24,22 @@ import org.apache.click.MockContext;
 
 public class TabbedFormTest extends TestCase {
 
-    public void testGetHtmlImport() {
+    public void testGetHeadElements() {
         MockContainer container = new MockContainer("web");
         container.start();
 
         // MockContext is created when a container tests a page. There
         // are no pages to test here so we manually create a MockContext,
         // but reuse the Mock Servlet objects created in the container.
-        MockContext.initContext(container.getServletConfig(), container.getRequest(), container.getResponse(),
container.getClickServlet());
+        MockContext.initContext(container.getServletConfig(),
+            container.getRequest(), container.getResponse(), container.getClickServlet());
 
         TabbedForm form = new TabbedForm("form");
 
         assertTrue(form.toString().indexOf("<form") > 0);
-        assertTrue(form.getHtmlImports().indexOf("/control.js") > 0);
-        assertTrue(form.getHtmlImports().indexOf("/control.css") > 0);
-        assertTrue(form.getHtmlImports().indexOf("/extras-control.css") > 0);
+        assertTrue(form.getHeadElements().toString().indexOf("/control.js") > 0);
+        assertTrue(form.getHeadElements().toString().indexOf("/control.css") > 0);
+        assertTrue(form.getHeadElements().toString().indexOf("/extras-control.css") >
0);
         
         container.stop();
     }



Mime
View raw message