@Test public void shouldCreateWithViewArtifact() throws Exception { String artifact = "/WEB-INF/pages/page.xhtml"; ViewArtifact viewArtifact = new ViewArtifact(artifact); FacesView view = new FacesView(viewArtifact); assertThat(view.getUrl(), is(artifact)); }
@Test public void shouldCreateWithUrl() throws Exception { String url = "http://localhost:8080"; FacesView view = new FacesView(url); assertThat(view.getUrl(), is(url)); }