Fields Summary |
---|
private AndroidManifestParser | mManifestTestApp |
private AndroidManifestParser | mManifestInstrumentation |
private static final String | INSTRUMENTATION_XML |
private static final String | TESTAPP_XML |
private static final String | PACKAGE_NAME |
private static final String | ACTIVITY_NAME |
private static final String | LIBRARY_NAME |
private static final String | INSTRUMENTATION_NAME |
private static final String | INSTRUMENTATION_TARGET |
Methods Summary |
---|
protected void | setUp() //$NON-NLS-1$
super.setUp();
String testFilePath = AdtTestData.getInstance().getTestFilePath(
TESTAPP_XML);
mManifestTestApp = AndroidManifestParser.parseForData(testFilePath);
assertNotNull(mManifestTestApp);
testFilePath = AdtTestData.getInstance().getTestFilePath(
INSTRUMENTATION_XML);
mManifestInstrumentation = AndroidManifestParser.parseForData(testFilePath);
assertNotNull(mManifestInstrumentation);
|
public void | testGetActivities()
assertEquals(1, mManifestTestApp.getActivities().length);
assertEquals(ACTIVITY_NAME, mManifestTestApp.getActivities()[0]);
|
public void | testGetInstrumentationInformation()
assertEquals(1, mManifestInstrumentation.getInstrumentations().length);
assertEquals(INSTRUMENTATION_NAME,
mManifestInstrumentation.getInstrumentations()[0].getName());
assertEquals(INSTRUMENTATION_TARGET,
mManifestInstrumentation.getInstrumentations()[0].getTargetPackage());
|
public void | testGetLauncherActivity()
assertEquals(ACTIVITY_NAME, mManifestTestApp.getLauncherActivity());
|
public void | testGetPackage()
assertEquals(PACKAGE_NAME, mManifestTestApp.getPackage());
|
public void | testGetPackageName()
assertEquals(PACKAGE_NAME, mManifestTestApp.getPackage());
|
public void | testGetUsesLibraries()
assertEquals(1, mManifestTestApp.getUsesLibraries().length);
assertEquals(LIBRARY_NAME, mManifestTestApp.getUsesLibraries()[0]);
|