@Test public final void infinispanNamedEmbeddedCacheFactoryBeanShouldDeclareItselfToBeSingleton() { final InfinispanNamedEmbeddedCacheFactoryBean<Object, Object> objectUnderTest = new InfinispanNamedEmbeddedCacheFactoryBean<Object, Object>(); assertTrue( "InfinispanNamedEmbeddedCacheFactoryBean should declare itself to produce a singleton. However, it didn't.", objectUnderTest.isSingleton()); }
@Override public boolean isSingleton() { return true; }
InfinispanNamedEmbeddedCacheFactoryBean implements FactoryBean<Cache<K, V>>,
                                                                      BeanNameAware, InitializingBean, DisposableBean { @Override public boolean isSingleton() { return true; } }
InfinispanNamedEmbeddedCacheFactoryBean implements FactoryBean<Cache<K, V>>,
                                                                      BeanNameAware, InitializingBean, DisposableBean { @Override public boolean isSingleton() { return true; }  }
InfinispanNamedEmbeddedCacheFactoryBean implements FactoryBean<Cache<K, V>>,
                                                                      BeanNameAware, InitializingBean, DisposableBean { @Override public boolean isSingleton() { return true; }  @Override void afterPropertiesSet(); @Override Cache<K, V> getObject(); @Override Class<? extends Cache> getObjectType(); @Override boolean isSingleton(); @Override void setBeanName(final String name); @Override void destroy(); void setCacheName(final String cacheName); void setInfinispanEmbeddedCacheManager(
         final EmbeddedCacheManager infinispanEmbeddedCacheManager); void setConfigurationTemplateMode(final String configurationTemplateMode); void addCustomConfiguration(final ConfigurationBuilder builder); }
InfinispanNamedEmbeddedCacheFactoryBean implements FactoryBean<Cache<K, V>>,
                                                                      BeanNameAware, InitializingBean, DisposableBean { @Override public boolean isSingleton() { return true; }  @Override void afterPropertiesSet(); @Override Cache<K, V> getObject(); @Override Class<? extends Cache> getObjectType(); @Override boolean isSingleton(); @Override void setBeanName(final String name); @Override void destroy(); void setCacheName(final String cacheName); void setInfinispanEmbeddedCacheManager(
         final EmbeddedCacheManager infinispanEmbeddedCacheManager); void setConfigurationTemplateMode(final String configurationTemplateMode); void addCustomConfiguration(final ConfigurationBuilder builder);  }