@Test public void testAll() { models.Channel channel = new models.Channel(); channel.title = "All Things v9"; channel.link = "http://anthonyeden.com/rss.xml"; channel.description = "Words from Anthony Eden, Founder of DNSimple"; channel.save(); Result result = callAction(controllers.routes.ref.Channels.all(), new FakeRequest(GET, "/channels")); assertThat(status(result)).isEqualTo(OK); assertThat(contentType(result)).isEqualTo("application/json"); assertThat(charset(result)).isEqualTo("utf-8"); assertThat(contentAsString(result)).contains("Anthony"); }