Package nzilbb.labbcat
Class TestLabbcatView
java.lang.Object
nzilbb.labbcat.TestLabbcatView
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Ensure that aggregateMatchingAnnotations works.void
void
void
void
static void
void
void
void
void
void
void
void
getDir()
Getter forfDir
: Directory for text files.void
void
void
getId()
void
getInfo()
void
getLayer()
void
void
void
void
void
void
getMedia()
void
void
void
void
void
void
void
void
void
void
void
void
void
void
getTasks()
void
void
void
void
void
void
void
static void
void
void
void
void
void
Ensure searches can be cancelled.void
Ensure workflow of searching works, from specifying the search to retrieving resultsvoid
Ensure exclusion of overlapping speech in search results works.void
Ensure searching with an invalid pattern correctly fails.void
Setter forfDir
: Directory for text files.void
void
-
Constructor Details
-
TestLabbcatView
public TestLabbcatView()
-
-
Method Details
-
createStore
public static void createStore() -
notVerbose
public void notVerbose() -
invalidCredentials
- Throws:
Exception
-
credentialsRequired
- Throws:
Exception
-
malformedURLException
- Throws:
Exception
-
nonLabbcatUrl
- Throws:
Exception
-
getId
- Throws:
Exception
-
getInfo
- Throws:
Exception
-
getLayerIds
- Throws:
Exception
-
getLayers
- Throws:
Exception
-
getCorpusIds
- Throws:
Exception
-
getParticipantIds
- Throws:
Exception
-
getTranscriptIds
- Throws:
Exception
-
countMatchingParticipantIds
- Throws:
Exception
-
getMatchingParticipantIds
- Throws:
Exception
-
getTranscriptIdsInCorpus
- Throws:
Exception
-
getTranscriptIdsWithParticipant
- Throws:
Exception
-
countMatchingTranscriptIds
- Throws:
Exception
-
getMatchingTranscriptIds
- Throws:
Exception
-
countAnnotations
- Throws:
Exception
-
getAnnotations
- Throws:
Exception
-
getAnchors
- Throws:
Exception
-
getSchema
- Throws:
Exception
-
getTranscript
- Throws:
Exception
-
getMedia
- Throws:
Exception
-
getMediaFragment
- Throws:
Exception
-
getLayer
- Throws:
Exception
-
getParticipant
- Throws:
Exception
-
getParticipantWithAttributes
- Throws:
Exception
-
getParticipantDoesntExist
- Throws:
Exception
-
countMatchingAnnotations
- Throws:
Exception
-
getMatchingAnnotations
- Throws:
Exception
-
aggregateMatchingAnnotations
Ensure that aggregateMatchingAnnotations works.- Throws:
Exception
-
getMediaTracks
- Throws:
Exception
-
getAvailableMedia
- Throws:
Exception
-
getEpisodeDocuments
- Throws:
Exception
-
getTaskInvalidNumericId
- Throws:
Exception
-
getTaskInvalidAlphaId
- Throws:
Exception
-
getTasks
- Throws:
Exception
-
taskStatus
- Throws:
Exception
-
waitForTask
- Throws:
Exception
-
searchInvalidPattern
Ensure searching with an invalid pattern correctly fails.- Throws:
Exception
-
searchAndCancelTask
Ensure searches can be cancelled.- Throws:
Exception
-
searchAndGetMatchesAndGetMatchAnnotations
Ensure workflow of searching works, from specifying the search to retrieving results- Throws:
Exception
-
searchExcludingOverlappingSpeech
Ensure exclusion of overlapping speech in search results works.- Throws:
Exception
-
getSoundFragments
- Throws:
Exception
-
getFragments
- Throws:
Exception
-
processWithPraat
- Throws:
Exception
-
getTranscriptAttributes
- Throws:
Exception
-
getParticipantAttributes
- Throws:
Exception
-
getSerializerDescriptors
- Throws:
Exception
-
getDeserializerDescriptors
- Throws:
Exception
-
getSystemAttribute
- Throws:
Exception
-
getUserInfo
- Throws:
Exception
-
getAnnotatorDescriptor
- Throws:
Exception
-
getDir
Getter forfDir
: Directory for text files.- Returns:
- Directory for text files.
-
setDir
Setter forfDir
: Directory for text files.- Parameters:
fNewDir
- Directory for text files.
-
main
-