blob: 743e19ee26d792cab595be1e3d21b049a8d25238 [file]
package functional.tests
import grails.testing.spock.RunOnce
import io.micronaut.http.client.HttpClient
import org.junit.jupiter.api.BeforeEach
import spock.lang.AutoCleanup
import spock.lang.Shared
import spock.lang.Specification
class HttpClientSpec extends Specification {
@Shared
@AutoCleanup
HttpClient client
@Shared
String baseUrl
@RunOnce
@BeforeEach
def init() {
this.baseUrl = "http://localhost:$serverPort"
this.client = HttpClient.create(new URL(baseUrl))
}
}