Package ro.isdc.wro.manager.callback

Examples of ro.isdc.wro.manager.callback.LifecycleCallback


  }
 
  @Test
  public void shouldSetCallback()
      throws Exception {
    final LifecycleCallback callback = Mockito.spy(new LifecycleCallbackSupport());
    victim = new BaseWroManagerFactory().setModelFactory(WroUtil.factoryFor(new WroModel()));
    final WroManager manager = victim.create();
    InjectorBuilder.create(victim).build().inject(manager);
   
    manager.registerCallback(new ObjectFactory<LifecycleCallback>() {
View Full Code Here


    Assert.assertNotNull(cacheStrategy.get(new CacheKey("g3", ResourceType.CSS, true)));
  }

  @Test
  public void shouldRegisterCallback() {
    final LifecycleCallback mockCallback = Mockito.mock(LifecycleCallback.class);
    victim.registerCallback(new ObjectFactory<LifecycleCallback>() {
      public LifecycleCallback create() {
        return mockCallback;
      }
    });
View Full Code Here

TOP

Related Classes of ro.isdc.wro.manager.callback.LifecycleCallback

Copyright © 2018 www.massapicom. 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.