skuzzle / spring-boot-wiremock Goto Github PK
View Code? Open in Web Editor NEWEasily setup WireMock in your Spring-Boot tests
License: MIT License
Easily setup WireMock in your Spring-Boot tests
License: MIT License
It wasn't required when we were still initializing the stuff with the ContextInitializer
. Now that we use the TestExecutionListener
context caching gets us in the way, possiblx because we are manually registering the WireMockServer
bean.
This could possibky be worked around by properly registering the server using @Bean
in a configuration class. However, we need to find out how to pass the instance from our TestExecutionListener
into the @Configuration
class
All API that is currently marked experimental shall be marked as maintained as of release 1.0.0
Let's try ApiGuard to properly distinguish between maintained,experimental and internal API
All API that is deprecated since pre-release should be removed
The problem is this:
final Resource resource = resourceLoader.getResource(location);
try {
return resource.getFile().toString();
} catch (final IOException e) {
throw new IllegalArgumentException("Error resolving location for property " + key, e);
}
getFile()
will throw an exception when loading from jar
ALso hard to detect in local tests because these file are always available from filesystem in src/main/resources
Currently we use Wiremock's default resource locating. We should use spring resoruce loading instead because most users will be more familiar with it. Also it should be consistent with respect to keystore/truststore location resolving
For example, properties seem to be injected too late so that they are not processed for ConfigurationProperties
bindings (This is a no-go).
Instead of @WithWiremock(port = 0, httpsPort = 0)
we should support @WithWiremock(randomHttpPort = true, randomHttpsPort=true)
instead. The existing attributes should hence be renamed to fixedHttp(s)Port
. Setting randomXXXPort=true
must be mutual exclusive with specifying fixedXXXPort>=0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.