Skip to content

Instantly share code, notes, and snippets.

@Test
public void saysTheCurrentTime() {
givenTheCurrentTimeIs("20:15");
whenAUserChecksTheTime();
thenTheUserSees("It's currently 20:15!");
}
curl -v -H "Accept: text/plain" http://localhost:6666/time
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 21
Server: Jetty(9.0.5.v20130815)
It's currently 20:59