|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.shale.test.base.AbstractJsfTestCase
org.apache.shale.test.base.AbstractViewControllerTestCase
org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase
org.apache.myfaces.renderkit.html.util.AddResourceTest
public class AddResourceTest
Unit test for the AddResource class which can output script, style and inline javascript into the header or body of an HTML response page.
| Nested Class Summary | |
|---|---|
static class |
AddResourceTest.CustomMockExternalContext
|
static class |
AddResourceTest.RequestHeaderMap
|
static class |
AddResourceTest.RequestHeaderValuesMap
|
| Field Summary |
|---|
| Fields inherited from class org.apache.shale.test.base.AbstractJsfTestCase |
|---|
application, config, externalContext, facesContext, facesContextFactory, lifecycle, lifecycleFactory, renderKit, request, response, servletContext, session |
| Constructor Summary | |
|---|---|
AddResourceTest(String name)
|
|
| Method Summary | |
|---|---|
void |
testAddJavaScriptHere()
Configure a fake JSF environment for a test, consisting of a FacesContext and dependent objects. |
void |
testGetInstance()
|
void |
testWriteWithFullHeader()
|
| Methods inherited from class org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase |
|---|
assertIdExists, setUp, tearDown |
| Methods inherited from class org.apache.shale.test.base.AbstractViewControllerTestCase |
|---|
checkMessageCount, checkMessageCount |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
| Methods inherited from class junit.framework.Assert |
|---|
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, fail, fail, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AddResourceTest(String name)
| Method Detail |
|---|
public void testGetInstance()
public void testAddJavaScriptHere()
throws IOException
EasyMock control objects are used to emulate the necessary bits.
IOException
public void testWriteWithFullHeader()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||