@Test public void value() throws ExlpXpathNotFoundException, ExlpXpathNotUniqueException { Component xml = jcf.buildComponent(componentXhtml); Attribute actual = JsfXpath.getAttribute(xml, "value"); Assert.assertEquals(true, actual.isRequired()); Assert.assertEquals("value", actual.getName()); Assert.assertEquals("myDefault", actual.getDefault()); Assert.assertEquals("myDescription", actual.getShortDescription()); }
public Component buildComponent(String resourceName) { component = new Component(); try {read(resourceName);} catch (FileNotFoundException e) {e.printStackTrace();} catch (Exception e) {e.printStackTrace();} return component; }
JsfComponentFactory { public Component buildComponent(String resourceName) { component = new Component(); try {read(resourceName);} catch (FileNotFoundException e) {e.printStackTrace();} catch (Exception e) {e.printStackTrace();} return component; } }
JsfComponentFactory { public Component buildComponent(String resourceName) { component = new Component(); try {read(resourceName);} catch (FileNotFoundException e) {e.printStackTrace();} catch (Exception e) {e.printStackTrace();} return component; } JsfComponentFactory(); }
JsfComponentFactory { public Component buildComponent(String resourceName) { component = new Component(); try {read(resourceName);} catch (FileNotFoundException e) {e.printStackTrace();} catch (Exception e) {e.printStackTrace();} return component; } JsfComponentFactory(); Component buildComponent(String resourceName); }
JsfComponentFactory { public Component buildComponent(String resourceName) { component = new Component(); try {read(resourceName);} catch (FileNotFoundException e) {e.printStackTrace();} catch (Exception e) {e.printStackTrace();} return component; } JsfComponentFactory(); Component buildComponent(String resourceName);  }