[Yanel-commits] rev 21627 - in public/yanel/trunk/src/resources/directory/src: . test test/htmlunit test/htmlunit/org test/htmlunit/org/wyona test/htmlunit/org/wyona/yanel test/htmlunit/org/wyona/yanel/test test/htmlunit/org/wyona/yanel/test/htmlunit test/htmlunit/org/wyona/yanel/test/htmlunit/resources

michi at wyona.com michi at wyona.com
Thu Jan 11 00:30:01 CET 2007


Author: michi
Date: 2007-01-11 00:29:59 +0100 (Thu, 11 Jan 2007)
New Revision: 21627

Added:
   public/yanel/trunk/src/resources/directory/src/test/
   public/yanel/trunk/src/resources/directory/src/test/htmlunit/
   public/yanel/trunk/src/resources/directory/src/test/htmlunit/org/
   public/yanel/trunk/src/resources/directory/src/test/htmlunit/org/wyona/
   public/yanel/trunk/src/resources/directory/src/test/htmlunit/org/wyona/yanel/
   public/yanel/trunk/src/resources/directory/src/test/htmlunit/org/wyona/yanel/test/
   public/yanel/trunk/src/resources/directory/src/test/htmlunit/org/wyona/yanel/test/htmlunit/
   public/yanel/trunk/src/resources/directory/src/test/htmlunit/org/wyona/yanel/test/htmlunit/resources/
   public/yanel/trunk/src/resources/directory/src/test/htmlunit/org/wyona/yanel/test/htmlunit/resources/DirectoryResourceWebTest.java
Log:
Directory Resource Test

Added: public/yanel/trunk/src/resources/directory/src/test/htmlunit/org/wyona/yanel/test/htmlunit/resources/DirectoryResourceWebTest.java
===================================================================
--- public/yanel/trunk/src/resources/directory/src/test/htmlunit/org/wyona/yanel/test/htmlunit/resources/DirectoryResourceWebTest.java	2007-01-10 23:06:17 UTC (rev 21626)
+++ public/yanel/trunk/src/resources/directory/src/test/htmlunit/org/wyona/yanel/test/htmlunit/resources/DirectoryResourceWebTest.java	2007-01-10 23:29:59 UTC (rev 21627)
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2006 Wyona
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.wyona.org/licenses/APACHE-LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.wyona.yanel.test.htmlunit.resources;
+
+import org.wyona.yanel.htmlunit.AbstractHtmlUnitTest;
+
+/**
+ * Test Directory Resource
+ */
+public class DirectoryResourceWebTest extends AbstractHtmlUnitTest {
+
+    /**
+     * Setup of test
+     */
+    protected void setUp() throws Exception {
+        this.testName = "Directory Resource Web Test";
+        super.setUp();
+    }
+
+    /**
+     * Load an XHTML page and verifies its title and content.
+     */
+    public void testXHTMLViewOfDirectoryResource() throws Exception {
+        loadHtmlPage("yanel-website/hello/");
+        assertTitleEquals("Collection: /yanel-website/hello/");
+        assertPageContainsText("/hello/odt-sample.xhtml");
+    }
+}




More information about the Yanel-commits mailing list