public class ApplicationImplTest
extends junit.framework.TestCase
Modifier and Type | Class and Description |
---|---|
static class |
ApplicationImplTest.EnumCodedTestConverter |
Constructor and Description |
---|
ApplicationImplTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
setUp() |
void |
testCreateComponentCallSetValueOnExpressionIfValueNull() |
void |
testCreateComponentExpressionFacesExceptionTest() |
void |
testCreateConverterForInterface()
Test method for
Application.createConverter(java.lang.Class) . |
void |
testCreateEnumConverter()
Test method for
Application.createConverter(java.lang.Class) . |
void |
testCreateMethodBinding() |
void |
testGetResourceBundleFacesException()
Test if a
FacesException is thrown if the specified resource bundle can not be found. |
void |
testGetResourceBundleNPE()
|
void |
testGetResourceBundleWithDefaultLocale()
|
void |
testGetResourceBundleWithUIViewRootLocale()
|
void |
testGetVariableResolver() |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, tearDown, toString
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
public void testGetResourceBundleNPE()
public void testGetResourceBundleFacesException()
Test if a FacesException
is thrown if the specified resource bundle can not be found.
ApplicationImpl.getResourceBundle(javax.faces.context.FacesContext, java.lang.String)
.public void testGetResourceBundleWithDefaultLocale()
public void testGetResourceBundleWithUIViewRootLocale()
public void testCreateComponentCallSetValueOnExpressionIfValueNull() throws Exception
Exception
public void testCreateComponentExpressionFacesExceptionTest() throws Exception
Exception
public void testCreateEnumConverter() throws Exception
Application.createConverter(java.lang.Class)
.Exception
public void testCreateConverterForInterface() throws Exception
Application.createConverter(java.lang.Class)
.
Tests the situation when a object is both, an enum and an implementor of an interface for which we have a specific converter registered. The interface should take precedence over the fact that our object is also an enum.
Exception
Copyright © 2020 The Apache Software Foundation. All rights reserved.