diff options
author | Paul Duffin <paulduffin@google.com> | 2021-03-30 23:34:32 +0100 |
---|---|---|
committer | Paul Duffin <paulduffin@google.com> | 2021-03-31 16:20:12 +0100 |
commit | 535e0a105e9feb84c4f44174beb0dfd8d89b361b (patch) | |
tree | f65f1f3daa4cdff76274fd47bab793a723a3c8d7 /java/java_test.go | |
parent | 5560712323aa072f7675a25881a24d42cee92a43 (diff) |
Remove unused java testing methods
Also, stops exporting methods that are no longer used outside the java
package.
Bug: 181070625
Test: m nothing
Change-Id: I23d35bbc21f82f2dae802aa53badda4c58b41024
Diffstat (limited to 'java/java_test.go')
-rw-r--r-- | java/java_test.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/java/java_test.go b/java/java_test.go index d1d26ba00..158eb8021 100644 --- a/java/java_test.go +++ b/java/java_test.go @@ -74,23 +74,6 @@ func testJavaError(t *testing.T, pattern string, bp string) (*android.TestContex return result.TestContext, result.Config } -// testJavaErrorWithConfig is a legacy way of running tests of java modules that expect errors. -// -// See testJava for an explanation as to how to stop using this deprecated method. -// -// deprecated -func testJavaErrorWithConfig(t *testing.T, pattern string, config android.Config) (*android.TestContext, android.Config) { - t.Helper() - // This must be done on the supplied config and not as part of the fixture because any changes to - // the fixture's config will be ignored when RunTestWithConfig replaces it. - pathCtx := android.PathContextForTesting(config) - dexpreopt.SetTestGlobalConfig(config, dexpreopt.GlobalConfigForTests(pathCtx)) - result := prepareForJavaTest. - ExtendWithErrorHandler(android.FixtureExpectsAtLeastOneErrorMatchingPattern(pattern)). - RunTestWithConfig(t, config) - return result.TestContext, result.Config -} - // testJavaWithFS runs tests using the prepareForJavaTest // // See testJava for an explanation as to how to stop using this deprecated method. |