summaryrefslogtreecommitdiff
path: root/java/java_test.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2019-06-14 06:29:48 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2019-06-14 06:29:48 +0000
commitb11c72b0b8fb98f52ca9a64807954ef4ebef7da4 (patch)
tree4d8193bfde8214efda797af97448df36815da11a /java/java_test.go
parent60b393ce851f04eb749f8e1fc1d030c4991288ca (diff)
parent52d398a84197053a624c13a0bc1cfb78df996966 (diff)
Merge "Add sdk_version:"none" to replace no_standard_libs:true"
Diffstat (limited to 'java/java_test.go')
-rw-r--r--java/java_test.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/java/java_test.go b/java/java_test.go
index 4c8367bb9..cecc8dacd 100644
--- a/java/java_test.go
+++ b/java/java_test.go
@@ -842,6 +842,19 @@ func TestExcludeFileGroupInSrcs(t *testing.T) {
}
}
+func TestJavaLibrary(t *testing.T) {
+ config := testConfig(nil)
+ ctx := testContext(config, "", map[string][]byte{
+ "libcore/Android.bp": []byte(`
+ java_library {
+ name: "core",
+ sdk_version: "none",
+ system_modules: "none",
+ }`),
+ })
+ run(t, ctx, config)
+}
+
func TestJavaSdkLibrary(t *testing.T) {
ctx := testJava(t, `
droiddoc_template {