summaryrefslogtreecommitdiff
path: root/java/java_test.go
diff options
context:
space:
mode:
author Ulyana Trafimovich <skvadrik@google.com> 2020-08-20 10:37:58 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-08-20 10:37:58 +0000
commit9ce22217915c9fa3da6a23634e83f24705417cd1 (patch)
tree2983b8915783a61cae82c7d14a46b879684eb628 /java/java_test.go
parent2d815963ba597cce3b2401d405d0ed3a7beb5737 (diff)
parent31e444e101909ab48bd3ca71eb1d9c79519a3ebb (diff)
Merge "Collect paths to transitive SDK Java library dependencies."
Diffstat (limited to 'java/java_test.go')
-rw-r--r--java/java_test.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/java/java_test.go b/java/java_test.go
index 50c40c38c..0089545ca 100644
--- a/java/java_test.go
+++ b/java/java_test.go
@@ -20,7 +20,6 @@ import (
"path/filepath"
"reflect"
"regexp"
- "sort"
"strconv"
"strings"
"testing"
@@ -1496,8 +1495,7 @@ func TestJavaSdkLibrary(t *testing.T) {
// test if baz has exported SDK lib names foo and bar to qux
qux := ctx.ModuleForTests("qux", "android_common")
if quxLib, ok := qux.Module().(*Library); ok {
- sdkLibs := quxLib.ExportedSdkLibs()
- sort.Strings(sdkLibs)
+ sdkLibs := quxLib.ExportedSdkLibs().Names()
if w := []string{"bar", "foo", "fred", "quuz"}; !reflect.DeepEqual(w, sdkLibs) {
t.Errorf("qux should export %q but exports %q", w, sdkLibs)
}