Package org.apache.sling.installer.core.impl.tasks

Examples of org.apache.sling.installer.core.impl.tasks.RefreshBundlesTask$AsyncRefreshBundlesTask


    int testIndex = 1;
    final InstallTask [] tasksInOrder = {
        new BundleRemoveTask(getRegisteredResource("test:url"), null),
            new BundleInstallTask(getRegisteredResource("test:url"), null),
        new BundleUpdateTask(getRegisteredResource("test:url"), null),
            new RefreshBundlesTask(null),
      new BundleStartTask(null, 0, null)
    };

    taskSet.clear();
    taskSet.add(tasksInOrder[4]);
View Full Code Here


  public void testMultipleConfigAndBundles() throws Exception {
    int testIndex = 1;
    final InstallTask [] tasksInOrder = {
      new BundleInstallTask(getRegisteredResource("test:someURIa.nothing"), null),
            new BundleInstallTask(getRegisteredResource("test:someURIb.nothing"), null),
            new RefreshBundlesTask(null),
      new BundleStartTask(null, 0, null)
    };

    taskSet.clear();
    for(int i = tasksInOrder.length -1 ; i >= 0; i--) {
View Full Code Here

  @org.junit.Test
  public void testMultipleRefreshAndStart() throws Exception {
    int testIndex = 1;
    final InstallTask [] tasksInOrder = {
        new BundleRemoveTask(getRegisteredResource("test:url"), null),
            new RefreshBundlesTask(null),
      new BundleStartTask(null, 0, null),
      new BundleStartTask(null, 1, null)
    };

    taskSet.clear();
    taskSet.add(tasksInOrder[3]);
    taskSet.add(tasksInOrder[3]);
    taskSet.add(new RefreshBundlesTask(null));
    taskSet.add(tasksInOrder[2]);
    taskSet.add(tasksInOrder[2]);
    taskSet.add(tasksInOrder[1]);
    taskSet.add(new RefreshBundlesTask(null));
    taskSet.add(new RefreshBundlesTask(null));
    taskSet.add(tasksInOrder[0]);
    taskSet.add(tasksInOrder[3]);
    taskSet.add(new RefreshBundlesTask(null));
    taskSet.add(tasksInOrder[3]);
    taskSet.add(tasksInOrder[2]);
    taskSet.add(new RefreshBundlesTask(null));
    taskSet.add(tasksInOrder[2]);
    taskSet.add(tasksInOrder[1]);
    taskSet.add(new RefreshBundlesTask(null));
    taskSet.add(tasksInOrder[1]);
    taskSet.add(new RefreshBundlesTask(null));

    assertOrder(testIndex++, taskSet, tasksInOrder);
  }
View Full Code Here

TOP

Related Classes of org.apache.sling.installer.core.impl.tasks.RefreshBundlesTask$AsyncRefreshBundlesTask

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.