@@ -0,0 +1,1117 @@
+package com.evgenii.aescrypto.test;%0A%0Aimport android.content.Intent;%0Aimport android.test.ActivityUnitTestCase;%0Aimport android.test.suitebuilder.annotation.MediumTest;%0Aimport android.widget.ImageButton;%0A%0Aimport com.evgenii.aescrypto.MainActivity;%0Aimport com.evgenii.aescrypto.R;%0A%0Apublic class OpenHelpFromMainTests extends ActivityUnitTestCase%3CMainActivity%3E %7B%0A%09public Intent mMainIntent;%0A%0A%09public OpenHelpFromMainTests() %7B%0A%09%09super(MainActivity.class);%0A%09%7D%0A%0A%09@Override%0A%09protected void setUp() throws Exception %7B%0A%09%09super.setUp();%0A%09%09mMainIntent = new Intent(getInstrumentation().getTargetContext(), MainActivity.class);%0A%09%7D%0A%0A%09@MediumTest%0A%09public void testHelpActivityWasLaunchedWithIntent() %7B%0A%09%09startActivity(mMainIntent, null, null);%0A%09%09final ImageButton openHelpButton = (ImageButton) getActivity().findViewById(%0A%09%09%09%09R.id.helpImageButton);%0A%09%09openHelpButton.performClick();%0A%0A%09%09final Intent launchIntent = getStartedActivityIntent();%0A%09%09assertNotNull(%22Intent was null%22, launchIntent);%0A%09%09assertEquals(%22com.evgenii.aescrypto.HelpActivity%22, launchIntent.getComponent()%0A%09%09%09%09.getClassName());%0A%09%09assertFalse(isFinishCalled());%0A%09%7D%0A%7D%0A

Test for opening help activity