Last active
May 2, 2020 15:55
-
-
Save MykolaGolubyev/1e7821cfad6275282431663b3865cede 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) | |
public class WeatherJavaTest { | |
@Test | |
public void checkWeather() { | |
http.get("/weather", (header, body) -> { | |
body.get("temperature").shouldBe(lessThan(100)); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment