KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > cruisecontrol > webtest > RssFeedJSPWebTest


1 package net.sourceforge.cruisecontrol.webtest;
2
3 import net.sourceforge.jwebunit.WebTestCase;
4 import net.sourceforge.cruisecontrol.Configuration;
5
6 public class RssFeedJSPWebTest extends WebTestCase {
7     protected void setUp() throws Exception JavaDoc {
8         super.setUp();
9
10         getTestContext().setBaseUrl("http://localhost:7854");
11     }
12
13     public void testNavigatingToProjectRssFeed() {
14         beginAt("/");
15         clickLinkWithText("connectfour");
16         clickLinkWithImage("rss.png");
17         assertTextPresent("<title>CruiseControl Results - connectfour</title>");
18     }
19
20     public void testNavigatingToOveralltRssFeed() {
21         beginAt("/");
22         clickLinkWithImage("rss.png");
23         assertTextPresent("<title>CruiseControl Results</title>");
24     }
25 }
26
Popular Tags