Package ubic.gemma.persistence.service
Class AbstractServiceTest
- java.lang.Object
-
- org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
-
- org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests
-
- ubic.gemma.core.util.test.BaseDatabaseTest
-
- ubic.gemma.persistence.service.AbstractServiceTest
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@ContextConfiguration public class AbstractServiceTest extends BaseDatabaseTest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractServiceTest.ExceptionWithMessagestatic classAbstractServiceTest.ExceptionWithoutMessage-
Nested classes/interfaces inherited from class ubic.gemma.core.util.test.BaseDatabaseTest
BaseDatabaseTest.BaseDatabaseTestContextConfiguration
-
-
Field Summary
-
Fields inherited from class ubic.gemma.core.util.test.BaseDatabaseTest
aclService, sessionFactory
-
-
Constructor Summary
Constructors Constructor Description AbstractServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestEnsureInSession()voidtestEnsureInSessionPreserveInputOrder()voidtestEnsureInSessionReturnsOriginalCollectionIfAlreadyInSession()voidtestEnsureInSessionWhenSomeElementsAreNotInSessionOnlyLoadThoseElements()voidtestLoadOrFail()-
Methods inherited from class ubic.gemma.core.util.test.BaseDatabaseTest
flushAndClearSession
-
Methods inherited from class org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests
countRowsInTable, countRowsInTableWhere, deleteFromTables, dropTables, executeSqlScript, setDataSource, setSqlScriptEncoding
-
-
-
-
Method Detail
-
testLoadOrFail
public void testLoadOrFail()
-
testEnsureInSession
public void testEnsureInSession()
-
testEnsureInSessionReturnsOriginalCollectionIfAlreadyInSession
public void testEnsureInSessionReturnsOriginalCollectionIfAlreadyInSession()
-
testEnsureInSessionPreserveInputOrder
public void testEnsureInSessionPreserveInputOrder()
-
testEnsureInSessionWhenSomeElementsAreNotInSessionOnlyLoadThoseElements
public void testEnsureInSessionWhenSomeElementsAreNotInSessionOnlyLoadThoseElements()
-
-