Skip to content

Instantly share code, notes, and snippets.

@gastaldi
Created April 3, 2012 17:14
Show Gist options
  • Save gastaldi/2293781 to your computer and use it in GitHub Desktop.
Save gastaldi/2293781 to your computer and use it in GitHub Desktop.
FacesPluginTest.java
package org.jboss.forge.spec.javaee.jsf;
import junit.framework.Assert;
import org.jboss.forge.project.Project;
import org.jboss.forge.test.AbstractShellTest;
import org.junit.Test;
public class FacesPluginTest extends AbstractShellTest
{
@Test
public void testFacesConfig() throws Exception
{
Project project = initializeJavaProject();
queueInputLines("Y", "Y", "Y");
getShell().execute("faces setup");
Assert.assertTrue(project.getProjectRoot().getChild("src/main/webapp/WEB-INF/web.xml").exists());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment