Skip to content

Instantly share code, notes, and snippets.

@tomakehurst
tomakehurst / JvmBrowserProxyTest.java
Created July 19, 2021 22:08
WireMock stubbing using browser proxying (like Hoverfly)
package com.github.tomakehurst.wiremock;
import com.github.tomakehurst.wiremock.junit.WireMockRule;
import com.google.common.io.ByteStreams;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import java.net.URL;
package com.github.tomakehurst.wiremock;
import org.junit.Test;
import org.springframework.http.HttpMethod;
import org.springframework.http.RequestEntity;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;
import java.net.URI;
import java.util.List;