Skip to content

Instantly share code, notes, and snippets.

@MykolaGolubyev
Last active May 2, 2020 15:55
Show Gist options
  • Save MykolaGolubyev/1e7821cfad6275282431663b3865cede to your computer and use it in GitHub Desktop.
Save MykolaGolubyev/1e7821cfad6275282431663b3865cede 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)
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