Examples of UsingCacheComponent


Examples of br.com.caelum.cdi.component.UsingCacheComponent

    contexts.stopApplicationScope();
  }

  @Test
  public void shouldCreateComponentsWithCache(){
    UsingCacheComponent component = cdiBasedContainer.instanceFor(UsingCacheComponent.class);
    component.putWithLRU("test","test");
    component.putWithDefault("test2","test2");
    assertEquals(component.putWithLRU("test","test"),"test");
    assertEquals(component.putWithDefault("test2","test2"),"test2");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.