summaryrefslogtreecommitdiff
path: root/test-runner/src
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2017-06-22 14:48:58 +0100
committerPaul Duffin <paulduffin@google.com>2017-06-22 15:21:11 +0100
commite24e60ecacd956375a5cabdf9e67fefe7acabce0 (patch)
tree0c6acb116f80662e2f72ac9e594c5a6dd1317474 /test-runner/src
parent2a637cf9b0f2c2ebaf573a1f478e31dc1e6a8354 (diff)
Remove a.t.TestCase
Part of the work of removing JUnit and dependent android.test classes from the Android API involves providing a static library that developers can include in their test applications to ease migration. That library will be built directly from the source (as opposed to android.jar which is built from stubs) and so developers will be able to see classes and methods that are not present in the stubs. This change is one of a number of similar changes that cleanup the existing non-API code in order to minimize the additional methods and classes exposed externally. The basic approach is to remove unused classes and methods, use least visible access modifier possible and generally minimize the amount of publicly visible code. The android.test.TestCase class is only referenced from the DatabasePerformanceTests class. There do not seem to be any references to that class either and there is a NewDatabasePerformanceTests.java file in the same directory that looks to be a JUnit based replacement. Bug: 30188076 Test: make checkbuild and ran FrameworkTestRunnerTests Change-Id: Iafb26dc98a40715244f07d1c9e05ada5b1602ebf
Diffstat (limited to 'test-runner/src')
-rw-r--r--test-runner/src/android/test/TestCase.java47
1 files changed, 0 insertions, 47 deletions
diff --git a/test-runner/src/android/test/TestCase.java b/test-runner/src/android/test/TestCase.java
deleted file mode 100644
index b234f441c5c2..000000000000
--- a/test-runner/src/android/test/TestCase.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright (C) 2006 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package android.test;
-
-import android.content.Context;
-
-/**
- * {@hide}
- * More complex interface for test cases.
- *
- * <p>Just implementing Runnable is enough for many test cases. If you
- * have additional setup or teardown, this interface might be for you,
- * especially if you need to share it between different test cases, or your
- * teardown code must execute regardless of whether your test passed.
- *
- * <p>See the android.test package documentation (click the more... link)
- * for a full description
- */
-@Deprecated
-public interface TestCase extends Runnable
-{
- /**
- * Called before run() is called.
- */
- public void setUp(Context context);
-
- /**
- * Called after run() is called, even if run() threw an exception, but
- * not if setUp() threw an execption.
- */
- public void tearDown();
-}
-