diff options
Diffstat (limited to 'apex/classpath_element_test.go')
-rw-r--r-- | apex/classpath_element_test.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/apex/classpath_element_test.go b/apex/classpath_element_test.go index e2d846559..60f18bd57 100644 --- a/apex/classpath_element_test.go +++ b/apex/classpath_element_test.go @@ -159,11 +159,6 @@ func TestCreateClasspathElements(t *testing.T) { ], } - bootclasspath_fragment { - name: "non-apex-fragment", - contents: ["othersdklibrary"], - } - apex { name: "otherapex", key: "otherapex.key", @@ -213,7 +208,6 @@ func TestCreateClasspathElements(t *testing.T) { myFragment := result.Module("mybootclasspath-fragment", "android_common_apex10000") myBar := result.Module("bar", "android_common_apex10000") - nonApexFragment := result.Module("non-apex-fragment", "android_common") other := result.Module("othersdklibrary", "android_common_apex10000") otherApexLibrary := result.Module("otherapexlibrary", "android_common_apex10000") @@ -253,15 +247,6 @@ func TestCreateClasspathElements(t *testing.T) { assertElementsEquals(t, "elements", expectedElements, elements) }) - // Verify that CreateClasspathElements detects when a fragment does not have an associated apex. - t.Run("non apex fragment", func(t *testing.T) { - ctx := newCtx() - elements := java.CreateClasspathElements(ctx, []android.Module{}, []android.Module{nonApexFragment}) - android.FailIfNoMatchingErrors(t, "fragment non-apex-fragment{.*} is not part of an apex", ctx.errs) - expectedElements := java.ClasspathElements{} - assertElementsEquals(t, "elements", expectedElements, elements) - }) - // Verify that CreateClasspathElements detects when an apex has multiple fragments. t.Run("multiple fragments for same apex", func(t *testing.T) { ctx := newCtx() |