Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright (C) 2009-2015 Typesafe Inc. <http://www.typesafe.com>
  */
 package play.test;
 
 import scala.Option;

A test Netty web server.
public class TestServer extends play.api.test.TestServer {

    
A test Netty web server.

Parameters:
port HTTP port to bind on.
application The Application to load in this server.
    public TestServer(int portApplication application) {
        super(portapplication.getWrappedApplication(), play.libs.Scala.<Object>None(), play.libs.Scala.<ServerProvider>None());
    }

    
A test Netty web server with HTTPS support

Parameters:
port HTTP port to bind on
application The Application to load in this server
sslPort HTTPS port to bind on
    public TestServer(int portApplication applicationint sslPort) {
        super(portapplication.getWrappedApplication(), Option.<Object>apply(sslPort), play.libs.Scala.<ServerProvider>None());
    }
New to GrepCode? Check out our FAQ X