Package org.doctester.testbrowser

Examples of org.doctester.testbrowser.Response


    }

    @Test
    public void testTestModeIndex() {

        Response response = makeRequest(Request.GET().url(
                testServerUrl().path("/base/middle/app/mode/test")));

        Assert.assertThat(response.payload,
                CoreMatchers.equalTo("test mode works."));
View Full Code Here


    }

    @Test
    public void testTestModeIndex012() {

        Response response = makeRequest(Request.GET().url(
                testServerUrl().path("/0/1/2/mode/test")));

        Assert.assertThat(response.payload,
                CoreMatchers.equalTo("test mode works."));
View Full Code Here

    }

    @Test
    public void testDevModeIndexMissing() {
        // Server runs in Test mode making pure "dev" routes unavailable
        Response response = makeRequest(Request.GET().url(
                testServerUrl().path("/base/middle/app/mode/dev")));

        Assert.assertThat(response.httpStatus,
                CoreMatchers.equalTo(Result.SC_404_NOT_FOUND));
View Full Code Here

    }

    @Test
    public void testDevModeIndexMissing012() {
        // Server runs in Test mode making pure "dev" routes unavailable
        Response response = makeRequest(Request.GET().url(
                testServerUrl().path("/0/1/2/mode/dev")));

        Assert.assertThat(response.httpStatus,
                CoreMatchers.equalTo(Result.SC_404_NOT_FOUND));
View Full Code Here

    }

    @Test
    public void testDevAndTestMode() {
        // Server runs in Test mode. This route is Dev & Test.
        Response response = makeRequest(Request.GET().url(
                testServerUrl().path("/base/middle/app/mode/dev/and/test")));

        Assert.assertThat(response.payload,
                CoreMatchers.equalTo("dev and test works."));
View Full Code Here

    }

    @Test
    public void testDevAndTestMode012() {
        // Server runs in Test mode. This route is Dev & Test.
        Response response = makeRequest(Request.GET().url(
                testServerUrl().path("/0/1/2/mode/dev/and/test")));

        Assert.assertThat(response.payload,
                CoreMatchers.equalTo("dev and test works."));
View Full Code Here

    }

    @Test
    public void testProdMode() {
        // Server runs in Test mode. This route is Prod.
        Response response = makeRequest(Request.GET().url(
                testServerUrl().path("/base/middle/app/mode/prod")));

        Assert.assertThat(response.httpStatus,
                CoreMatchers.equalTo(Result.SC_404_NOT_FOUND));
View Full Code Here

    }

    @Test
    public void testProdMode012() {
        // Server runs in Test mode. This route is Prod.
        Response response = makeRequest(Request.GET().url(
                testServerUrl().path("/0/1/2/mode/prod")));

        Assert.assertThat(response.httpStatus,
                CoreMatchers.equalTo(Result.SC_404_NOT_FOUND));
View Full Code Here

    }

    @Test
    public void testProdAndTestMode() {
        // Server runs in Test mode. This route is Prod & Test.
        Response response = makeRequest(Request.GET().url(
                testServerUrl().path("/base/middle/app/mode/prod/and/test")));

        Assert.assertThat(response.payload,
                CoreMatchers.equalTo("prod and test works."));
View Full Code Here

    }

    @Test
    public void testProdAndTestMode012() {
        // Server runs in Test mode. This route is Prod & Test.
        Response response = makeRequest(Request.GET().url(
                testServerUrl().path("/0/1/2/mode/prod/and/test")));

        Assert.assertThat(response.payload,
                CoreMatchers.equalTo("prod and test works."));
View Full Code Here

TOP

Related Classes of org.doctester.testbrowser.Response

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.