org.apache.myfaces.renderkit.html.util
Class AddResourceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.myfaces.renderkit.html.util.AddResourceTest
All Implemented Interfaces:
junit.framework.Test

public class AddResourceTest
extends junit.framework.TestCase

Unit test for the AddResource class which can output script, style and inline javascript into the header or body of an HTML response page.


Constructor Summary
AddResourceTest()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testAddJavaScriptHere()
           
 void testGetInstance()
           
 void testWriteWithFullHeader()
           
 
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

AddResourceTest

public AddResourceTest()
Method Detail

testGetInstance

public void testGetInstance()

setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase

tearDown

public void tearDown()
Overrides:
tearDown in class junit.framework.TestCase

testAddJavaScriptHere

public void testAddJavaScriptHere()
                           throws IOException
Throws:
IOException

testWriteWithFullHeader

public void testWriteWithFullHeader()
                             throws IOException
Throws:
IOException


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.