org.alfresco.repo.deploy
Class DeploymentServiceImplFSTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.avm.AVMServiceTestBase
              extended by org.alfresco.repo.deploy.DeploymentServiceImplFSTest
All Implemented Interfaces:
junit.framework.Test

public class DeploymentServiceImplFSTest
extends AVMServiceTestBase

End to end test of deployment to a file system receiver (FSR).


Field Summary
 
Fields inherited from class org.alfresco.repo.avm.AVMServiceTestBase
fAuthenticationComponent, fAuthService, fContext, fIndexerAndSearcher, fIndexingInterceptor, fLockingService, fReaper, fRetryingTransactionHelper, fService, fSyncService, fTransactionService
 
Constructor Summary
DeploymentServiceImplFSTest()
           
 
Method Summary
protected  void setUp()
          Setup for AVM tests.
protected  void tearDown()
          Cleanup after a test.
 void testBasic()
           
 void testBulkLoad()
          Now load a large number of files.
 void testCaseSensitivity()
          Test for ETWOTWO-1236 1.
 void testEtwoTwo507()
          Test for ETWOTWO-507 1.
 void testNoExclusionFilter()
          Now do the same deployment again - without the matcher - should deploy fudge.bak
 void testRevertToPreviousVersion()
          Deploy a website, update it, then revert to the first version
 void testWrongPassword()
          Wrong password Negative test
 void testWrongTarget()
          Wrong target Negative test
 
Methods inherited from class org.alfresco.repo.avm.AVMServiceTestBase
checkHistory, recursiveContents, recursiveList, recursiveList, runQueriesAgainstBasicTree, runQueriesAgainstBasicTreeWithAOnly, setupBasicTree, setupBasicTree0, testSetup
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeploymentServiceImplFSTest

public DeploymentServiceImplFSTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Description copied from class: AVMServiceTestBase
Setup for AVM tests. Note that we set the polling interval for the reaper to 4 seconds so that tests will finish reasonably quickly.

Overrides:
setUp in class AVMServiceTestBase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Description copied from class: AVMServiceTestBase
Cleanup after a test. Purge main store.

Overrides:
tearDown in class AVMServiceTestBase
Throws:
java.lang.Exception

testBasic

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

testEtwoTwo507

public void testEtwoTwo507()
                    throws java.lang.Exception
Test for ETWOTWO-507 1. In a web project, create files called test01.html and test03.html. 3. Deploy using the FSR. 5. Add a new file called test02.html. 6. Delete the file called test03.html. 8. Deploy using the FSR.

Throws:
java.lang.Exception

testCaseSensitivity

public void testCaseSensitivity()
                         throws java.lang.Exception
Test for ETWOTWO-1236 1. create a file in a Web Project called "CamelCase.txt" 2. submit the file to staging 3. deploy it to an FSR, ideally on a *nix OS (the issues are more severe on *nix than on Windows) 4. rename the file to "cAMELcASE.TXT" 5. submit the change to staging 6. deploy it to the same FSR

Throws:
java.lang.Exception

testWrongPassword

public void testWrongPassword()
Wrong password Negative test


testWrongTarget

public void testWrongTarget()
Wrong target Negative test


testNoExclusionFilter

public void testNoExclusionFilter()
                           throws java.lang.Exception
Now do the same deployment again - without the matcher - should deploy fudge.bak

Throws:
java.lang.Exception

testRevertToPreviousVersion

public void testRevertToPreviousVersion()
                                 throws java.lang.Exception
Deploy a website, update it, then revert to the first version

Throws:
java.lang.Exception

testBulkLoad

public void testBulkLoad()
                  throws java.lang.Exception
Now load a large number of files. Do a deployment - should load successfully Remove a node and update a file Do a deployment - should only see start and end events and the two above.

Throws:
java.lang.Exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.