Class AbstractBackupRepositoryTest


  • public abstract class AbstractBackupRepositoryTest
    extends SolrTestCaseJ4
    • Constructor Detail

      • AbstractBackupRepositoryTest

        public AbstractBackupRepositoryTest()
    • Method Detail

      • getRepository

        protected abstract org.apache.solr.core.backup.repository.BackupRepository getRepository()
      • getBaseBackupRepositoryConfiguration

        protected org.apache.solr.common.util.NamedList<Object> getBaseBackupRepositoryConfiguration()
        Provide a base BackupRepository configuration for use by any tests that call NamedListInitializedPlugin.init(NamedList) explicitly.

        Useful for setting configuration properties required for specific BackupRepository implementations.

      • testCanReadProvidedConfigValues

        public void testCanReadProvidedConfigValues()
                                             throws Exception
        Throws:
        Exception
      • testCanChooseDefaultOrOverrideLocationValue

        public void testCanChooseDefaultOrOverrideLocationValue()
                                                         throws Exception
        Throws:
        Exception
      • testCanDetermineWhetherFilesAndDirectoriesExist

        public void testCanDetermineWhetherFilesAndDirectoriesExist()
                                                             throws Exception
        Throws:
        Exception
      • testCanDistinguishBetweenFilesAndDirectories

        public void testCanDistinguishBetweenFilesAndDirectories()
                                                          throws Exception
        Throws:
        Exception
      • testArbitraryFileDataCanBeStoredAndRetrieved

        public void testArbitraryFileDataCanBeStoredAndRetrieved()
                                                          throws Exception
        Throws:
        Exception
      • testCanDeleteEmptyOrFullDirectories

        public void testCanDeleteEmptyOrFullDirectories()
                                                 throws Exception
        Throws:
        Exception
      • testDirectoryCreationFailsIfParentDoesntExist

        public void testDirectoryCreationFailsIfParentDoesntExist()
                                                           throws Exception
        Throws:
        Exception
      • testCanDeleteIndividualFiles

        public void testCanDeleteIndividualFiles()
                                          throws Exception
        Throws:
        Exception
      • testCanListFullOrEmptyDirectories

        public void testCanListFullOrEmptyDirectories()
                                               throws Exception
        Throws:
        Exception
      • testDirectoryExistsWithDirectoryUri

        public void testDirectoryExistsWithDirectoryUri()
                                                 throws Exception
        Throws:
        Exception