|
||||||||
| 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.opencms.test.OpenCmsTestCase
org.opencms.file.TestReadResource
public class TestReadResource
Unit test for the "readFileHeader" method of the CmsObject to test the release and expiration date.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.opencms.test.OpenCmsTestCase |
|---|
OpenCmsTestCase.ConnectionData |
| Field Summary |
|---|
| Fields inherited from class org.opencms.test.OpenCmsTestCase |
|---|
ARTICLE_TYPEID, DB_MYSQL, DB_ORACLE, m_additionalConnection, m_configuration, m_currentResourceStrorage, m_defaultConnection, m_defaultTablespace, m_indexTablespace, m_resourceStorages, m_setupConnection, m_tempTablespace |
| Constructor Summary | |
|---|---|
TestReadResource(String arg0)
Default JUnit constructor. |
|
| Method Summary | |
|---|---|
static void |
readAfterExpirationDate(OpenCmsTestCase tc,
CmsObject cms,
String resource1,
CmsResourceFilter filter)
Test readResource of a file after its expirationrelease date. |
static void |
readBeforeReleaseDate(OpenCmsTestCase tc,
CmsObject cms,
String resource1,
CmsResourceFilter filter)
Test readResource of a file before its release date. |
static void |
readInValidTimeRange(OpenCmsTestCase tc,
CmsObject cms,
String resource1,
CmsResourceFilter filter)
Test readResource of a file in its valid time range. |
static junit.framework.Test |
suite()
Test suite for this test class. |
void |
testReadAfterExpirationDate()
Test readFileHeader of a file after its expiration date. |
void |
testReadAfterExpirationDateIgnore()
Test readFileHeader of a file after its expiration date. |
void |
testReadBeforeReleaseDate()
Test readResource of a file before its release date. |
void |
testReadBeforeReleaseDateIgnore()
Test readFileHeader of a file before its release date. |
void |
testReadFileWithResourceID()
Test readFile with the structure id. |
void |
testReadInValidTimeRange()
Test readFileHeader of a file in its valid time range. |
void |
testReadInValidTimeRangeIgnore()
Test readFileHeader of a file in its valid time range. |
void |
testReadWithResourceID()
Test readResource methods that use the structureId. |
void |
testReadWithWrongResourceID()
Test readResource whether an incorrect structureID throws an exception. |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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 |
| Constructor Detail |
|---|
public TestReadResource(String arg0)
arg0 - JUnit parameters| Method Detail |
|---|
public static junit.framework.Test suite()
public static void readBeforeReleaseDate(OpenCmsTestCase tc,
CmsObject cms,
String resource1,
CmsResourceFilter filter)
throws Throwable
tc - the OpenCmsTestCasecms - the CmsObjectresource1 - the resource to touchfilter - the filter to use
Throwable - if something goes wrong
public static void readAfterExpirationDate(OpenCmsTestCase tc,
CmsObject cms,
String resource1,
CmsResourceFilter filter)
throws Throwable
tc - the OpenCmsTestCasecms - the CmsObjectresource1 - the resource to touchfilter - the filter to use
Throwable - if something goes wrong
public static void readInValidTimeRange(OpenCmsTestCase tc,
CmsObject cms,
String resource1,
CmsResourceFilter filter)
throws Throwable
tc - the OpenCmsTestCasecms - the CmsObjectresource1 - the resource to touchfilter - the filter to use
Throwable - if something goes wrong
public void testReadBeforeReleaseDate()
throws Throwable
Throwable - if something goes wrong
public void testReadAfterExpirationDate()
throws Throwable
Throwable - if something goes wrong
public void testReadInValidTimeRange()
throws Throwable
Throwable - if something goes wrong
public void testReadBeforeReleaseDateIgnore()
throws Throwable
The valid time range will be ignored.
Throwable - if something goes wrong
public void testReadAfterExpirationDateIgnore()
throws Throwable
The valid time range will be ignored.
Throwable - if something goes wrong
public void testReadInValidTimeRangeIgnore()
throws Throwable
The valid time range will be ignored.
Throwable - if something goes wrong
public void testReadWithResourceID()
throws Throwable
Throwable - if something goes wrong
public void testReadWithWrongResourceID()
throws Throwable
Throwable - if something goes wrong
public void testReadFileWithResourceID()
throws Throwable
Throwable - if something is wrong
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||