Last active
May 2, 2020 15:55
-
-
Save MykolaGolubyev/03b60323595115b3b3c04f2732702be7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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