站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.4 API 英文版文档

TestFileCommands - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.test.cms.commands
Class TestFileCommands

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jboss.portal.test.cms.AbstractCMSTestCase
              extended byorg.jboss.portal.test.cms.commands.TestFileCommands
All Implemented Interfaces:
junit.framework.Test

public class TestFileCommands
extends AbstractCMSTestCase


Constructor Summary
TestFileCommands(DataSourceSupport.Config dsCfg)
           
 
Method Summary
 void setUp()
           
static junit.framework.TestSuite suite()
           
 void tearDown()
           
 void testArchiveUpload()
           
 void testFileCopy()
           
 void testFileCreate()
           
 void testFileCreateFailed()
           
 void testFileDelete()
           
 void testFileGet()
          Tests retrieval of the version labeled LIVE.
 void testFileGetVersion()
          Tests retrieval of a specific version by version number.
 void testFileList()
          Tests retrieving a list of contents under a file and the versions for contents.
 void testFileUpdate()
          Tests updating a file and its content.
 
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
 

Constructor Detail

TestFileCommands

public TestFileCommands(DataSourceSupport.Config dsCfg)
Method Detail

suite

public static junit.framework.TestSuite suite()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class AbstractCMSTestCase
Throws:
java.lang.Exception

tearDown

public void tearDown()
              throws java.lang.Exception
Overrides:
tearDown in class AbstractCMSTestCase
Throws:
java.lang.Exception

testFileDelete

public void testFileDelete()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testFileCreate

public void testFileCreate()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testFileGet

public void testFileGet()
                 throws CMSException
Tests retrieval of the version labeled LIVE.

Throws:
CMSException

testFileUpdate

public void testFileUpdate()
                    throws java.lang.Exception
Tests updating a file and its content.

Throws:
java.lang.Exception

testFileGetVersion

public void testFileGetVersion()
                        throws CMSException
Tests retrieval of a specific version by version number.

Throws:
CMSException

testFileList

public void testFileList()
                  throws CMSException
Tests retrieving a list of contents under a file and the versions for contents.

Throws:
CMSException

testFileCopy

public void testFileCopy()
                  throws CMSException
Throws:
CMSException

testArchiveUpload

public void testArchiveUpload()
                       throws CMSException,
                              java.io.IOException
Throws:
CMSException
java.io.IOException

testFileCreateFailed

public void testFileCreateFailed()
                          throws java.lang.Exception
Throws:
java.lang.Exception