コード例 #1
0
 @Test
 public void testWithNamespace() throws Exception {
   factoryBean.setNamespace("myNamespace");
   factoryBean.afterPropertiesSet();
   SearchService searchService = factoryBean.getObject();
   assertEquals("myNamespace", searchService.getNamespace());
 }
コード例 #2
0
 @Test
 public void testIsPrototype() {
   assertFalse(factoryBean.isSingleton());
 }
コード例 #3
0
 @Test
 public void testTypeIsSearchService() {
   assertTrue(factoryBean.getObjectType().isAssignableFrom(SearchService.class));
 }