Class TestUpload


  • public class TestUpload
    extends Object
    These tests assume that there is a working LaBB-CAT instance with the latest version of nzilbb.labbcat.server.jar installed.
    • Constructor Detail

      • TestUpload

        public TestUpload()
    • Method Detail

      • fragmentUploadDelete

        public void fragmentUploadDelete()
                                  throws Exception
        Test /api/edit/fragment/* API, specifically:
        • fragmentUpload
        • fragmentUploadDelete
        Throws:
        Exception
      • fragmentUploadTwoPhase

        public void fragmentUploadTwoPhase()
                                    throws Exception
        Test /api/edit/fragment/* API, specifically:
        • fragmentUpload
        • fragmentUploadParameters
        Throws:
        Exception
      • fragmentUploadAutomaticMapping

        public void fragmentUploadAutomaticMapping()
                                            throws Exception
        Test /api/edit/fragment/* API using automaticMapping, i.e. one call to fragmentUpload.
        Throws:
        Exception
      • invalidInputs

        public void invalidInputs()
                           throws Exception
        Test validation of /api/edit/fragment/* API.
        Throws:
        Exception
      • getDir

        public File getDir()
        Getter for fDir: Directory for text files.
        Returns:
        Directory for text files.
      • setDir

        public void setDir​(File fNewDir)
        Setter for fDir: Directory for text files.
        Parameters:
        fNewDir - Directory for text files.
      • main

        public static void main​(String[] args)