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 void
main(String[] args)
void
searchAndCancelTask()
Ensure searches can be cancelled.void
searchAndGetMatchesAndGetMatchAnnotations()
Ensure workflow of searching works, from specifying the search to retrieving resultsvoid
searchExcludingOverlappingSpeech()
Ensure exclusion of overlapping speech in search results works.void
searchInvalidPattern()
Ensure searching with an invalid pattern correctly fails.void
searchIPA()
Ensure search for non-ASCII patterns, particularly IPA ones like "iː", work.static void
setBaseUrl()
-
-
-
Method Detail
-
setBaseUrl
public static void setBaseUrl() throws MalformedURLException
- Throws:
MalformedURLException
-
searchInvalidPattern
public void searchInvalidPattern() throws Exception
Ensure searching with an invalid pattern correctly fails.- Throws:
Exception
-
searchAndCancelTask
public void searchAndCancelTask() throws Exception
Ensure searches can be cancelled.- Throws:
Exception
-
searchAndGetMatchesAndGetMatchAnnotations
public void searchAndGetMatchesAndGetMatchAnnotations() throws Exception
Ensure workflow of searching works, from specifying the search to retrieving results- Throws:
Exception
-
searchIPA
public void searchIPA() throws Exception
Ensure search for non-ASCII patterns, particularly IPA ones like "iː", work.- Throws:
Exception
-
searchExcludingOverlappingSpeech
public void searchExcludingOverlappingSpeech() throws Exception
Ensure exclusion of overlapping speech in search results works.- Throws:
Exception
-
main
public static void main(String[] args)
-
-