Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Open source mock server system-- moco is simple and easy to use

Shulou Source: shulou.com Published: 2022-06-03 05:28:35 10月01日 Update

1. What is Moco

Moco is a simple library / tool for building simulation servers. This open source project based on Java development has received a lot of attention on Github. The brief introduction to the project describes itself as follows: Moco is a simple framework for building stub, mainly for testing and integration. The development of this framework is inspired by Mock frameworks such as Mockito and Playframework.

2. Why develop this framework?

Integration, especially the integration based on HTTP protocol-web service, REST, etc., is widely used in our project development. In the past, we used to deploy a new WAR to an application server such as Jetty or Tomcat. As we all know, the process of developing and deploying a WAR is boring, even on embedded servers. And every time we make a little change, the entire WAR has to be reassembled.

The emergence of Moco is to solve these problems. As long as the development team makes the corresponding configuration according to their own needs, it will be very convenient to get a simulation server. Moreover, due to the flexibility of Moco itself, its use is no longer limited to the initial integration testing, for example, Moco can be used for mobile development to simulate undeveloped services; Moco can also be used for front-end development to simulate a complete Web server, and so on.

In 2013, the Moco framework was nominated as one of the most innovative Java projects on Duke's Choice Awards, and got the attention of Martin Fowler on Twitter. For more information, see "Enterprise system Integration Point testing Strategy" at InfoQ English site.

3. Download address:

Https://github.com/dreamhead/moco

4. Example usage

Http://www.ibm.com/developerworks/cn/web/1405_liugang_mocowebtest/

Tags: Development service server framework project test application system boring enterprise innovation front end team address instance not yet embedded tool get inspiration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Docker macOS NVidia vpn