|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.apache.commons.resources.impl.ResourcesBaseMethodTestCase
public class ResourcesBaseMethodTestCase
Unit tests for ResourceBase which checks that the standard content retrieval methods all work inter-changeably.
For example if the getObject() method retrieves an InputStream the getReader() method converts the InputStream to a Reader.
Field Summary | |
---|---|
protected org.apache.commons.resources.Resources |
resources
|
Constructor Summary | |
---|---|
ResourcesBaseMethodTestCase(String name)
|
Method Summary | |
---|---|
void |
setUp()
|
static junit.framework.Test |
suite()
|
void |
tearDown()
|
void |
testByteArray()
Test a Resources implementation whose getObject() method returns a byte array. |
void |
testObject()
Test a Resources implementation whose getObject() method returns an Object that is not a String/Reader/InputStream/byte[]. |
void |
testReader()
Test a Resources implementation whose getObject() method returns a Reader. |
void |
testStream()
Test a Resources implementation whose getObject() method returns an InputStream. |
void |
testString()
Test a Resources implementation whose getObject() method returns a String. |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected org.apache.commons.resources.Resources resources
Constructor Detail |
---|
public ResourcesBaseMethodTestCase(String name)
Method Detail |
---|
public void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
public static junit.framework.Test suite()
public void tearDown()
tearDown
in class junit.framework.TestCase
public void testReader() throws Exception
Exception
public void testStream() throws Exception
Exception
public void testString() throws Exception
Exception
public void testByteArray() throws Exception
Exception
public void testObject() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |