komock alternatives and similar libraries
Based on the "Web" category.
Alternatively, view komock alternatives based on common mentions on social networks and blogs.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of komock or a related project?
Here is HTTP/Consul/SpringConfig mocker framework written in Kotlin.
This tiny framework is very useful if you need to create REST based client for API service.
We use this framework for develop microservices or API integration with third party systems.
- Configurable response for any kind of HTTP request/response with wildcards, cookies and custom headers.
- SSL support
- Virtual Host support
- Consul discovery service support.
- Ability to work like a simple Spring Configuration Server
- Header based security
- Variables in the response by request parameters
- Callback support
Binaries are available at https://github.com/laviua/komock/releases/latest
Maven Central repository
<dependency> <groupId>ua.com.lavi</groupId> <artifactId>komock-core</artifactId> <version>RELEASE</version> </dependency>
How to use
Run standalone application:
Extract release version from https://github.com/laviua/komock/releases/latest :
Simple http server https://github.com/laviua/komock/wiki/Simple-http-server-(Java)
Oauth2 server https://github.com/laviua/komock/wiki/Oauth2-server
Consul service registration https://github.com/laviua/komock/wiki/Consul
Spring config server https://github.com/laviua/komock/wiki/Spring-config-server
Full config Callbacks, Mask patterns, cookies, virtualhosts, etc Look at self-describable configuration file Link:
HTTPS / SSL:
You can use your personal keystore. Just create it by the following command and set filename with password in the configuration file (secure section):
keytool -genkey -alias replserver -keyalg RSA -keystore mock_keystore.jks -dname "CN=Mark Smith, OU=JavaSoft, O=Sun, L=Cupertino, S=California, C=US" -storepass mockpassword -keypass mockpassword ssl: enabled: true keyStoreLocation: mock_keystore.jks keyStorePassword: mockpassword
Licensed under Apache 2 License
*Note that all licence references and agreements mentioned in the komock README section above are relevant to that project's source code only.