com.github.tonivade.zeromock.junit4.AsyncMockHttpServerRule 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
The newest version!
/*
* Copyright (c) 2018-2024, Antonio Gabriel Muñoz Conejo
* Distributed under the terms of the MIT License
*/
package com.github.tonivade.zeromock.junit4;
import static com.github.tonivade.zeromock.server.AsyncMockHttpServer.builder;
import com.github.tonivade.purefun.concurrent.Future;
import com.github.tonivade.purefun.typeclasses.Instances;
public class AsyncMockHttpServerRule extends AbstractMockServerRule> {
public AsyncMockHttpServerRule() {
this(0);
}
public AsyncMockHttpServerRule(int port) {
super(Instances.monad(), builder().port(port).buildK());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy