The Unit Test is dead. Long live the Unit Test! - Colin Vipurs

Post on 14-Apr-2017

240 views 0 download

transcript

@Path("/feed/1234") public String getFeed() { return """ { "posts": [ { "id": "1414", "name": "Bob", "message": "Hi there, I'm bob", "when": "Just now" }]}"""}

@Path("/feed/1234") public Feed getFeed() { return Feed.containing(posts( new Post("1414", "Bob", "Hi there, I'm bob", "Just now")) ); }

public Feed getFeed() { return Feed.containing( posts(new Post("1414", "Bob", "Hi there, I'm bob", "Just now")) ); }