You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Pierce Wetter (JIRA)" <ji...@apache.org> on 2010/04/12 17:48:41 UTC

[jira] Created: (TAP5-1103) Add "SeleniumOnlyLauncher" (code provided)

Add "SeleniumOnlyLauncher" (code provided)
------------------------------------------

                 Key: TAP5-1103
                 URL: https://issues.apache.org/jira/browse/TAP5-1103
             Project: Tapestry 5
          Issue Type: Improvement
            Reporter: Pierce Wetter


Include a class in tapestry-test that only launches Selenium, not Jetty or any other server. This lets you run tests where you've launched the application in some other way (various maven plugins, etc. )


/**
 * Override of SeleniumLauncher to skip the webserver launch entirely. 
 *
 * @author  pierce
 */
public class SeleniumOnly extends SeleniumLauncher
{

    
    @Override
    protected Runnable launchWebServer(
            String webAppFolder, String contextPath, int port, int sslPort
    ) throws Exception
    {
        System.out.println(" webserver start");

        return new Runnable()
            {
                @Override
                public void run()
                {
                    System.out.println(" webserver stop");
                }
            };
    }
}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira