Merge "Turn on DepAnn for test-base and test-runner"
This commit is contained in:
@@ -24,6 +24,10 @@ java_library {
|
|||||||
|
|
||||||
srcs: ["src/**/*.java"],
|
srcs: ["src/**/*.java"],
|
||||||
|
|
||||||
|
errorprone: {
|
||||||
|
javacflags: ["-Xep:DepAnn:ERROR"],
|
||||||
|
},
|
||||||
|
|
||||||
// Needs to be consistent with the repackaged version of this make target.
|
// Needs to be consistent with the repackaged version of this make target.
|
||||||
java_version: "1.8",
|
java_version: "1.8",
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,11 @@ package android.test;
|
|||||||
*
|
*
|
||||||
* If you want your test to be used as a performance test, you must
|
* If you want your test to be used as a performance test, you must
|
||||||
* implement this interface.
|
* implement this interface.
|
||||||
|
*
|
||||||
|
* @deprecated Use
|
||||||
|
* <a href="{@docRoot}reference/android/support/test/runner/AndroidJUnitRunner.html">
|
||||||
|
* AndroidJUnitRunner</a> instead. New tests should be written using the
|
||||||
|
* <a href="{@docRoot}tools/testing-support-library/index.html">Android Testing Support Library</a>.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public interface PerformanceTestCase
|
public interface PerformanceTestCase
|
||||||
|
|||||||
@@ -23,6 +23,10 @@ java_library {
|
|||||||
java_version: "1.8",
|
java_version: "1.8",
|
||||||
srcs: ["src/**/*.java"],
|
srcs: ["src/**/*.java"],
|
||||||
|
|
||||||
|
errorprone: {
|
||||||
|
javacflags: ["-Xep:DepAnn:ERROR"],
|
||||||
|
},
|
||||||
|
|
||||||
no_framework_libs: true,
|
no_framework_libs: true,
|
||||||
libs: [
|
libs: [
|
||||||
"framework",
|
"framework",
|
||||||
|
|||||||
@@ -19,8 +19,9 @@ package android.test;
|
|||||||
/**
|
/**
|
||||||
* Thrown when an assert equals for Strings failed.
|
* Thrown when an assert equals for Strings failed.
|
||||||
*
|
*
|
||||||
* @deprecated use junit.framework.ComparisonFailure
|
* @deprecated use org.junit.ComparisonFailure
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public class ComparisonFailure extends AssertionFailedError {
|
public class ComparisonFailure extends AssertionFailedError {
|
||||||
private junit.framework.ComparisonFailure mComparison;
|
private junit.framework.ComparisonFailure mComparison;
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,11 @@ import junit.framework.TestSuite;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementors will know how to get a test suite.
|
* Implementors will know how to get a test suite.
|
||||||
|
*
|
||||||
|
* @deprecated Use
|
||||||
|
* <a href="{@docRoot}reference/android/support/test/runner/AndroidJUnitRunner.html">
|
||||||
|
* AndroidJUnitRunner</a> instead. New tests should be written using the
|
||||||
|
* <a href="{@docRoot}tools/testing-support-library/index.html">Android Testing Support Library</a>.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public interface TestSuiteProvider {
|
public interface TestSuiteProvider {
|
||||||
|
|||||||
@@ -207,6 +207,7 @@ public abstract class BaseTestRunner implements TestListener {
|
|||||||
*
|
*
|
||||||
* @deprecated not present in JUnit4.10
|
* @deprecated not present in JUnit4.10
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public TestSuiteLoader getLoader() {
|
public TestSuiteLoader getLoader() {
|
||||||
return new StandardTestSuiteLoader();
|
return new StandardTestSuiteLoader();
|
||||||
}
|
}
|
||||||
@@ -279,6 +280,7 @@ public abstract class BaseTestRunner implements TestListener {
|
|||||||
|
|
||||||
// BEGIN android-changed - add back this method for API compatibility
|
// BEGIN android-changed - add back this method for API compatibility
|
||||||
/** @deprecated not present in JUnit4.10 */
|
/** @deprecated not present in JUnit4.10 */
|
||||||
|
@Deprecated
|
||||||
public static boolean inVAJava() {
|
public static boolean inVAJava() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user