1/*
2 * Copyright (C) 2008 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.example.android.apis;
18
19import android.test.ApplicationTestCase;
20import android.test.suitebuilder.annotation.MediumTest;
21import android.test.suitebuilder.annotation.SmallTest;
22
23/**
24 * This is a simple framework for a test of an Application.  See
25 * {@link android.test.ApplicationTestCase ApplicationTestCase} for more information on
26 * how to write and extend Application tests.
27 *
28 * To run this test, you can type:
29 * adb shell am instrument -w \
30 *   -e class com.example.android.apis.ApiDemosApplicationTests \
31 *   com.example.android.apis.tests/android.test.InstrumentationTestRunner
32 */
33public class ApiDemosApplicationTests extends ApplicationTestCase<ApiDemosApplication> {
34
35    public ApiDemosApplicationTests() {
36        super(ApiDemosApplication.class);
37      }
38
39      @Override
40      protected void setUp() throws Exception {
41          super.setUp();
42      }
43
44      /**
45       * The name 'test preconditions' is a convention to signal that if this
46       * test doesn't pass, the test case was not set up properly and it might
47       * explain any and all failures in other tests.  This is not guaranteed
48       * to run before other tests, as junit uses reflection to find the tests.
49       */
50      @SmallTest
51      public void testPreconditions() {
52      }
53
54      /**
55       * Test basic startup/shutdown of Application
56       */
57      @MediumTest
58      public void testSimpleCreate() {
59          createApplication();
60      }
61
62}
63