summaryrefslogtreecommitdiff
path: root/java/java_test.go
diff options
context:
space:
mode:
author Remi NGUYEN VAN <reminv@google.com> 2020-05-25 01:56:44 +0000
committer Remi NGUYEN VAN <reminv@google.com> 2020-05-25 02:12:18 +0000
commitb71d7f8aace5c647e33400faa35f993e1b91bef6 (patch)
tree72da4cfc56a896bfd2e62784c5a74c4b76345008 /java/java_test.go
parent2ee93a5de958262fd1a2d1db08063acd2b0c3e03 (diff)
Revert "java_sdk_library: Add redirection to module-lib stubs"
This reverts commit fe82172afbaabb6467f48ac00895326895c33912. Reason for revert: Broke presubmit: b/157231582 Change-Id: Ifec2d2cf58d00ed320db65069a49290e31f8bda4
Diffstat (limited to 'java/java_test.go')
-rw-r--r--java/java_test.go39
1 files changed, 0 insertions, 39 deletions
diff --git a/java/java_test.go b/java/java_test.go
index b8abacb59..01ddccfc1 100644
--- a/java/java_test.go
+++ b/java/java_test.go
@@ -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