Package com.github.tomakehurst.wiremock.http

Examples of com.github.tomakehurst.wiremock.http.RequestListener


        public WireMockRule wireMockRule = new WireMockRule(wireMockConfig().port(8089).notifier(new ConsoleNotifier(true)));

        @Test
        public void requestReceivedByListener() {
            final List<String> urls = new ArrayList<String>();
            wireMockRule.addMockServiceRequestListener(new RequestListener() {
                @Override
                public void requestReceived(Request request, Response response) {
                    urls.add(request.getUrl());
                }
            });
View Full Code Here

TOP

Related Classes of com.github.tomakehurst.wiremock.http.RequestListener

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.