Package nzilbb.labbcat.server.content
Class TestFiles
- java.lang.Object
-
- nzilbb.labbcat.server.content.TestFiles
-
public class TestFiles extends Object
Test the files/... endpoints.These tests assume that there is a working LaBB-CAT instance with the latest version of nzilbb.labbcat.server.jar installed, and the first transcript (alphabetically) has at least one media file available.
-
-
Constructor Summary
Constructors Constructor Description TestFiles()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadminAccess()Ensure correct media is available to admin users.static voidgetUrlsSetupRestrictedUser()static voidmain(String[] args)static voidremoveRestrictedUser()voidrestrictedAccess()Ensure correct media is available to restricted users.
-
-
-
Method Detail
-
getUrlsSetupRestrictedUser
public static void getUrlsSetupRestrictedUser() throws MalformedURLException- Throws:
MalformedURLException
-
removeRestrictedUser
public static void removeRestrictedUser() throws MalformedURLException- Throws:
MalformedURLException
-
adminAccess
public void adminAccess() throws ExceptionEnsure correct media is available to admin users.- Throws:
Exception
-
restrictedAccess
public void restrictedAccess() throws ExceptionEnsure correct media is available to restricted users.- Throws:
Exception
-
main
public static void main(String[] args)
-
-