Convert TestCompatConfig test to use test fixtures

As this test is the only test in the apex package to use the
platform_compat_config module type it does not make sense to include
that in all the tests so instead this converts the test to use fixtures
so it can easily customize it with the additional module type.

Bug: 181070625
Test: m nothing
Change-Id: I56fda772ee336db6cfb677143aa28b1a18911bff
This commit is contained in:
Paul Duffin 2021-03-09 03:08:05 +00:00
parent 4eb4b41cef
commit a369c7b50d
1 changed files with 4 additions and 1 deletions

View File

@ -5989,7 +5989,9 @@ func TestJavaSDKLibrary_ImportOnly(t *testing.T) {
}
func TestCompatConfig(t *testing.T) {
ctx := testApex(t, `
result := apexFixtureFactory.
Extend(java.PrepareForTestWithPlatformCompatConfig).
RunTestWithBp(t, `
apex {
name: "myapex",
key: "myapex.key",
@ -6017,6 +6019,7 @@ func TestCompatConfig(t *testing.T) {
apex_available: [ "myapex" ],
}
`)
ctx := result.TestContext
ensureExactContents(t, ctx, "myapex", "android_common_myapex_image", []string{
"etc/compatconfig/myjar-platform-compat-config.xml",
"javalib/myjar.jar",