Class TestLabbcatAdmin

java.lang.Object
nzilbb.labbcat.TestLabbcatAdmin

public class TestLabbcatAdmin extends Object
Unit tests for LabbcatAdmin.

These tests are general in nature. They assume the existence of a valid LaBB-CAT instance (configured by labbcatUrl) but do not assume specific corpus content. For the tests to work, the first graph listed in LaBB-CAT must have some words and some media, and the first participant listed must have some transcripts.

  • Constructor Details

    • TestLabbcatAdmin

      public TestLabbcatAdmin()
  • Method Details

    • createStore

      public static void createStore()
    • notVerbose

      public void notVerbose()
    • invalidCredentials

      public void invalidCredentials() throws Exception
      Throws:
      Exception
    • credentialsRequired

      public void credentialsRequired() throws Exception
      Throws:
      Exception
    • malformedURLException

      public void malformedURLException() throws Exception
      Throws:
      Exception
    • nonLabbcatUrl

      public void nonLabbcatUrl() throws Exception
      Throws:
      Exception
    • messageLocalization

      public void messageLocalization() throws Exception
      Throws:
      Exception
    • inheritedLabbcatViewFunctions

      public void inheritedLabbcatViewFunctions() throws Exception
      Throws:
      Exception
    • newCorpusUpdateCorpusAndDeleteCorpus

      public void newCorpusUpdateCorpusAndDeleteCorpus() throws Exception
      Throws:
      Exception
    • newProjectUpdateProjectAndDeleteProject

      public void newProjectUpdateProjectAndDeleteProject() throws Exception
      Test deprecated project CRUD operations.
      Throws:
      Exception - If an error occurs.
    • newCategoryUpdateCategoryAndDeleteCategory

      public void newCategoryUpdateCategoryAndDeleteCategory() throws Exception
      Throws:
      Exception
    • newMediaTrackUpdateMediaTrackAndDeleteMediaTrack

      public void newMediaTrackUpdateMediaTrackAndDeleteMediaTrack() throws Exception
      Throws:
      Exception
    • newRoleUpdateRoleAndDeleteRole

      public void newRoleUpdateRoleAndDeleteRole() throws Exception
      Throws:
      Exception
    • newRolePermissionUpdateRolePermissionAndDeleteRolePermission

      public void newRolePermissionUpdateRolePermissionAndDeleteRolePermission() throws Exception
      Throws:
      Exception
    • readSystemAttributeAndUpdateSystemAttribute

      public void readSystemAttributeAndUpdateSystemAttribute() throws Exception
      Throws:
      Exception
    • updateInfo

      public void updateInfo() throws Exception
      Throws:
      Exception
    • saveTranscriptTypeOptions

      public void saveTranscriptTypeOptions() throws Exception
      Throws:
      Exception
    • newSaveDeleteLayer

      public void newSaveDeleteLayer() throws Exception
      Throws:
      Exception
    • newUserUpdateUserDeleteUserAndChangePassword

      public void newUserUpdateUserDeleteUserAndChangePassword() throws Exception
      Throws:
      Exception
    • layerDictionaryManagement

      public void layerDictionaryManagement() throws Exception
      Throws:
      Exception
    • readEntries

      public Map<String,List<String>> readEntries(File csv) throws Exception
      Reads a CSV file into a map of lists, and then deletes the file.
      Parameters:
      csv - Dictionary file.
      Returns:
      A map of keys to values.
      Throws:
      Exception - If an error occurs.
    • 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)