From e24e60ecacd956375a5cabdf9e67fefe7acabce0 Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Thu, 22 Jun 2017 14:48:58 +0100 Subject: 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 --- test-runner/src/android/test/TestCase.java | 47 ------------------------------ 1 file changed, 47 deletions(-) delete mode 100644 test-runner/src/android/test/TestCase.java (limited to 'test-runner/src') 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. - * - *

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. - * - *

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(); -} - -- cgit v1.2.3