Tuesday, 6 July 2021

Introduction to MockWebServer

MockWebServer is an application that mocks the behaviour of an actual remote server but doesn't make calls over the internet.

 

Dependencies used

<dependencies>
	<dependency>
		<groupId>org.junit.jupiter</groupId>
		<artifactId>junit-jupiter-engine</artifactId>
		<version>${junit-jupiter.version}</version>
		<scope>test</scope>
	</dependency>

	<dependency>
		<groupId>com.squareup.okhttp3</groupId>
		<artifactId>mockwebserver</artifactId>
		<version>${mockwebserver.version}</version>
		<scope>test</scope>
	</dependency>

	<dependency>
		<groupId>org.apache.httpcomponents</groupId>
		<artifactId>httpclient</artifactId>
		<version>${httpcomponents.version}</version>
	</dependency>
</dependencies>

 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment