@Test public final void infinispanNamedRemoteCacheFactoryBeanShouldDeclareItselfToBeSingleton() { final InfinispanNamedRemoteCacheFactoryBean<String, Object> objectUnderTest = new InfinispanNamedRemoteCacheFactoryBean<String, Object>(); assertTrue( "InfinispanNamedRemoteCacheFactoryBean should declare itself to produce a singleton. However, it didn't.", objectUnderTest.isSingleton()); }
@Override public boolean isSingleton() { return true; }
InfinispanNamedRemoteCacheFactoryBean implements FactoryBean<RemoteCache<K, V>>,
                                                                    BeanNameAware, InitializingBean { @Override public boolean isSingleton() { return true; } }
InfinispanNamedRemoteCacheFactoryBean implements FactoryBean<RemoteCache<K, V>>,
                                                                    BeanNameAware, InitializingBean { @Override public boolean isSingleton() { return true; }  }
InfinispanNamedRemoteCacheFactoryBean implements FactoryBean<RemoteCache<K, V>>,
                                                                    BeanNameAware, InitializingBean { @Override public boolean isSingleton() { return true; }  @Override void afterPropertiesSet(); @Override void setBeanName(final String name); @Override RemoteCache<K, V> getObject(); @Override Class<? extends ConcurrentMap> getObjectType(); @Override boolean isSingleton(); void setCacheName(final String cacheName); void setInfinispanRemoteCacheManager(final RemoteCacheManager infinispanRemoteCacheManager); }
InfinispanNamedRemoteCacheFactoryBean implements FactoryBean<RemoteCache<K, V>>,
                                                                    BeanNameAware, InitializingBean { @Override public boolean isSingleton() { return true; }  @Override void afterPropertiesSet(); @Override void setBeanName(final String name); @Override RemoteCache<K, V> getObject(); @Override Class<? extends ConcurrentMap> getObjectType(); @Override boolean isSingleton(); void setCacheName(final String cacheName); void setInfinispanRemoteCacheManager(final RemoteCacheManager infinispanRemoteCacheManager);  }