Package org.jboss.shrinkwrap.descriptor.api.facesconfig21

Examples of org.jboss.shrinkwrap.descriptor.api.facesconfig21.WebFacesConfigDescriptor.createApplication()


      FacesFacet_2_1 facet = facetFactory.install(project, FacesFacet_2_1.class);
      Assert.assertNotNull(facet);
      FileResource<?> configFile = facet.getConfigFile();
      Assert.assertTrue(configFile.exists());
      WebFacesConfigDescriptor config = facet.getConfig();
      config.createApplication().defaultRenderKitId("foo");
      Assert.assertTrue(configFile.exists());
      facet.saveConfig(config);
      Assert.assertTrue(configFile.exists());
      Assert.assertEquals("2.1", facet.getSpecVersion().toString());
      Assert.assertTrue(project.hasFacet(FacesFacet.class));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.