diff options
| author | 2023-01-26 23:54:14 +0000 | |
|---|---|---|
| committer | 2023-01-26 23:54:14 +0000 | |
| commit | b6690d21aefe9926c1172b296e9bc9665295d465 (patch) | |
| tree | 0dceb3fbdaf1f91cc5fe1856db2a1bb181666b92 /java/java_test.go | |
| parent | 8562855d2ae7e278ee141f9c2fccff3bc1f13c73 (diff) | |
| parent | 3198f3cb52c07addf3953edae1a826947b0714eb (diff) | |
Merge "Generate java_api_contribution module from droidstubs module"
Diffstat (limited to 'java/java_test.go')
| -rw-r--r-- | java/java_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/java/java_test.go b/java/java_test.go index ae77842a5..04a112c0a 100644 --- a/java/java_test.go +++ b/java/java_test.go @@ -1840,6 +1840,20 @@ func TestDeviceBinaryWrapperGeneration(t *testing.T) { }`) } +func TestJavaApiContributionEmptyApiFile(t *testing.T) { + testJavaError(t, + "Error: foo has an empty api file.", + `java_api_contribution { + name: "foo", + } + java_api_library { + name: "bar", + api_surface: "public", + api_contributions: ["foo"], + } + `) +} + func TestJavaApiLibraryAndProviderLink(t *testing.T) { provider_bp_a := ` java_api_contribution { |