Package ro.isdc.wro.manager

Examples of ro.isdc.wro.manager.WroManager$Builder


 
  @Test
  public void shouldReloadOnlyModelWhenClearModelIsInvoked()
      throws Exception {
    victim = new BaseWroManagerFactory().setModelFactory(mockModelFactory).setCacheStrategy(mockCacheStrategy);
    final WroManager manager = victim.create();
   
    manager.onModelPeriodChanged(0);
   
    Context.get().getConfig().reloadModel();
    verify(mockModelFactory, Mockito.times(1)).destroy();
    verify(mockCacheStrategy, Mockito.never()).clear();
  }
View Full Code Here


 
  @Test
  public void shouldReloadOnlyCacheWhenClearCacheIsInvoked()
      throws Exception {
    victim = new BaseWroManagerFactory().setModelFactory(mockModelFactory).setCacheStrategy(mockCacheStrategy);
    final WroManager manager = victim.create();
   
    manager.onCachePeriodChanged(0);
   
    Context.get().getConfig().reloadCache();
    verify(mockModelFactory, Mockito.never()).destroy();
    verify(mockCacheStrategy, Mockito.times(1)).clear();
  }
View Full Code Here

      final HttpServletResponse response) {
    try {
      Context.set(Context.webContext(request, response, wroConfig));
      // TODO: Add a cache for no-dev.
      Injector injector = InjectorBuilder.create(wroManagerFactory).build();
      WroManager manager = wroManagerFactory.create();
      WroModelFactory modelFactory = manager.getModelFactory();
      injector.inject(modelFactory);
      WroModel model = modelFactory.create();
      Map<String, Group> groups = new HashMap<String, Group>();
      for (Group group : model.getGroups()) {
        groups.put(group.getName(), group);
View Full Code Here

TOP

Related Classes of ro.isdc.wro.manager.WroManager$Builder

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.