@Given("^My app is running in '([^:]+?)(:.+?)?'$")
    public void setupApp(String host, String port) {
        assertThat(host).isNotEmpty();

        if (port == null) {
            port = ":80";
        }

        commonspec.setWebHost(host);
        commonspec.setWebPort(port);
        commonspec.setRestHost(host);
        commonspec.setRestPort(port);
    }
@ Given ( "^My app is running in '([^:]+?)(:.+?)?'$" ) public void setupApp ( String host , String port ) { assertThat ( host ) . isNotEmpty ( ) ; if ( port == null ) { port = ":80" ; } commonspec . setWebHost ( host ) ; commonspec . setWebPort ( port ) ; commonspec . setRestHost ( host ) ; commonspec . setRestPort ( port ) ; }
Set app host and port {@code host, @code port}

@param host host where app is running
@param port port where app is running