Package javax.faces.view.facelets

Examples of javax.faces.view.facelets.TagConfig


    assertThat(this.variableMapper.getAllValues().get(1), is(sameInstance(originalVariableMapper)));
    verify(paramHandler).apply(this.ctx, this.parent);
  }

  private DefineHandler mockDefineHandler() {
    TagConfig tagConfig = mock(TagConfig.class);
    TagAttribute nameAttribute = mock(TagAttribute.class);
    given(nameAttribute.getLocalName()).willReturn("name");
    given(nameAttribute.getNamespace()).willReturn("");
    given(nameAttribute.isLiteral()).willReturn(true);
    given(nameAttribute.getValue()).willReturn("defineName");
    TagAttributes attributes = new TagAttributesImpl(new TagAttribute[] { nameAttribute });
    Tag tag = new Tag(new Location("", 0, 0), "", "", "", attributes);
    given(tagConfig.getTag()).willReturn(tag);
    given(tagConfig.getNextHandler()).willReturn(this.innerDefineHandler);
    DefineHandler defineHandler = new DefineHandler(tagConfig);
    return defineHandler;
  }
View Full Code Here

TOP

Related Classes of javax.faces.view.facelets.TagConfig

Copyright © 2018 www.massapicom. 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.