@@ -0,0 +1,2686 @@
+package com.automatic.android.tests;%0A%0A/*%0A * Copyright (C) 2013 The Android Open Source Project%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Aimport com.automatic.android.activities.MainActivity;%0A%0Aimport android.test.ActivityInstrumentationTestCase2;%0Aimport android.widget.TextView;%0A%0A/**%0A * Tests for MyFirstTestActivity.%0A */%0Apublic class MainActivityTest extends ActivityInstrumentationTestCase2%3CMainActivity%3E %7B%0A%0A    private MainActivity mFirstTestActivity;%0A    private TextView mFirstTestText;%0A%0A    public MainActivityTest() %7B%0A        super(MainActivity.class);%0A    %7D%0A%0A    @Override%0A    protected void setUp() throws Exception %7B%0A        super.setUp();%0A%0A        // Starts the activity under test using the default Intent with:%0A        // action = %7B@link Intent#ACTION_MAIN%7D%0A        // flags = %7B@link Intent#FLAG_ACTIVITY_NEW_TASK%7D%0A        // All other fields are null or empty.%0A        mFirstTestActivity = getActivity();%0A       // mFirstTestText = (TextView) mFirstTestActivity.findViewById(R.id.my_first_test_text_view);%0A    %7D%0A%0A    /**%0A     * Test if your test fixture has been set up correctly. You should always implement a test that%0A     * checks the correct setup of your test fixture. If this tests fails all other tests are%0A     * likely to fail as well.%0A     */%0A    public void testPreconditions() %7B%0A        //Try to add a message to add context to your assertions. These messages will be shown if%0A        //a tests fails and make it easy to understand why a test failed%0A//        assertNotNull(%22mFirstTestActivity is null%22, mFirstTestActivity);%0A//        assertNotNull(%22mFirstTestText is null%22, mFirstTestText);%0A    %09assertTrue(false);%0A    %7D%0A%0A    /**%0A     * Tests the correctness of the initial text.%0A     */%0A//    public void testMyFirstTestTextView_labelText() %7B%0A//        //It is good practice to read the string from your resources in order to not break%0A//        //multiple tests when a string changes.%0A//        //final String expected = mFirstTestActivity.getString(R.string.my_first_test);%0A//        //final String actual = mFirstTestText.getText().toString();%0A//        assertEquals(%22mFirstTestText contains wrong text%22, expected, actual);%0A//    %7D%0A%7D

add tests