1 package org.paneris.jammyjoes; 2 3 import net.sourceforge.jwebunit.WebTestCase; 4 5 public class TestCaseFunctionalLandingPage extends WebTestCase { 6 7 public void setUp() { 8 getTestContext().setBaseUrl("http://localhost"); 9 } 10 11 public void testNoahsArc() throws Exception { 12 beginAt("/jammyjoes/Toy/4408/Next.html"); 13 assertTextPresent("JJ Id"); 14 } 15 16 public void testToyLandingPage() throws Exception { 17 beginAt("/jammyjoes/Toy/1559.html"); 18 assertTextPresent("Childrens Bedroom Furniture"); 19 assertTextPresent("\nlocation.href"); 20 } 21 22 }