Package ubic.gemma.core.context
Class AsyncSingletonFactoryTest
- java.lang.Object
-
- org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
-
- ubic.gemma.core.context.AsyncSingletonFactoryTest
-
- All Implemented Interfaces:
Aware
,ApplicationContextAware
@DirtiesContext(classMode=AFTER_EACH_TEST_METHOD) @ContextConfiguration public class AsyncSingletonFactoryTest extends AbstractJUnit4SpringContextTests
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AsyncSingletonFactoryTest.MyService
static class
AsyncSingletonFactoryTest.MyServiceFactory
-
Field Summary
-
Fields inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
applicationContext, logger
-
-
Constructor Summary
Constructors Constructor Description AsyncSingletonFactoryTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testGetBean()
void
testGetBeanAndGetBeanAsync()
void
testGetBeanAsync()
void
testGetBeanAsyncThenCancel()
void
testGetBeanThenCancel()
-
Methods inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
setApplicationContext
-
-
-
-
Method Detail
-
testGetBeanAsync
public void testGetBeanAsync()
-
testGetBeanAndGetBeanAsync
public void testGetBeanAndGetBeanAsync() throws Exception
- Throws:
Exception
-
testGetBeanAsyncThenCancel
public void testGetBeanAsyncThenCancel()
-
testGetBean
public void testGetBean() throws ExecutionException, InterruptedException
-
-