@Test public void testIsDisable() throws Exception { FacesContext facesContext = PowerMock.createNicePartialMockForAllMethodsExcept(FacesContext.class, "getCurrentInstance", "setCurrentInstance"); ValueExpression valueExpression = PowerMock.createMock(ValueExpression.class); Method method = FacesContext.class.getDeclaredMethod("setCurrentInstance", FacesContext.class); method.setAccessible(true); method.invoke(null, facesContext); UIParameter parameter = new UIParameter(); parameter.setDisable(true); assertTrue(parameter.isDisable()); method.invoke(null, (FacesContext) null); }
public boolean isDisable() { return (Boolean) getStateHelper().eval(PropertyKeys.disable, false); }
UIParameter extends UIComponentBase { public boolean isDisable() { return (Boolean) getStateHelper().eval(PropertyKeys.disable, false); } }
UIParameter extends UIComponentBase { public boolean isDisable() { return (Boolean) getStateHelper().eval(PropertyKeys.disable, false); } UIParameter(); }
UIParameter extends UIComponentBase { public boolean isDisable() { return (Boolean) getStateHelper().eval(PropertyKeys.disable, false); } UIParameter(); @Override String getFamily(); String getName(); void setName(String name); Object getValue(); void setValue(Object value); boolean isDisable(); void setDisable(boolean disable); }
UIParameter extends UIComponentBase { public boolean isDisable() { return (Boolean) getStateHelper().eval(PropertyKeys.disable, false); } UIParameter(); @Override String getFamily(); String getName(); void setName(String name); Object getValue(); void setValue(Object value); boolean isDisable(); void setDisable(boolean disable); static final String COMPONENT_TYPE; static final String COMPONENT_FAMILY; }