[Yanel-commits] rev 20475 - in
public/yanel/trunk/src/contributions/resources/wiki/src: .
test test/htmlunit test/htmlunit/org test/htmlunit/org/wyona
test/htmlunit/org/wyona/yanel test/htmlunit/org/wyona/yanel/impl
test/htmlunit/org/wyona/yanel/impl/resources
simon at wyona.com
simon at wyona.com
Thu Nov 30 12:42:17 CET 2006
Author: simon
Date: 2006-11-30 12:42:15 +0100 (Thu, 30 Nov 2006)
New Revision: 20475
Added:
public/yanel/trunk/src/contributions/resources/wiki/src/test/
public/yanel/trunk/src/contributions/resources/wiki/src/test/htmlunit/
public/yanel/trunk/src/contributions/resources/wiki/src/test/htmlunit/org/
public/yanel/trunk/src/contributions/resources/wiki/src/test/htmlunit/org/wyona/
public/yanel/trunk/src/contributions/resources/wiki/src/test/htmlunit/org/wyona/yanel/
public/yanel/trunk/src/contributions/resources/wiki/src/test/htmlunit/org/wyona/yanel/impl/
public/yanel/trunk/src/contributions/resources/wiki/src/test/htmlunit/org/wyona/yanel/impl/resources/
public/yanel/trunk/src/contributions/resources/wiki/src/test/htmlunit/org/wyona/yanel/impl/resources/WikiResourceWebTest.java
Log:
added simple webtest to the wiki resource
Added: public/yanel/trunk/src/contributions/resources/wiki/src/test/htmlunit/org/wyona/yanel/impl/resources/WikiResourceWebTest.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/wiki/src/test/htmlunit/org/wyona/yanel/impl/resources/WikiResourceWebTest.java 2006-11-30 11:11:43 UTC (rev 20474)
+++ public/yanel/trunk/src/contributions/resources/wiki/src/test/htmlunit/org/wyona/yanel/impl/resources/WikiResourceWebTest.java 2006-11-30 11:42:15 UTC (rev 20475)
@@ -0,0 +1,40 @@
+/*
+ * 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.impl.resources;
+
+import org.wyona.yanel.htmlunit.AbstractHtmlUnitTest;
+
+/**
+ * Test loading a page which is an xml resource and verifies the title and
+ * page content.
+ */
+public class WikiResourceWebTest extends AbstractHtmlUnitTest {
+
+ protected void setUp() throws Exception {
+ this.testName = "Wiki Resource Web Test";
+ super.setUp();
+ }
+
+ /**
+ * Loads a page and verifies its title.
+ */
+ public void testXMLResource() throws Exception {
+ loadHtmlPage("yanel-website/wiki/hello-world.html");
+ assertTitleEquals("A Wiki page");
+ assertPageContainsText("Wiki Test Page");
+ }
+
+}
More information about the Yanel-commits
mailing list