Ejemplo n.º 1
0
 @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));
 }
Ejemplo n.º 2
0
 @Test
 public void shouldCreateWithUrl() throws Exception {
   String url = "http://localhost:8080";
   FacesView view = new FacesView(url);
   assertThat(view.getUrl(), is(url));
 }