Class WiremockService
java.lang.Object
edu.ucsb.cs156.example.services.wiremock.WiremockService
- Direct Known Subclasses:
WiremockServiceDummy
,WiremockServiceImpl
This is a service for mocking authentication using wiremock
This class relies on property values. For hints on testing, see: https://www.baeldung.com/spring-boot-testing-configurationproperties
There are two imlementations of the class, depending on the profile in use
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract com.github.tomakehurst.wiremock.WireMockServer
This method returns the wiremockServerabstract void
init()
This method initializes the WireMockServer
-
Constructor Details
-
WiremockService
public WiremockService()
-
-
Method Details
-
getWiremockServer
public abstract com.github.tomakehurst.wiremock.WireMockServer getWiremockServer()This method returns the wiremockServer- Returns:
- the wiremockServer
-
init
public abstract void init()This method initializes the WireMockServer
-