|
||||||||
| 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.TestPublishing
public class TestPublishing
Unit tests for OpenCms publishing.
| 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 | |
|---|---|
TestPublishing(String arg0)
Default JUnit constructor. |
|
| Method Summary | |
|---|---|
static junit.framework.Test |
suite()
Test suite for this test class. |
void |
testPublishChangedFiles()
Test publishing changed files. |
void |
testPublishContentDate()
Tests the behaviour during publishing depending on the content date. |
void |
testPublishCopySibling()
Tests the publishing of a fresh created sibling. |
void |
testPublishDeletedFiles()
Test publishing deleted files. |
void |
testPublishDeletedSiblings()
Tests the publishing of deleted siblings. |
void |
testPublishDeletedSiblings2()
Tests the publishing of deleted siblings, 2nd issue. |
void |
testPublishFolderWithLockedFiles()
Test publishing a folder with locked files. |
void |
testPublishLockedFiles()
Test publishing changed files. |
void |
testPublishMovedFiles()
Test publishing moved files. |
void |
testPublishNewFiles()
Test publishing new files. |
void |
testPublishNewFilesInNewFolder()
Test publishing files within a new unpublished folder. |
void |
testPublishProjectGalore()
Test publishing a project with an iteration. |
void |
testPublishProjectLastmodified()
Tests publishing resources within a distinct project. |
void |
testPublishProjectLastmodifiedFolder()
Tests publishing a folder containing resources modified within a distinct project. |
void |
testPublishQueueIssue1()
Test an issue with the publish queue when trying to publish a folder that has already a subresource that is being published. |
void |
testPublishQueueIssue2()
Test an issue with the publish queue when trying to publish a folder that has already a subresource that is being published. |
void |
testPublishQueueIssue3()
Test an issue with the publish queue when trying to publish a folder that has already a subresource that is being published. |
void |
testPublishRelatedFiles()
Test publishing of related files. |
void |
testPublishRelatedFilesInFolder()
Test publishing of related files taken a whole folder structure. |
void |
testPublishRelatedFilesInNewFolder()
Test publishing of related files in an unpublished folder. |
void |
testPublishReplacedFile()
Test publishing a replaced file. |
void |
testPublishResourceGalore()
Test publishing a single resource with an iteration. |
void |
testPublishResourceProperty()
Tests the publishing of resource property. |
void |
testPublishResourceWithRelatedGalore()
Test publishing a resource with related resources with an iteration. |
void |
testPublishSiblings()
Tests the publishing of structure/shared properties. |
void |
testPublishStructureProperty()
Tests the publishing of structure property. |
void |
testPublishTemporaryProject()
Test publishing a temporary project. |
| 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 TestPublishing(String arg0)
arg0 - JUnit parameters| Method Detail |
|---|
public static junit.framework.Test suite()
public void testPublishQueueIssue2()
throws Throwable
SECOND TRY: - modify and lock a file, publish the file - lock the folder, modify a second file, publish the folder
Throwable - if something goes wrong
public void testPublishQueueIssue3()
throws Throwable
THIRD TRY: - modify and lock a file, publish the file - modify and lock the folder, publish the folder
Throwable - if something goes wrong
public void testPublishQueueIssue1()
throws Throwable
FIRST TRY: - modify and lock a file, publish the file - modify and lock a second file, publish the folder
Throwable - if something goes wrong
public void testPublishChangedFiles()
throws Throwable
Throwable - if something goes wrong
public void testPublishContentDate()
throws Throwable
Throwable - if something goes wrong
public void testPublishCopySibling()
throws Throwable
take a modified resource: - create a sibling of it - publish only the sibling - compare online/offline versions of the sibling
Throwable - if something goes wrong
public void testPublishDeletedFiles()
throws Throwable
Throwable - if something goes wrong
public void testPublishDeletedSiblings()
throws Throwable
take 2 siblings (s1 and s2): - delete one - publish the deleted one - the remaining sibling should be readable in online project - the deleted sibling should be eligible for restoration
Throwable - if something goes wrong
public void testPublishDeletedSiblings2()
throws Throwable
take 2 siblings (s1 and s2): - delete all - publish all - non of them should be readable - both siblings should be eligible for restoration
Throwable - if something goes wrong
public void testPublishFolderWithLockedFiles()
throws Throwable
Throwable - if something goes wrong
public void testPublishLockedFiles()
throws Throwable
Throwable - if something goes wrong
public void testPublishMovedFiles()
throws Throwable
Throwable - if something goes wrong
public void testPublishNewFiles()
throws Throwable
Throwable - if something goes wrong
public void testPublishNewFilesInNewFolder()
throws Throwable
Throwable - if something goes wrong
public void testPublishProjectGalore()
throws Throwable
Throwable - if something goes wrong
public void testPublishProjectLastmodified()
throws Throwable
Throwable - if something goes wrong
public void testPublishProjectLastmodifiedFolder()
throws Throwable
Throwable - if something goes wrong
public void testPublishRelatedFiles()
throws Throwable
Throwable - if something goes wrong
public void testPublishRelatedFilesInFolder()
throws Throwable
Throwable - if something goes wrong
public void testPublishRelatedFilesInNewFolder()
throws Throwable
Throwable - if something goes wrong
public void testPublishReplacedFile()
throws Throwable
Throwable - if something goes wrong
public void testPublishResourceGalore()
throws Throwable
Throwable - if something goes wrong
public void testPublishResourceProperty()
throws Throwable
take 2 siblings (s1 and s2): - change a shared property of s1 - s2 will be marked as changed also - direct publishing s1, should also change s2
Throwable - if something goes wrong
public void testPublishResourceWithRelatedGalore()
throws Throwable
Throwable - if something goes wrong
public void testPublishSiblings()
throws Throwable
take 2 siblings (s1 and s2): - change a individual property of s1 - change a shared property of s2 - direct publishing s2, should not change s1
Throwable - if something goes wrong
public void testPublishStructureProperty()
throws Throwable
take 2 siblings (s1 and s2): - change a individual property of s1 - s2 remains unchanged - direct publishing s1, should not change s2
Throwable - if something goes wrong
public void testPublishTemporaryProject()
throws Throwable
Throwable - if something goes wrong
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||