Package ubic.gemma.rest
Class AnalysisResultSetsWebServiceTest
- java.lang.Object
-
- org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
-
- ubic.gemma.core.util.test.BaseSpringContextTest
-
- ubic.gemma.rest.AnalysisResultSetsWebServiceTest
-
- All Implemented Interfaces:
Aware
,InitializingBean
,ApplicationContextAware
@ActiveProfiles("web") @WebAppConfiguration public class AnalysisResultSetsWebServiceTest extends ubic.gemma.core.util.test.BaseSpringContextTest
-
-
Field Summary
-
Fields inherited from class ubic.gemma.core.util.test.BaseSpringContextTest
externalDatabaseService, jdbcTemplate, log, persisterHelper, rule, taxonService, testHelper
-
Fields inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
applicationContext, logger
-
-
Constructor Summary
Constructors Constructor Description AnalysisResultSetsWebServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
void
tearDown()
void
testFindAllWhenDatabaseEntryDoesNotExistThenRaise404NotFound()
void
testFindAllWhenDatasetDoesNotExistThenRaise404NotFound()
void
testFindAllWhenNoDatasetsAreProvidedThenReturnLatestAnalysisResults()
void
testFindAllWithDatabaseEntriesThenReturnLatestAnalysisResults()
void
testFindAllWithDatasetIdsThenReturnLatestAnalysisResults()
void
testFindAllWithFilters()
void
testFindAllWithFiltersAndCollections()
void
testFindAllWithInvalidFilters()
void
testFindByIdThenReturn200Success()
void
testFindByIdToTsv()
void
testFindByIdWhenExcludeResultsThenReturn200Success()
void
testFindByIdWhenInvalidIdentifierThenThrowMalformedArgException()
void
testFindByIdWhenResultSetDoesNotExistsThenReturn404NotFoundError()
-
Methods inherited from class ubic.gemma.core.util.test.BaseSpringContextTest
addTestAnalyses, afterPropertiesSet, countRowsInTable, deleteFromTables, executeSqlScript, getNewTestPersistentCompleteExpressionExperiment, getTaxon, getTestNonPersistentBioSequence, getTestPersistentArrayDesign, getTestPersistentArrayDesign, getTestPersistentArrayDesign, getTestPersistentBasicExpressionExperiment, getTestPersistentBasicExpressionExperiment, getTestPersistentBibliographicReference, getTestPersistentBioAssay, getTestPersistentBioAssay, getTestPersistentBioMaterial, getTestPersistentBioMaterial, getTestPersistentBioSequence, getTestPersistentBioSequence, getTestPersistentBioSequence2GeneProducts, getTestPersistentBlatResult, getTestPersistentBlatResult, getTestPersistentCompleteExpressionExperiment, getTestPersistentCompleteExpressionExperimentWithSequences, getTestPersistentCompleteExpressionExperimentWithSequences, getTestPersistentContact, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentExpressionExperiment, getTestPersistentExpressionExperiment, getTestPersistentGene, getTestPersistentGene, getTestPersistentGeneProduct, getTestPersistentQuantitationType, randomName, resetTestCollectionSize, runAsAdmin, runAsAgent, runAsAnonymous, runAsUser, runAsUser, setPersisterHelper, setTaxonService, setTestCollectionSize, setUpAuthentication, setUpSecurityContextHolderStrategy, tearDownSecurityContext
-
Methods inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
setApplicationContext
-
-
-
-
Method Detail
-
tearDown
public void tearDown()
-
testFindAllWhenNoDatasetsAreProvidedThenReturnLatestAnalysisResults
public void testFindAllWhenNoDatasetsAreProvidedThenReturnLatestAnalysisResults()
-
testFindAllWithFilters
public void testFindAllWithFilters()
-
testFindAllWithFiltersAndCollections
public void testFindAllWithFiltersAndCollections()
-
testFindAllWithInvalidFilters
public void testFindAllWithInvalidFilters()
-
testFindAllWithDatasetIdsThenReturnLatestAnalysisResults
public void testFindAllWithDatasetIdsThenReturnLatestAnalysisResults()
-
testFindAllWhenDatasetDoesNotExistThenRaise404NotFound
public void testFindAllWhenDatasetDoesNotExistThenRaise404NotFound()
-
testFindAllWithDatabaseEntriesThenReturnLatestAnalysisResults
public void testFindAllWithDatabaseEntriesThenReturnLatestAnalysisResults()
-
testFindAllWhenDatabaseEntryDoesNotExistThenRaise404NotFound
public void testFindAllWhenDatabaseEntryDoesNotExistThenRaise404NotFound()
-
testFindByIdThenReturn200Success
public void testFindByIdThenReturn200Success()
-
testFindByIdWhenExcludeResultsThenReturn200Success
public void testFindByIdWhenExcludeResultsThenReturn200Success()
-
testFindByIdWhenInvalidIdentifierThenThrowMalformedArgException
public void testFindByIdWhenInvalidIdentifierThenThrowMalformedArgException()
-
testFindByIdWhenResultSetDoesNotExistsThenReturn404NotFoundError
public void testFindByIdWhenResultSetDoesNotExistsThenReturn404NotFoundError()
-
testFindByIdToTsv
public void testFindByIdToTsv() throws IOException
- Throws:
IOException
-
-