[Yanel-commits] rev 43602 - public/yanel/trunk/src/test/htmlunit/org/wyona/yanel/htmlunit/yanelwebsite

michi at wyona.com michi at wyona.com
Fri Jul 10 23:55:14 CEST 2009


Author: michi
Date: 2009-07-10 23:55:13 +0200 (Fri, 10 Jul 2009)
New Revision: 43602

Modified:
   public/yanel/trunk/src/test/htmlunit/org/wyona/yanel/htmlunit/yanelwebsite/GlobalDataWebTest.java
Log:
test fixed

Modified: public/yanel/trunk/src/test/htmlunit/org/wyona/yanel/htmlunit/yanelwebsite/GlobalDataWebTest.java
===================================================================
--- public/yanel/trunk/src/test/htmlunit/org/wyona/yanel/htmlunit/yanelwebsite/GlobalDataWebTest.java	2009-07-10 21:21:45 UTC (rev 43601)
+++ public/yanel/trunk/src/test/htmlunit/org/wyona/yanel/htmlunit/yanelwebsite/GlobalDataWebTest.java	2009-07-10 21:55:13 UTC (rev 43602)
@@ -90,13 +90,19 @@
         //TODO: test 304 handling
     }
 
+    /**
+     * Test globally available htdocs (located within src/webapp/htdocs/ or rather local/apache-tomcat-5.5.20/webapps/yanel/htdocs/)
+     */
     public void testHtdocsPages() throws Exception {
-        loadReservedHtmlPage("help.html"); //XXX: Is this page really used anymore? Most of the links here are broken...
-        /* XXX: should be not null: */ assertNull(response.getResponseHeaderValue("Last-Modified"));
+        loadReservedHtmlPage("help.html");
+        // TODO: should be not null?!
+        assertNull(response.getResponseHeaderValue("Last-Modified"));
         assertTitleContains("Help");
-        //assertTitleContains("Yanel");
-        clickLink("../index.html?yanel.toolbar=on");
 
+        loadReservedErrorPage("../index.html?yanel.toolbar=on", 401);
+        //clickLink("../index.html?yanel.toolbar=on");
+        //assertTitleContains("Login");
+
         loadReservedResource("yanel_toolbar_logo.png");
     }
 



More information about the Yanel-commits mailing list