All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.uphyca.testing.test.HelloInstrumentation Maven / Gradle / Ivy

There is a newer version: 0.5
Show newest version
package com.uphyca.testing.test;

import static org.junit.Assert.assertNotNull;

import org.junit.Test;

import com.uphyca.testing.AndroidJUnit4TestAdapter;
import com.uphyca.testing.InstrumentationTestCase;

public class HelloInstrumentation extends InstrumentationTestCase {

    /**
     * For Eclipse with ADT
     */
    public static junit.framework.Test suite() {
        //Should use AndroidJUnit4TestAdapter for to running AndroidDependent TestCases.
        return new AndroidJUnit4TestAdapter(HelloInstrumentation.class);
    }

    @Test
    public void testPreconditions() {
        assertNotNull(getInstrumentation());
        assertNotNull(getInstrumentation().getContext());
        assertNotNull(getInstrumentation().getTargetContext());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy