org.alfresco.tools
Class RenameUserTest

java.lang.Object
  extended by org.alfresco.tools.RenameUserTest

public class RenameUserTest
extends java.lang.Object

Unit test for RenameUser. PersonTest contains integration tests.


Constructor Summary
RenameUserTest()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testBadFilename()
           
 void testCmdLineUsernames()
           
 void testComments()
           
 void testDuplicateNewUsername()
           
 void testDuplicateOldUsername()
           
 void testEmptyLines()
           
 void testFileMultipleUsernames()
           
 void testFileNoNewlineAtEndOfFile()
           
 void testFileNoUsernames()
           
 void testFileUsernames()
           
 void testFileUsernamesWithSpaces()
           
 void testLoginUsernameAndPassword()
           
 void testSameUsernameCmdLine()
           
 void testSameUsernameFile()
           
 void testTooManyUsernamesOnALine()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenameUserTest

public RenameUserTest()
Method Detail

setUp

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

tearDown

public void tearDown()

testLoginUsernameAndPassword

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

testCmdLineUsernames

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

testFileUsernames

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

testFileUsernamesWithSpaces

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

testFileMultipleUsernames

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

testFileNoNewlineAtEndOfFile

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

testEmptyLines

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

testComments

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

testBadFilename

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

testFileNoUsernames

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

testTooManyUsernamesOnALine

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

testDuplicateNewUsername

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

testDuplicateOldUsername

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

testSameUsernameCmdLine

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

testSameUsernameFile

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


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