Package nzilbb.labbcat.server.api
Class TestSearch
- java.lang.Object
-
- nzilbb.labbcat.server.api.TestSearch
-
public class TestSearch extends Object
These tests assume that there is a working LaBB-CAT instance with the latest version of nzilbb.labbcat.server.jar installed.
-
-
Constructor Summary
Constructors Constructor Description TestSearch()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)voidsearchAndCancelTask()Ensure searches can be cancelled.voidsearchAndGetMatchesAndGetMatchAnnotations()Ensure workflow of searching works, from specifying the search to retrieving resultsvoidsearchExcludingOverlappingSpeech()Ensure exclusion of overlapping speech in search results works.voidsearchInvalidPattern()Ensure searching with an invalid pattern correctly fails.voidsearchIPA()Ensure search for non-ASCII patterns, particularly IPA ones like "iː", work.static voidsetBaseUrl()
-
-
-
Method Detail
-
setBaseUrl
public static void setBaseUrl() throws MalformedURLException- Throws:
MalformedURLException
-
searchInvalidPattern
public void searchInvalidPattern() throws ExceptionEnsure searching with an invalid pattern correctly fails.- Throws:
Exception
-
searchAndCancelTask
public void searchAndCancelTask() throws ExceptionEnsure searches can be cancelled.- Throws:
Exception
-
searchAndGetMatchesAndGetMatchAnnotations
public void searchAndGetMatchesAndGetMatchAnnotations() throws ExceptionEnsure workflow of searching works, from specifying the search to retrieving results- Throws:
Exception
-
searchIPA
public void searchIPA() throws ExceptionEnsure search for non-ASCII patterns, particularly IPA ones like "iː", work.- Throws:
Exception
-
searchExcludingOverlappingSpeech
public void searchExcludingOverlappingSpeech() throws ExceptionEnsure exclusion of overlapping speech in search results works.- Throws:
Exception
-
main
public static void main(String[] args)
-
-