Package nzilbb.labbcat
Class TestLabbcatAdmin
java.lang.Object
nzilbb.labbcat.TestLabbcatAdmin
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
void
getDir()
Getter forfDir
: Directory for text files.void
void
void
static void
void
void
void
void
void
void
Test deprecated project CRUD operations.void
void
void
void
void
void
readEntries
(File csv) Reads a CSV file into a map of lists, and then deletes the file.void
void
void
Setter forfDir
: Directory for text files.void
-
Constructor Details
-
TestLabbcatAdmin
public TestLabbcatAdmin()
-
-
Method Details
-
createStore
public static void createStore() -
notVerbose
public void notVerbose() -
invalidCredentials
- Throws:
Exception
-
credentialsRequired
- Throws:
Exception
-
malformedURLException
- Throws:
Exception
-
nonLabbcatUrl
- Throws:
Exception
-
messageLocalization
- Throws:
Exception
-
inheritedLabbcatViewFunctions
- Throws:
Exception
-
newCorpusUpdateCorpusAndDeleteCorpus
- Throws:
Exception
-
newProjectUpdateProjectAndDeleteProject
Test deprecated project CRUD operations.- Throws:
Exception
- If an error occurs.
-
newCategoryUpdateCategoryAndDeleteCategory
- Throws:
Exception
-
newMediaTrackUpdateMediaTrackAndDeleteMediaTrack
- Throws:
Exception
-
newRoleUpdateRoleAndDeleteRole
- Throws:
Exception
-
newRolePermissionUpdateRolePermissionAndDeleteRolePermission
- Throws:
Exception
-
readSystemAttributeAndUpdateSystemAttribute
- Throws:
Exception
-
updateInfo
- Throws:
Exception
-
saveTranscriptTypeOptions
- Throws:
Exception
-
newSaveDeleteLayer
- Throws:
Exception
-
newUserUpdateUserDeleteUserAndChangePassword
- Throws:
Exception
-
layerDictionaryManagement
- Throws:
Exception
-
readEntries
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
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
-