Class TestLabbcatView

java.lang.Object
nzilbb.labbcat.TestLabbcatView

public class TestLabbcatView extends Object
Unit tests for LabbcatView.

These tests test the functionality of the client library, not the server.

They assume the existence of a valid LaBB-CAT instance (configured by labbcatUrl) which responds correctly to requests, but do not generally test that the server behaves correctly , nor 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

    • TestLabbcatView

      public TestLabbcatView()
  • 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
    • getId

      public void getId() throws Exception
      Throws:
      Exception
    • getInfo

      public void getInfo() throws Exception
      Throws:
      Exception
    • getLayerIds

      public void getLayerIds() throws Exception
      Throws:
      Exception
    • getLayers

      public void getLayers() throws Exception
      Throws:
      Exception
    • getCorpusIds

      public void getCorpusIds() throws Exception
      Throws:
      Exception
    • getParticipantIds

      public void getParticipantIds() throws Exception
      Throws:
      Exception
    • getTranscriptIds

      public void getTranscriptIds() throws Exception
      Throws:
      Exception
    • countMatchingParticipantIds

      public void countMatchingParticipantIds() throws Exception
      Throws:
      Exception
    • getMatchingParticipantIds

      public void getMatchingParticipantIds() throws Exception
      Throws:
      Exception
    • getTranscriptIdsInCorpus

      public void getTranscriptIdsInCorpus() throws Exception
      Throws:
      Exception
    • getTranscriptIdsWithParticipant

      public void getTranscriptIdsWithParticipant() throws Exception
      Throws:
      Exception
    • countMatchingTranscriptIds

      public void countMatchingTranscriptIds() throws Exception
      Throws:
      Exception
    • getMatchingTranscriptIds

      public void getMatchingTranscriptIds() throws Exception
      Throws:
      Exception
    • countAnnotations

      public void countAnnotations() throws Exception
      Throws:
      Exception
    • getAnnotations

      public void getAnnotations() throws Exception
      Throws:
      Exception
    • getAnchors

      public void getAnchors() throws Exception
      Throws:
      Exception
    • getSchema

      public void getSchema() throws Exception
      Throws:
      Exception
    • getTranscript

      public void getTranscript() throws Exception
      Throws:
      Exception
    • getMedia

      public void getMedia() throws Exception
      Throws:
      Exception
    • getMediaFragment

      public void getMediaFragment() throws Exception
      Throws:
      Exception
    • getLayer

      public void getLayer() throws Exception
      Throws:
      Exception
    • getParticipant

      public void getParticipant() throws Exception
      Throws:
      Exception
    • getParticipantWithAttributes

      public void getParticipantWithAttributes() throws Exception
      Throws:
      Exception
    • getParticipantDoesntExist

      public void getParticipantDoesntExist() throws Exception
      Throws:
      Exception
    • countMatchingAnnotations

      public void countMatchingAnnotations() throws Exception
      Throws:
      Exception
    • getMatchingAnnotations

      public void getMatchingAnnotations() throws Exception
      Throws:
      Exception
    • aggregateMatchingAnnotations

      public void aggregateMatchingAnnotations() throws Exception
      Ensure that aggregateMatchingAnnotations works.
      Throws:
      Exception
    • getMediaTracks

      public void getMediaTracks() throws Exception
      Throws:
      Exception
    • getAvailableMedia

      public void getAvailableMedia() throws Exception
      Throws:
      Exception
    • getEpisodeDocuments

      public void getEpisodeDocuments() throws Exception
      Throws:
      Exception
    • getTaskInvalidNumericId

      public void getTaskInvalidNumericId() throws Exception
      Throws:
      Exception
    • getTaskInvalidAlphaId

      public void getTaskInvalidAlphaId() throws Exception
      Throws:
      Exception
    • getTasks

      public void getTasks() throws Exception
      Throws:
      Exception
    • taskStatus

      public void taskStatus() throws Exception
      Throws:
      Exception
    • waitForTask

      public void waitForTask() throws Exception
      Throws:
      Exception
    • searchInvalidPattern

      public void searchInvalidPattern() throws Exception
      Ensure searching with an invalid pattern correctly fails.
      Throws:
      Exception
    • searchAndCancelTask

      public void searchAndCancelTask() throws Exception
      Ensure searches can be cancelled.
      Throws:
      Exception
    • searchAndGetMatchesAndGetMatchAnnotations

      public void searchAndGetMatchesAndGetMatchAnnotations() throws Exception
      Ensure workflow of searching works, from specifying the search to retrieving results
      Throws:
      Exception
    • searchExcludingOverlappingSpeech

      public void searchExcludingOverlappingSpeech() throws Exception
      Ensure exclusion of overlapping speech in search results works.
      Throws:
      Exception
    • getSoundFragments

      public void getSoundFragments() throws Exception
      Throws:
      Exception
    • getFragments

      public void getFragments() throws Exception
      Throws:
      Exception
    • processWithPraat

      public void processWithPraat() throws Exception
      Throws:
      Exception
    • getTranscriptAttributes

      public void getTranscriptAttributes() throws Exception
      Throws:
      Exception
    • getParticipantAttributes

      public void getParticipantAttributes() throws Exception
      Throws:
      Exception
    • getSerializerDescriptors

      public void getSerializerDescriptors() throws Exception
      Throws:
      Exception
    • getDeserializerDescriptors

      public void getDeserializerDescriptors() throws Exception
      Throws:
      Exception
    • getSystemAttribute

      public void getSystemAttribute() throws Exception
      Throws:
      Exception
    • getUserInfo

      public void getUserInfo() throws Exception
      Throws:
      Exception
    • getAnnotatorDescriptor

      public void getAnnotatorDescriptor() throws Exception
      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)