Home

Awesome

uaiMockServer

Travis Coverage Maven Central

License


Issues Board

I am sure that you could help ;)


uaiMockServer will create a Rest Server for you with only one command line.

This code can create a Standalone jar or you could add the project in your pom.xml and run it with your TDD tests.

The documentation/roadMap/etc can be found in here: https://github.com/uaihebert/uaiMockServer/wiki

The most recent Standalone jar and the Config samples can be found in here: https://github.com/uaihebert/uaiMockServer/tree/master/dist

About the build

About the configuration

You will find a configuration sample in the Github link above. In the project site you will find all the values allowed in a configuration file. The path of the configuration file will change depending on the approach used:

Running with your TDD tests

You need to add the project to your pom:

<dependency>
    <groupId>uaihebert.com</groupId>
    <artifactId>uaiMockServer</artifactId>
    <version>1.2.5</version>
    <scope>test</scope>
</dependency>

All you need now is a class to start/shutdown the server:

@RunWith(UaiMockServerRunner.class)
public class YourTestClass {

    @Test
    public void yourTest(){
        // test executing the http request
    }
}