public class CompositionTestCase extends FaceletTestCase
dispenser, vdl
application, config, externalContext, facesContext, facesContextFactory, lifecycle, lifecycleFactory, renderKit, request, response, servletContext, session
Constructor and Description |
---|
CompositionTestCase() |
Modifier and Type | Method and Description |
---|---|
protected void |
setUpServletObjects() |
void |
testComposition1()
Test if ui:composition is used on a page with a reference to a
template, it should trim everything, but take its content and insert it
on a template ui:insert without name spot if available.
|
void |
testComposition2EmptyComposition()
An empty ui:composition does not means the content of a ui:insert without
name to be rendered
|
void |
testComposition3EmptyComposition()
An empty ui:composition does not means the content of a ui:insert without
name to be rendered
|
void |
testComposition4DefineOverInsert()
A ui:define takes precedence over a ui:insert
|
void |
testComposition5()
A ui:insert on nested composition takes the top TemplateClient.
|
void |
testCompositionNested1()
An ui:define on the outer most composition takes precedence over
the inner one.
|
void |
testCompositionNested2() |
void |
testCompositionTrimEffect()
Test if ui:composition is used on a page without a reference to a
template, it should trim everything outside the template
|
createExpressionFactory, getContext, getDirectory, getLocalFile, loadStandardFacesConfig, resolveUrl, setFactories, setProjectStage, setUp, setUpApplication, setupBehaviors, setupComponents, setupConvertersAndValidators, setUpExternalContext, setupRenderers, setUpRenderKit, setUpView
setUpClassloader, setUpFacesContext, setUpJSFObjects, setUpLifecycle, tearDown, tearDownClassloader
protected void setUpServletObjects() throws Exception
setUpServletObjects
in class FaceletTestCase
Exception
public void testCompositionTrimEffect() throws Exception
Exception
public void testComposition1() throws Exception
Exception
public void testComposition2EmptyComposition() throws Exception
Exception
public void testComposition3EmptyComposition() throws Exception
Exception
public void testComposition4DefineOverInsert() throws Exception
Exception
public void testComposition5() throws Exception
Exception
public void testCompositionNested1() throws Exception
Exception
Copyright © 2020 The Apache Software Foundation. All rights reserved.