Package nzilbb.labbcat
Class TestLabbcatEdit
java.lang.Object
nzilbb.labbcat.TestLabbcatEdit
Unit tests for LabbcatEdit.
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
void
Test failure of missing credentials.void
Test failure of deleting a transcript that doesn't exist.getDir()
Getter forfDir
: Directory for text files.void
Test general methods inherited fromLabbcatView
void
Test failure of invalid credentials.static void
void
Test failure of invalid URL.void
Test failure of non-LaBB-CAT URL.void
void
Test transcript attributes can be savedvoid
Setter forfDir
: Directory for text files.void
Test transcript upload, media upload, and transcript/participant deletion, specifically: newTranscript updateTranscript saveMedia saveEpisodeDocument deleteMedia getParticipant saveParticipant deleteTranscript deleteParticipantvoid
Test /api/edit/transcript/* API, specifically: transcriptUpload transcriptUploadParametersvoid
Test /api/edit/transcript/* API, specifically: transcriptUpload transcriptUploadDeletevoid
Test rejection of unauthorized requests.
-
Constructor Details
-
TestLabbcatEdit
public TestLabbcatEdit()
-
-
Method Details
-
createStore
public static void createStore() -
notVerbose
public void notVerbose() -
invalidCredentials
Test failure of invalid credentials.- Throws:
Exception
-
credentialsRequired
Test failure of missing credentials.- Throws:
Exception
-
malformedURLException
Test failure of invalid URL.- Throws:
Exception
-
nonLabbcatUrl
Test failure of non-LaBB-CAT URL.- Throws:
Exception
-
unauthorizedRequest
Test rejection of unauthorized requests.- Throws:
Exception
-
inheritedLabbcatViewFunctions
Test general methods inherited fromLabbcatView
- Throws:
Exception
-
deleteTranscriptNotExists
Test failure of deleting a transcript that doesn't exist.- Throws:
Exception
-
transcriptUploadDelete
Test /api/edit/transcript/* API, specifically:- transcriptUpload
- transcriptUploadDelete
- Throws:
Exception
-
transcriptUpload
Test /api/edit/transcript/* API, specifically:- transcriptUpload
- transcriptUploadParameters
- Throws:
Exception
-
transcriptParticipantAndMediaCRUD
Test transcript upload, media upload, and transcript/participant deletion, specifically:- newTranscript
- updateTranscript
- saveMedia
- saveEpisodeDocument
- deleteMedia
- getParticipant
- saveParticipant
- deleteTranscript
- deleteParticipant
- Throws:
Exception
-
saveTranscript
Test transcript attributes can be saved- 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
-