summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2021-03-21 11:06:33 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-03-21 11:06:33 +0000
commitd5deba11267cdc6fd080656e214bf52f9cf1bfc8 (patch)
treec967969154ecea01601e8d4ae8ebe7bb77d73930 /java
parentf2be52c4dcc2e3d743318e106633e61de0ad2afd (diff)
parentce5a4547bb9ba57fb3f02f5e4113fa6d4d42286b (diff)
Merge "Java build components require android build components"
Diffstat (limited to 'java')
-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.