org.apache.sling.testing.tools.sling
Class BundlesInstaller

java.lang.Object
  extended by org.apache.sling.testing.tools.sling.BundlesInstaller

public class BundlesInstaller
extends Object

Utility that installs and starts additional bundles for testing


Field Summary
static String ACTIVE_STATE
           
 
Constructor Summary
BundlesInstaller(WebconsoleClient wcc)
           
 
Method Summary
 String getBundleSymbolicName(File bundleFile)
           
 void installBundles(List<File> toInstall, boolean startBundles)
          Install a list of bundles supplied as Files
 void startAllBundles(List<String> symbolicNames, int timeoutSeconds)
           
 void waitForBundlesInstalled(List<String> symbolicNames, int timeoutSeconds)
          Wait for all bundles specified in symbolicNames list to be installed in the remote web console.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTIVE_STATE

public static final String ACTIVE_STATE
See Also:
Constant Field Values
Constructor Detail

BundlesInstaller

public BundlesInstaller(WebconsoleClient wcc)
Method Detail

installBundles

public void installBundles(List<File> toInstall,
                           boolean startBundles)
                    throws Exception
Install a list of bundles supplied as Files

Throws:
Exception

waitForBundlesInstalled

public void waitForBundlesInstalled(List<String> symbolicNames,
                                    int timeoutSeconds)
                             throws Exception
Wait for all bundles specified in symbolicNames list to be installed in the remote web console.

Throws:
Exception

startAllBundles

public void startAllBundles(List<String> symbolicNames,
                            int timeoutSeconds)
                     throws Exception
Throws:
Exception

getBundleSymbolicName

public String getBundleSymbolicName(File bundleFile)
                             throws IOException
Throws:
IOException


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.