|
XBRLAPIA Java API for XBRL |
|||||||||
| 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.xbrlapi.utilities.BaseTestCase
public abstract class BaseTestCase
Provides a base test case for all tests in the XBRL API test suite. This package provides some base testcase classes that extend in useful ways on the JUnit base test case. Te XMLBase subclass helps with tests related to XML.
| Field Summary | |
|---|---|
protected String |
baseURI
Base URI for test data |
protected String |
cachePath
Absolute path to the local document cache |
protected Properties |
configuration
|
protected static org.apache.log4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
BaseTestCase(String arg0)
Base test case constructor loads the test suite configuration properties. |
|
| Method Summary | |
|---|---|
void |
assessCustomEquality(Object object,
Object copy)
Tests if the object and the copy are equal and have the same hash code. |
protected Object |
getDeepCopy(Object object)
|
URI |
getURI(String property)
|
void |
serialize(Node what)
Serializes an XML fragment to the output stream. |
protected void |
setUp()
|
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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 static org.apache.log4j.Logger logger
protected Properties configuration
protected String cachePath
protected String baseURI
| Constructor Detail |
|---|
public BaseTestCase(String arg0)
arg0 - | Method Detail |
|---|
protected void setUp()
throws Exception
setUp in class junit.framework.TestCaseExceptionpublic URI getURI(String property)
property - determining the URI of the test data
public void serialize(Node what)
throws IOException,
XBRLException
what - The DOM Document or Element node to use as
the root for the XML fragment to serialize.
XBRLException - if the node is not a document or element node.
IOException - if the serialization IO operation fails.
protected Object getDeepCopy(Object object)
throws IOException,
ClassNotFoundException
object - The object to create a deep copy of.
IOException
ClassNotFoundException
public final void assessCustomEquality(Object object,
Object copy)
throws Exception
object - The object to use.copy - The supposed deep copy of the object.
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||