com.github.tonivade.zeromock.junit4.IOMockHttpServerRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zeromock-junit4 Show documentation
Show all versions of zeromock-junit4 Show documentation
Mock Http Server (mostly) without dependencies
/*
* Copyright (c) 2018-2020, Antonio Gabriel Muñoz Conejo
* Distributed under the terms of the MIT License
*/
package com.github.tonivade.zeromock.junit4;
import com.github.tonivade.purefun.monad.IO_;
import static com.github.tonivade.zeromock.server.IOMockHttpServer.sync;
public class IOMockHttpServerRule extends AbstractMockServerRule {
public IOMockHttpServerRule() {
this(0);
}
public IOMockHttpServerRule(int port) {
super(sync().port(port).build());
}
}