Package com.codahale.shore

Examples of com.codahale.shore.ServerCommand


    }

    private void assertCorrectServerCommand(final Runnable runnable) {
      assertThat(runnable, is(ServerCommand.class));

      final ServerCommand cmd = (ServerCommand) runnable;
      assertThat(cmd.getConfiguration(), is(sameInstance(config)));
      assertThat(cmd.getPort(), is(8080));
      assertThat(cmd.getGracefulShutdown(), is(true));
      assertThat(cmd.getProperties().getProperty(Environment.URL), is("jdbc:hsqldb:mem:ShoreTest"));
    }
View Full Code Here


    public void setup() throws Exception {
      this.config = mock(AbstractConfiguration.class);
      this.properties = new Properties();
     
     
      this.cmd = new ServerCommand(config, "localhost", 8080, false, properties);
    }
View Full Code Here

TOP

Related Classes of com.codahale.shore.ServerCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.