Code Monkey home page Code Monkey logo

imock's Introduction

imock

imock 服务是基于阿里测试中间件jvm-sandbox开发的一款mock服务,感兴趣可以去了解一下,imock 与其他mock 方式不一样, 是Java方法级别的mock,操作就是监听指定方法,返回指定的mock内容

项目介绍

imock 包含mock-module、mock-web ,mock-module就是jvm-sandbox的模块,需要安装到目标应用服务器,mock-web 为mock服务后台,imock是前后端分离,还有一个前端react 项目 imcok-web

Git

使用


# mock.properties 
# 心跳上报配置  当环境变量没有配置的时候使用 该配置

# mock 服务的地址和端口
mock.host=http://127.0.0.1:8003
# 标识目标应用的名称
app.name=test
# 标识目标应用的环境
app.env=test

  • 第六步:启动
    1. 通过jps查看 目标应用的java 进程 比如 1234
    2. 到根目录 ~/sandbox/bin 执行 ./sandbox.sh -p 1234

如果出现以下日志则安装成功

                    NAMESPACE : default
                      VERSION : 1.2.1
                         MODE : ATTACH
                  SERVER_ADDR : 0.0.0.0
                  SERVER_PORT : 58441
               UNSAFE_SUPPORT : ENABLE
                 SANDBOX_HOME : /Users/pro9q/sandbox/bin/..
            SYSTEM_MODULE_LIB : /Users/pro9q/sandbox/bin/../module
              USER_MODULE_LIB : /Users/pro9q/sandbox/sandbox-module;~/.sandbox-module;
          SYSTEM_PROVIDER_LIB : /Users/pro9q/sandbox/bin/../provider
           EVENT_POOL_SUPPORT : DISABLE

image

image

imock's People

Contributors

chufusheng avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.