summaryrefslogtreecommitdiff
path: root/java/test_spec_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'java/test_spec_test.go')
-rw-r--r--java/test_spec_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/java/test_spec_test.go b/java/test_spec_test.go
index 39aff4cef..7f06785b0 100644
--- a/java/test_spec_test.go
+++ b/java/test_spec_test.go
@@ -27,7 +27,7 @@ func TestTestSpec(t *testing.T) {
java_test {
name: "java-test-module-name-two",
}`
- result := runTest(t, android.FixtureExpectsNoErrors, bp)
+ result := runTestSpecTest(t, android.FixtureExpectsNoErrors, bp)
module := result.ModuleForTests(
"module-name", "",
@@ -78,7 +78,7 @@ func TestTestSpec(t *testing.T) {
if metadata != expectedMetadata {
t.Errorf(
- "Retrieved metadata: %s is not equal to expectedMetadata: %s", metadata,
+ "Retrieved metadata: %s doesn't contain expectedMetadata: %s", metadata,
expectedMetadata,
)
}
@@ -121,11 +121,11 @@ func TestTestSpec(t *testing.T) {
}
}
-func runTest(
- t *testing.T, errorHandler android.FixtureErrorHandler, bp string,
+func runTestSpecTest(
+ t *testing.T, errorHandler android.FixtureErrorHandler, bp string,
) *android.TestResult {
return android.GroupFixturePreparers(
- soongTesting.PrepareForTestWithTestSpecBuildComponents,
+ soongTesting.PrepareForTestWithTestingBuildComponents,
PrepareForIntegrationTestWithJava,
).
ExtendWithErrorHandler(errorHandler).