Package ubic.gemma.rest
Class SearchWebServiceTest
- java.lang.Object
-
- org.glassfish.jersey.test.JerseyTest
-
- ubic.gemma.rest.util.BaseJerseyTest
-
- ubic.gemma.rest.SearchWebServiceTest
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@ContextConfiguration public class SearchWebServiceTest extends BaseJerseyTest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSearchWebServiceTest.SearchWebServiceTestContextConfiguration
-
Constructor Summary
Constructors Constructor Description SearchWebServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidresetMocks()voidsetUpMocks()voidtestSearchByArrayDesign()voidtestSearchByTaxon()voidtestSearchEverything()voidtestSearchWhenQueryIsEmpty()voidtestSearchWhenQueryIsMissing()voidtestSearchWhenUnknownPlatformIsProvided()voidtestSearchWhenUnknownTaxonIsProvided()voidtestSearchWhenUnsupportedResultTypeIsProvided()voidtestSearchWithInvalidQuery()-
Methods inherited from class ubic.gemma.rest.util.BaseJerseyTest
configure, configureClient, getTestContainerFactory, setApplicationContext, setUp, tearDown
-
Methods inherited from class org.glassfish.jersey.test.JerseyTest
client, close, closeIfNotNull, configureDeployment, disable, enable, forceDisable, forceEnable, forceSet, getAsyncTimeoutMultiplier, getBaseUri, getClient, getLastLoggedRecord, getLoggedRecords, getPort, isEnabled, set, set, setClient, target, target
-
-
-
-
Method Detail
-
setUpMocks
public void setUpMocks()
-
resetMocks
public void resetMocks()
-
testSearchEverything
public void testSearchEverything() throws SearchException- Throws:
SearchException
-
testSearchByTaxon
public void testSearchByTaxon() throws SearchException- Throws:
SearchException
-
testSearchByArrayDesign
public void testSearchByArrayDesign() throws SearchException- Throws:
SearchException
-
testSearchWhenQueryIsMissing
public void testSearchWhenQueryIsMissing()
-
testSearchWhenQueryIsEmpty
public void testSearchWhenQueryIsEmpty()
-
testSearchWhenUnknownTaxonIsProvided
public void testSearchWhenUnknownTaxonIsProvided()
-
testSearchWhenUnknownPlatformIsProvided
public void testSearchWhenUnknownPlatformIsProvided()
-
testSearchWhenUnsupportedResultTypeIsProvided
public void testSearchWhenUnsupportedResultTypeIsProvided()
-
testSearchWithInvalidQuery
public void testSearchWithInvalidQuery() throws SearchException- Throws:
SearchException
-
-