to top
public class

TestJarInstaller

extends Object
implements ITargetPreparer ITargetCleaner
java.lang.Object
   ↳ com.android.tradefed.targetprep.TestJarInstaller

Class Overview

A ITargetPreparer that pushes all .jar files it finds in the IBuildInfo to device.

Summary

Fields
private boolean mUninstall @Option(name = "uninstall", description = "remove all jars after test completes.")
Public Constructors
TestJarInstaller()
Public Methods
void setUp(ITestDevice device, IBuildInfo buildInfo)
Perform the target setup for testing.
void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e)
Perform the target cleanup/teardown after testing.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.android.tradefed.targetprep.ITargetPreparer
From interface com.android.tradefed.targetprep.ITargetCleaner

Fields

private boolean mUninstall

Public Constructors

public TestJarInstaller ()

Public Methods

public void setUp (ITestDevice device, IBuildInfo buildInfo)

Perform the target setup for testing.

Parameters
device ITestDevice: the ITestDevice to prepare.
buildInfo IBuildInfo: data about the build under test.
Throws
TargetSetupError
BuildError
DeviceNotAvailableException

public void tearDown (ITestDevice device, IBuildInfo buildInfo, Throwable e)

Perform the target cleanup/teardown after testing.

Parameters
device ITestDevice: the ITestDevice to prepare.
buildInfo IBuildInfo: data about the build under test.
e Throwable: if the invocation ended with an exception, this will be the exception that was caught at the Invocation level. Otherwise, will be null.
Throws
DeviceNotAvailableException