Android Open Source - notes Main Activity Test

From Project

Back to project page notes.


The source code is released under:

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 Copyright (C) 2004 Sam Hocevar <> Everyone is permitted to copy and distribute verbatim or...

If you think the Android project notes listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.iliakplv.notes.gui.main;
/*from  w w w.  j  a  v  a  2s  .  com*/
import android.test.ActivityInstrumentationTestCase2;

 * This is a simple framework for a test of an Application.  See
 * {@link android.test.ApplicationTestCase ApplicationTestCase} for more information on
 * how to write and extend Application tests.
 * <p/>
 * To run this test, you can type:
 * adb shell am instrument -w \
 * -e class com.iliakplv.notes.gui.main.MainActivityTest \
 * com.iliakplv.notes.tests/android.test.InstrumentationTestRunner
public class MainActivityTest extends ActivityInstrumentationTestCase2<MainActivity> {

  MainActivity activity;

  public MainActivityTest() {

  protected void setUp() throws Exception {
    activity = getActivity();

  public void testActivity() {

Java Source Code List