All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.tonivade.zeromock.junit4.URIOMockHttpServerRule Maven / Gradle / Ivy

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.purefun.core.Producer.cons;
import static com.github.tonivade.zeromock.server.URIOMockHttpServer.builder;

import com.github.tonivade.purefun.effect.URIO;
import com.github.tonivade.purefun.typeclasses.Instances;

public class URIOMockHttpServerRule extends AbstractMockServerRule> {

  public URIOMockHttpServerRule(R env) {
     this(env, 0);
  }

  public URIOMockHttpServerRule(R env, int port) {
    super(Instances.>monad(), builder(cons(env)).port(port).buildK());
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy