@Test public void shouldDefaultUriToVraptorConventionOtherwise() { assertThat(cprp.defaultUriFor("/", "sitemap"), is(equalTo("/sitemap"))); assertThat(cprp.defaultUriFor("/dog", "bark"), is(equalTo("/dog/bark"))); }
@Test public void shouldDefaultForEmptyPathWhenMethodNameIsIndex() { assertThat(cprp.defaultUriFor("/", "index"), is(equalTo("/"))); assertThat(cprp.defaultUriFor("/login", "index"), is(equalTo("/login"))); }