diff options
| author | 2023-06-30 09:36:42 +0000 | |
|---|---|---|
| committer | 2023-06-30 09:36:42 +0000 | |
| commit | 043893465c90ca9f63b435607294ce6c03a71467 (patch) | |
| tree | d715465b8d19af033e6c4c010503024fb7c7427c /java/java_test.go | |
| parent | 661b2ee7195affcb481bced0e88c4b87b2fd9478 (diff) | |
| parent | ca198c2639994fbc27925df04362a5fee44a23ad (diff) | |
Merge "Extract class files from dep_api_srcs instead of java files"
Diffstat (limited to 'java/java_test.go')
| -rw-r--r-- | java/java_test.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/java/java_test.go b/java/java_test.go index 561b187d0..473830464 100644 --- a/java/java_test.go +++ b/java/java_test.go @@ -2208,7 +2208,7 @@ func TestJavaApiLibraryStaticLibsLink(t *testing.T) { } } -func TestJavaApiLibraryDepApiSrcs(t *testing.T) { +func TestJavaApiLibraryFullApiSurfaceStub(t *testing.T) { provider_bp_a := ` java_api_contribution { name: "foo1", @@ -2234,7 +2234,7 @@ func TestJavaApiLibraryDepApiSrcs(t *testing.T) { name: "bar1", api_surface: "public", api_contributions: ["foo1"], - dep_api_srcs: "lib1", + full_api_surface_stub: "lib1", } `, map[string][]byte{ @@ -2247,9 +2247,7 @@ func TestJavaApiLibraryDepApiSrcs(t *testing.T) { manifest := m.Output("metalava.sbox.textproto") sboxProto := android.RuleBuilderSboxProtoForTests(t, manifest) manifestCommand := sboxProto.Commands[0].GetCommand() - - android.AssertStringDoesContain(t, "Command expected to contain module srcjar file", manifestCommand, "bar1-stubs.srcjar") - android.AssertStringDoesContain(t, "Command expected to contain output files list text file flag", manifestCommand, "--out __SBOX_SANDBOX_DIR__/out/sources.txt") + android.AssertStringDoesContain(t, "Command expected to contain full_api_surface_stub output jar", manifestCommand, "lib1.jar") } func TestJavaApiLibraryFilegroupInput(t *testing.T) { |