alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Android example source code file (java_tests_file.template)

This example Android source code file (java_tests_file.template) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Android by Example" TM.

Java - Android tags/keywords

activity_class_name, activityinstrumentationtestcase2, android, package, test

The java_tests_file.template Android example source code

package PACKAGE;

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 ACTIVITY_FQ_NAME \
 * PACKAGE.tests/android.test.InstrumentationTestRunner
 */
public class ACTIVITY_CLASS_NAME extends ActivityInstrumentationTestCase2<ACTIVITY_TESTED_CLASS_NAME> {

    public ACTIVITY_CLASS_NAME() {
        super("PACKAGE", ACTIVITY_TESTED_CLASS_NAME.class);
    }

}

Other Android examples (source code examples)

Here is a short list of links related to this Android java_tests_file.template source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.