org.alfresco.repo.importer
Class FileImporterTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.importer.FileImporterTest
All Implemented Interfaces:
junit.framework.Test

public class FileImporterTest
extends junit.framework.TestCase


Constructor Summary
FileImporterTest()
           
FileImporterTest(java.lang.String arg0)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void setUp()
           
 void testCreateFile()
           
 void testLoadRootNonRecursive1()
           
 void testLoadRootNonRecursive2()
           
 void testLoadSourceTestResources()
           
 void testLoadXMLFiles()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileImporterTest

public FileImporterTest()

FileImporterTest

public FileImporterTest(java.lang.String arg0)
Method Detail

setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase

testCreateFile

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

testLoadRootNonRecursive1

public void testLoadRootNonRecursive1()

testLoadRootNonRecursive2

public void testLoadRootNonRecursive2()

testLoadXMLFiles

public void testLoadXMLFiles()

testLoadSourceTestResources

public void testLoadSourceTestResources()

main

public static final void main(java.lang.String[] args)
                       throws java.lang.Exception
Parameters:
args -
  1. StoreRef: The store to load the files into
  2. String: The path within the store into which to load the files (e.g. /app:company_home)
  3. String: Directory to use as source (e.g. c:/temp)
  4. String: New name to give the source. It may have a suffix added (e.g. upload_xxx)
  5. Integer: Number of times to repeat the load.
  6. Boolean: (optional - default 'false') Create each file/folder in a new transaction
  7. String: (optional) user to authenticate as
  8. String: (optional) password for authentication
Throws:
javax.transaction.SystemException
javax.transaction.NotSupportedException
javax.transaction.HeuristicRollbackException
javax.transaction.HeuristicMixedException
javax.transaction.RollbackException
java.lang.IllegalStateException
java.lang.SecurityException
java.lang.Exception


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