Update of /cvsroot/jwebunit/jWebUnit/test/net/sourceforge/jwebunit
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24476/test/net/sourceforge/jwebunit

Added Files:
        HelloWorldTest.java 
Log Message:
Added Jetty support for replacing pseudo server.

--- NEW FILE: HelloWorldTest.java ---
/*
 * Created on Jul 12, 2004
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package net.sourceforge.jwebunit;

import junit.framework.Test;
import junit.framework.TestSuite;
import net.sourceforge.jwebunit.util.JettySetup;

/**
 * Sanity check for the Jetty setup.
 * 
 * @author Martijn Dashorst
 */
public class HelloWorldTest extends WebTestCase {
    public HelloWorldTest(String name) {
        super(name);
    }

    public void setUp() {
        getTestContext().setBaseUrl("http://localhost:8081/jwebunit";);
        beginAt("/helloworld.html");
    }

    public void testTitle() {
        assertTitleEquals("Hello, World!");
    }

    public static Test suite() {
        return new JettySetup(new TestSuite(HelloWorldTest.class));
    }
}


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Jwebunit-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to