Class TestPrestoCli

  • All Implemented Interfaces:
    io.prestosql.tempto.RequirementsProvider

    public class TestPrestoCli
    extends PrestoCliLauncher
    implements io.prestosql.tempto.RequirementsProvider
    • Constructor Detail

      • TestPrestoCli

        public TestPrestoCli()
                      throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • stopPresto

        public void stopPresto()
                        throws java.lang.InterruptedException
        Overrides:
        stopPresto in class PrestoCliLauncher
        Throws:
        java.lang.InterruptedException
      • getRequirements

        public io.prestosql.tempto.Requirement getRequirements​(io.prestosql.tempto.configuration.Configuration configuration)
        Specified by:
        getRequirements in interface io.prestosql.tempto.RequirementsProvider
      • shouldDisplayVersion

        public void shouldDisplayVersion()
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • shouldRunQuery

        public void shouldRunQuery()
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • shouldRunBatchQuery

        public void shouldRunBatchQuery()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldExecuteEmptyListOfStatements

        public void shouldExecuteEmptyListOfStatements()
                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldUseCatalogAndSchemaOptions

        public void shouldUseCatalogAndSchemaOptions()
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldRunQueryFromFile

        public void shouldRunQueryFromFile()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldExitOnErrorFromExecute

        public void shouldExitOnErrorFromExecute()
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • shouldExitOnErrorFromFile

        public void shouldExitOnErrorFromFile()
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • shouldNotExitOnErrorFromExecute

        public void shouldNotExitOnErrorFromExecute()
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • shouldNotExitOnErrorFromFile

        public void shouldNotExitOnErrorFromFile()
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • shouldHandleSession

        public void shouldHandleSession()
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • shouldHandleTransaction

        public void shouldHandleTransaction()
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • testSetRole

        public void testSetRole()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • squeezeLines

        public static java.util.List<java.lang.String> squeezeLines​(java.util.List<java.lang.String> lines)