org.apache.sling.testing.tools.sling
Class BundlesInstaller
java.lang.Object
org.apache.sling.testing.tools.sling.BundlesInstaller
public class BundlesInstaller
- extends Object
Utility that installs and starts additional bundles for testing
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ACTIVE_STATE
public static final String ACTIVE_STATE
- See Also:
- Constant Field Values
BundlesInstaller
public BundlesInstaller(WebconsoleClient wcc)
isInstalled
public boolean isInstalled(File bundleFile)
throws Exception
- Throws:
Exception
isInstalledWithSameVersion
public boolean isInstalledWithSameVersion(File bundleFile)
throws Exception
- Check if the installed version matches the one of the bundle (file)
- Throws:
Exception
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
getBundleVersion
public String getBundleVersion(File bundleFile)
throws IOException
- Throws:
IOException
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.