Revert "java_sdk_library: Add redirection to module-lib stubs" am: b71d7f8aac

Change-Id: I806c4513dfef9fe4b08fb81bc0dbd1c97c850782
This commit is contained in:
Remi NGUYEN VAN
2020-05-25 04:13:24 +00:00
committed by Automerger Merge Worker
2 changed files with 5 additions and 83 deletions

View File

@@ -1261,45 +1261,6 @@ func TestJavaSdkLibrary_SdkVersion_ForScope(t *testing.T) {
`)
}
func TestJavaSdkLibrary_MissingScope(t *testing.T) {
testJavaError(t, `requires api scope module-lib from foo but it only has \[\] available`, `
java_sdk_library {
name: "foo",
srcs: ["a.java"],
public: {
enabled: false,
},
}
java_library {
name: "baz",
srcs: ["a.java"],
libs: ["foo"],
sdk_version: "module_current",
}
`)
}
func TestJavaSdkLibrary_FallbackScope(t *testing.T) {
testJava(t, `
java_sdk_library {
name: "foo",
srcs: ["a.java"],
system: {
enabled: true,
},
}
java_library {
name: "baz",
srcs: ["a.java"],
libs: ["foo"],
// foo does not have module-lib scope so it should fallback to system
sdk_version: "module_current",
}
`)
}
var compilerFlagsTestCases = []struct {
in string
out bool