org.openi.web.controller.admin
Class ManageFilesFormControllerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.openi.web.controller.BaseControllerTestCase
              extended by org.openi.web.controller.admin.ManageFilesFormControllerTest
All Implemented Interfaces:
junit.framework.Test

public class ManageFilesFormControllerTest
extends BaseControllerTestCase

Version:
$Revision: 1.5 $ $Date: 2006/04/12 00:39:12 $
Test case for ManageFilesFormController spring controller.
Author:
Dipendra Pokhrel

Field Summary
 
Fields inherited from class org.openi.web.controller.BaseControllerTestCase
app, appContext, logger, TEST_PROJECT_NAME, webAppContext
 
Constructor Summary
ManageFilesFormControllerTest()
           
 
Method Summary
 void setUp()
          Initialize test objects
protected  void tearDown()
           
 void testControllerConfig()
          Test controller configuration
 void testCreateFolderAlreadyExists()
          tests test dirs whether they exist or not
 void testDeletePost()
          test delete file/folder request
 void testGet()
          Test main view
 void testNewPost()
          test new sub folder post request
 void testRenamePost()
          test rename file/folder request
 
Methods inherited from class org.openi.web.controller.BaseControllerTestCase
getAllPermission, getTestDirectory, getTestProject, getTestProjectContext, getTestProjectsDir, getTestUser, newGet, newPost
 
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

ManageFilesFormControllerTest

public ManageFilesFormControllerTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Initialize test objects

Overrides:
setUp in class BaseControllerTestCase
Throws:
IOException
java.lang.Exception

testControllerConfig

public void testControllerConfig()
                          throws java.lang.Exception
Test controller configuration

Throws:
java.lang.Exception

testGet

public void testGet()
             throws java.lang.Exception
Test main view

Throws:
java.lang.Exception

testCreateFolderAlreadyExists

public void testCreateFolderAlreadyExists()
                                   throws java.lang.Exception
tests test dirs whether they exist or not

Throws:
java.lang.Exception

testNewPost

public void testNewPost()
                 throws java.lang.Exception
test new sub folder post request

Throws:
java.lang.Exception

testRenamePost

public void testRenamePost()
                    throws java.lang.Exception
test rename file/folder request

Throws:
java.lang.Exception

testDeletePost

public void testDeletePost()
                    throws java.lang.Exception
test delete file/folder request

Throws:
java.lang.Exception

tearDown

protected void tearDown()
Overrides:
tearDown in class BaseControllerTestCase