diff options
| author | 2021-03-11 15:10:54 +0000 | |
|---|---|---|
| committer | 2021-03-11 15:10:54 +0000 | |
| commit | 8075291a9444ae63e7db4493cfb9746419d6b14b (patch) | |
| tree | 27694c76ad74771bc7f3a7b7b494151959c30814 /java/java_test.go | |
| parent | f18ff339a9f467af1b8ac95caee38c31315fcbe0 (diff) | |
| parent | db284be91325477f2f4b0bf075c9a1e4bc713f8b (diff) | |
Merge "Separate system modules tests into their own file"
Diffstat (limited to 'java/java_test.go')
| -rw-r--r-- | java/java_test.go | 64 | 
1 files changed, 0 insertions, 64 deletions
| diff --git a/java/java_test.go b/java/java_test.go index e8c4a0f50..670eefc76 100644 --- a/java/java_test.go +++ b/java/java_test.go @@ -2434,70 +2434,6 @@ func TestPatchModule(t *testing.T) {  	})  } -func TestJavaSystemModules(t *testing.T) { -	ctx, _ := testJava(t, ` -		java_system_modules { -			name: "system-modules", -			libs: ["system-module1", "system-module2"], -		} -		java_library { -			name: "system-module1", -			srcs: ["a.java"], -			sdk_version: "none", -			system_modules: "none", -		} -		java_library { -			name: "system-module2", -			srcs: ["b.java"], -			sdk_version: "none", -			system_modules: "none", -		} -		`) - -	// check the existence of the module -	systemModules := ctx.ModuleForTests("system-modules", "android_common") - -	cmd := systemModules.Rule("jarsTosystemModules") - -	// make sure the command compiles against the supplied modules. -	for _, module := range []string{"system-module1.jar", "system-module2.jar"} { -		if !strings.Contains(cmd.Args["classpath"], module) { -			t.Errorf("system modules classpath %v does not contain %q", cmd.Args["classpath"], -				module) -		} -	} -} - -func TestJavaSystemModulesImport(t *testing.T) { -	ctx, _ := testJava(t, ` -		java_system_modules_import { -			name: "system-modules", -			libs: ["system-module1", "system-module2"], -		} -		java_import { -			name: "system-module1", -			jars: ["a.jar"], -		} -		java_import { -			name: "system-module2", -			jars: ["b.jar"], -		} -		`) - -	// check the existence of the module -	systemModules := ctx.ModuleForTests("system-modules", "android_common") - -	cmd := systemModules.Rule("jarsTosystemModules") - -	// make sure the command compiles against the supplied modules. -	for _, module := range []string{"system-module1.jar", "system-module2.jar"} { -		if !strings.Contains(cmd.Args["classpath"], module) { -			t.Errorf("system modules classpath %v does not contain %q", cmd.Args["classpath"], -				module) -		} -	} -} -  func TestJavaLibraryWithSystemModules(t *testing.T) {  	ctx, _ := testJava(t, `  		java_library { |