Fix TestJavaSdkLibrary... tests to work without javaMockFS()

Bug: 182638834
Test: m nothing
Change-Id: I140b88b3fdf2c532d266a196fee84675c518d859
This commit is contained in:
Paul Duffin
2021-03-12 19:18:49 +00:00
parent 22b77cd538
commit 163043d615
2 changed files with 62 additions and 13 deletions

View File

@@ -135,7 +135,10 @@ func TestHostdexSpecificRequired(t *testing.T) {
}
func TestJavaSdkLibrary_RequireXmlPermissionFile(t *testing.T) {
result := javaFixtureFactory.RunTestWithBp(t, `
result := javaFixtureFactory.Extend(
PrepareForTestWithJavaSdkLibraryFiles,
FixtureWithLastReleaseApis("foo-shared_library", "foo-no_shared_library"),
).RunTestWithBp(t, `
java_sdk_library {
name: "foo-shared_library",
srcs: ["a.java"],