summaryrefslogtreecommitdiff
path: root/java/testing.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2021-03-15 12:17:54 +0000
committer Paul Duffin <paulduffin@google.com> 2021-03-21 10:20:25 +0000
commitce5a4547bb9ba57fb3f02f5e4113fa6d4d42286b (patch)
treee121bb04bf681c0c2a57483c4e2a7d07af533134 /java/testing.go
parent0387862185da1306d85408c4cfa4aacb4093674e (diff)
Java build components require android build components
Java build components invariably require android build components such as the arch mutator (to create the common variant) so include them together. Bug: 181070625 Test: m nothing Change-Id: I435b09a34c48c67b890368b37b8da27e8de97c9a
Diffstat (limited to 'java/testing.go')
-rw-r--r--java/testing.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/java/testing.go b/java/testing.go
index 6fc3b0396..4b8b84924 100644
--- a/java/testing.go
+++ b/java/testing.go
@@ -39,12 +39,15 @@ const defaultJavaDir = "default/java"
// module types as possible. The exceptions are those module types that require mutators and/or
// singletons in order to function in which case they should be kept together in a separate
// preparer.
-var PrepareForTestWithJavaBuildComponents = android.FixtureRegisterWithContext(RegisterRequiredBuildComponentsForTest)
+var PrepareForTestWithJavaBuildComponents = android.GroupFixturePreparers(
+ // Make sure that mutators and module types, e.g. prebuilt mutators available.
+ android.PrepareForTestWithAndroidBuildComponents,
+ // Make java build components available to the test.
+ android.FixtureRegisterWithContext(RegisterRequiredBuildComponentsForTest),
+)
// Test fixture preparer that will define default java modules, e.g. standard prebuilt modules.
var PrepareForTestWithJavaDefaultModules = android.GroupFixturePreparers(
- // Make sure that mutators and module types, e.g. prebuilt mutators available.
- android.PrepareForTestWithAndroidBuildComponents,
// Make sure that all the module types used in the defaults are registered.
PrepareForTestWithJavaBuildComponents,
// The java default module definitions.