Skip to content

Commit

Permalink
Fix for ScriptGenerationTests.testBug156043()
Browse files Browse the repository at this point in the history
Adopted test expectations

Fixes #884
  • Loading branch information
iloveeclipse committed Nov 12, 2023
1 parent 00017d0 commit af86173
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,7 @@ public void testBug156043() throws Exception {
Utils.storeBuildProperties(buildFolder, properties);
runBuild(buildFolder);

entries = new HashSet<>();
entries.add("plugins/P1_1.0.0/@dot.xml");
entries.add("plugins/P2_1.0.0/@dot.xml");
assertZipContents(f1, "F1_1.0.0.log.zip", entries);
Expand Down Expand Up @@ -1790,8 +1791,9 @@ public void testBug243582() throws Exception {
properties.put("generateSourceReferences", "true");
Utils.storeBuildProperties(buildFolder, properties);
runBuild(buildFolder);

String manifestFile = readEntryFromZip(buildFolder.getFile("tmp/eclipse/plugins/A_1.0.0.jar"), "META-INF/MANIFEST.MF");

String manifestFile = readEntryFromZip(buildFolder.getFile("tmp/eclipse/plugins/A_1.0.0.jar"),
"META-INF/MANIFEST.MF");
try (InputStream contents = new StringInputStream(manifestFile)) {
Manifest m = new Manifest(contents);
assertEquals(m.getMainAttributes().getValue(IPDEBuildConstants.ECLIPSE_SOURCE_REF), a_source);
Expand All @@ -1800,7 +1802,7 @@ public void testBug243582() throws Exception {
try (InputStream contents = new StringInputStream(manifestFile)) {
Manifest m = new Manifest(contents);
assertEquals(m.getMainAttributes().getValue(IPDEBuildConstants.ECLIPSE_SOURCE_REF),
"B's source,foo.bar;type:=\"mine\"");
"B's source,foo.bar;type:=\"mine\"");
}
manifestFile = readEntryFromZip(buildFolder.getFile("tmp/eclipse/plugins/C_1.0.0.jar"), "META-INF/MANIFEST.MF");
try (InputStream contents = new StringInputStream(manifestFile)) {
Expand Down

0 comments on commit af86173

Please sign in to comment.