Package nzilbb.labbcat
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 Summary
Constructors Constructor Description TestLabbcatAdmin()
-
Method Summary
-
-
-
Method Detail
-
createStore
public static void createStore()
-
notVerbose
public void notVerbose()
-
inheritedLabbcatViewFunctions
public void inheritedLabbcatViewFunctions() throws Exception- Throws:
Exception
-
newCorpusUpdateCorpusAndDeleteCorpus
public void newCorpusUpdateCorpusAndDeleteCorpus() throws Exception- Throws:
Exception
-
newProjectUpdateProjectAndDeleteProject
public void newProjectUpdateProjectAndDeleteProject() throws ExceptionTest 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
-
saveTranscriptTypeOptions
public void saveTranscriptTypeOptions() 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 forfDir: Directory for text files.- Returns:
- Directory for text files.
-
setDir
public void setDir(File fNewDir)
Setter forfDir: Directory for text files.- Parameters:
fNewDir- Directory for text files.
-
main
public static void main(String[] args)
-
-