Documentation of 'org.hsqldb.test.TestDbBackup' Java class
TestDbBackup
org.hsqldb.test

Class TestDbBackup

  • All Implemented Interfaces:
    junit.framework.Test


    public class TestDbBackup
    extends junit.framework.TestCase
    • Constructor Summary

      Constructors 
      Constructor and Description
      TestDbBackup() 
      TestDbBackup(java.lang.String s)
      Accommodate JUnit's test-runner conventions.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static void main(java.lang.String[] sa)
      This method allows to easily run this unit test independent of the other unit tests, and without dealing with Ant or unrelated test suites.
      void mainBackupAndRestore(java.lang.String baseTarName) 
      void onlineBackupAndRestore(java.lang.String baseTarName, boolean populate, boolean compress, java.lang.String restoreDest) 
      static junit.framework.Test suite() 
      void testAutoNaming()
      Test that correct DB names are generated when user supplies just a directory.
      void testBasicBackup() 
      void testGzip() 
      void testMainAlreadyOpen() 
      void testOnlineBackup()
      Test all forms of online backups with explicit filenames.
      void testSanity() 
      void testTarFileNames()
      Test that bad explicit filenames are rejected for onilne backups.
      • Methods inherited from class junit.framework.TestCase

        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, countTestCases, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TestDbBackup

        public TestDbBackup()
                     throws java.io.IOException,
                            java.sql.SQLException
        Throws:
        java.io.IOException
        java.sql.SQLException
      • TestDbBackup

        public TestDbBackup(java.lang.String s)
                     throws java.io.IOException,
                            java.sql.SQLException
        Accommodate JUnit's test-runner conventions.
        Throws:
        java.io.IOException
        java.sql.SQLException
    • Method Detail

      • main

        public static void main(java.lang.String[] sa)
        This method allows to easily run this unit test independent of the other unit tests, and without dealing with Ant or unrelated test suites.
      • testSanity

        public void testSanity()
                        throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • testOnlineBackup

        public void testOnlineBackup()
                              throws java.sql.SQLException,
                                     java.io.IOException,
                                     TarMalformatException
        Test all forms of online backups with explicit filenames.
        Throws:
        java.sql.SQLException
        java.io.IOException
        TarMalformatException
      • onlineBackupAndRestore

        public void onlineBackupAndRestore(java.lang.String baseTarName,
                                           boolean populate,
                                           boolean compress,
                                           java.lang.String restoreDest)
                                    throws java.sql.SQLException,
                                           java.io.IOException,
                                           TarMalformatException
        Throws:
        java.sql.SQLException
        java.io.IOException
        TarMalformatException
      • mainBackupAndRestore

        public void mainBackupAndRestore(java.lang.String baseTarName)
                                  throws java.sql.SQLException,
                                         java.io.IOException,
                                         TarMalformatException
        Throws:
        java.sql.SQLException
        java.io.IOException
        TarMalformatException
      • testTarFileNames

        public void testTarFileNames()
                              throws java.sql.SQLException,
                                     java.io.IOException,
                                     TarMalformatException
        Test that bad explicit filenames are rejected for onilne backups.
        Throws:
        java.sql.SQLException
        java.io.IOException
        TarMalformatException
      • testAutoNaming

        public void testAutoNaming()
                            throws java.sql.SQLException,
                                   java.io.IOException,
                                   TarMalformatException
        Test that correct DB names are generated when user supplies just a directory. N.b. This test may not work right if tests are run at midnight. This limitation will be removed once we can update the FilenameFilters with Java 4's java.util.regex.
        Throws:
        java.sql.SQLException
        java.io.IOException
        TarMalformatException
      • suite

        public static junit.framework.Test suite()
                                          throws java.io.IOException,
                                                 java.sql.SQLException
        Throws:
        java.io.IOException
        java.sql.SQLException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.