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

endpoints4s.algebra.client.JsonTestSuite.scala Maven / Gradle / Ivy

package endpoints4s.algebra.client

import endpoints4s.algebra.{Address, JsonTestApi, User}

trait JsonTestSuite[T <: JsonTestApi] extends ClientTestBase[T] {

  def clientTestSuite() = {

    "Client interpreter" should {

      "return server json response" in {
        val user = User("name2", 19)
        val address = Address("avenue1", "NY")

        call(client.jsonEndpoint, user).map(_ shouldEqual address)
      }
    }

  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy