summaryrefslogtreecommitdiffstats
path: root/vespajlib/src/test/java/com
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2021-07-14 18:25:24 +0200
committergjoranv <gv@verizonmedia.com>2021-07-14 18:25:24 +0200
commit00440f8296f94d3b5f0fbe4a2d79516bcf96aaed (patch)
treee615aaef9813fd15c9c2215a20b9e04de642441b /vespajlib/src/test/java/com
parenta9b25abb250d6d1f1145882017241c30a7fcb447 (diff)
Remove Jersey related tool from vespajlib.
- Bundle classpath mappings were only used to unit test Jersey resources in the application framework.
Diffstat (limited to 'vespajlib/src/test/java/com')
-rw-r--r--vespajlib/src/test/java/com/yahoo/osgi/maven/ProjectBundleClassPathsTest.java36
1 files changed, 0 insertions, 36 deletions
diff --git a/vespajlib/src/test/java/com/yahoo/osgi/maven/ProjectBundleClassPathsTest.java b/vespajlib/src/test/java/com/yahoo/osgi/maven/ProjectBundleClassPathsTest.java
deleted file mode 100644
index 44a6a2eee8d..00000000000
--- a/vespajlib/src/test/java/com/yahoo/osgi/maven/ProjectBundleClassPathsTest.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.osgi.maven;
-
-import com.yahoo.osgi.maven.ProjectBundleClassPaths.BundleClasspathMapping;
-import org.junit.Test;
-
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-
-import static java.util.Arrays.asList;
-import static org.junit.Assert.assertEquals;
-
-/**
- * @author bjorncs
- */
-public class ProjectBundleClassPathsTest {
-
- @Test
- public void bundle_classpaths_serializes_correctly_to_json() throws IOException {
- ProjectBundleClassPaths projectBundleClassPaths =
- new ProjectBundleClassPaths(
- new BundleClasspathMapping("main-bundle-name", asList("classpath-elem-0-1", "classpath-elem-0-2")),
- asList(
- new BundleClasspathMapping(
- "main-bundle-dep1",
- asList("classpath-elem-1-1", "classpath-elem-1-2")),
- new BundleClasspathMapping(
- "main-bundle-dep2",
- asList("classpath-elem-2-1", "classpath-elem-2-2"))));
- ByteArrayOutputStream out = new ByteArrayOutputStream();
- ProjectBundleClassPaths.save(out, projectBundleClassPaths);
- ProjectBundleClassPaths deserialized = ProjectBundleClassPaths.load(out.toByteArray());
- assertEquals(projectBundleClassPaths, deserialized);
- }
-
-}