Class InMemoryStubMappingStore
- java.lang.Object
-
- com.github.tomakehurst.wiremock.store.InMemoryStubMappingStore
-
- All Implemented Interfaces:
StubMappingStore
public class InMemoryStubMappingStore extends java.lang.Object implements StubMappingStore
-
-
Constructor Summary
Constructors Constructor Description InMemoryStubMappingStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(StubMapping stubMapping)
void
clear()
java.util.Optional<StubMapping>
get(java.util.UUID id)
java.util.stream.Stream<StubMapping>
getAll()
void
remove(StubMapping stubMapping)
void
replace(StubMapping existing, StubMapping updated)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.tomakehurst.wiremock.store.StubMappingStore
findAllMatchingRequest
-
-
-
-
Method Detail
-
get
public java.util.Optional<StubMapping> get(java.util.UUID id)
- Specified by:
get
in interfaceStubMappingStore
-
remove
public void remove(StubMapping stubMapping)
- Specified by:
remove
in interfaceStubMappingStore
-
clear
public void clear()
- Specified by:
clear
in interfaceStubMappingStore
-
getAll
public java.util.stream.Stream<StubMapping> getAll()
- Specified by:
getAll
in interfaceStubMappingStore
-
add
public void add(StubMapping stubMapping)
- Specified by:
add
in interfaceStubMappingStore
-
replace
public void replace(StubMapping existing, StubMapping updated)
- Specified by:
replace
in interfaceStubMappingStore
-
-