Skip to content

Instantly share code, notes, and snippets.

@MykolaGolubyev
Last active May 2, 2020 15:55
Show Gist options
  • Save MykolaGolubyev/03b60323595115b3b3c04f2732702be7 to your computer and use it in GitHub Desktop.
Save MykolaGolubyev/03b60323595115b3b3c04f2732702be7 to your computer and use it in GitHub Desktop.
package com.example.tests.junit4
import org.testingisdocumenting.webtau.junit4.WebTauRunner
import org.junit.Test
import org.junit.runner.RunWith
import static org.testingisdocumenting.webtau.WebTauGroovyDsl.*
@RunWith(WebTauRunner.class) // required for html report generation only
class WeatherGroovyTest {
@Test
void checkWeather() {
http.get("/weather") {
temperature.shouldBe < 100
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment