BundleMaker: test with empty file Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/5e30bd19 Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/5e30bd19 Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/5e30bd19
Branch: refs/heads/master Commit: 5e30bd19bfca8bc22f7f0fa8369103e410755638 Parents: c2f7cdc Author: Aled Sage <[email protected]> Authored: Mon Oct 2 14:49:26 2017 +0100 Committer: Aled Sage <[email protected]> Committed: Mon Oct 2 14:49:26 2017 +0100 ---------------------------------------------------------------------- .../org/apache/brooklyn/util/core/osgi/BundleMakerTest.java | 8 +++++++- .../core/osgi/test/bundlemaker/withmanifest/myemptyfile.txt | 0 2 files changed, 7 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/5e30bd19/core/src/test/java/org/apache/brooklyn/util/core/osgi/BundleMakerTest.java ---------------------------------------------------------------------- diff --git a/core/src/test/java/org/apache/brooklyn/util/core/osgi/BundleMakerTest.java b/core/src/test/java/org/apache/brooklyn/util/core/osgi/BundleMakerTest.java index f9c1737..2e905e9 100644 --- a/core/src/test/java/org/apache/brooklyn/util/core/osgi/BundleMakerTest.java +++ b/core/src/test/java/org/apache/brooklyn/util/core/osgi/BundleMakerTest.java @@ -209,7 +209,13 @@ public class BundleMakerTest extends BrooklynMgmtUnitTestSupport { "Manifest-Version: 1.2.3\r\n" + "mykey: myval\r\n" + "\r\n"; - assertJarContents(generatedJar, ImmutableMap.of(JarFile.MANIFEST_NAME, expectedManifest, "myfile.txt", "mytext", "subdir/myfile2.txt", "mytext2"), false); + assertJarContents(generatedJar, + ImmutableMap.of( + JarFile.MANIFEST_NAME, expectedManifest, + "myfile.txt", "mytext", + "myemptyfile.txt", "", + "subdir/myfile2.txt", "mytext2"), + false); } @SuppressWarnings("deprecation") http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/5e30bd19/core/src/test/resources/org/apache/brooklyn/util/core/osgi/test/bundlemaker/withmanifest/myemptyfile.txt ---------------------------------------------------------------------- diff --git a/core/src/test/resources/org/apache/brooklyn/util/core/osgi/test/bundlemaker/withmanifest/myemptyfile.txt b/core/src/test/resources/org/apache/brooklyn/util/core/osgi/test/bundlemaker/withmanifest/myemptyfile.txt new file mode 100644 index 0000000..e69de29
