diff options
author | Jiri Vanek <[email protected]> | 2013-11-25 10:16:42 +0100 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2013-11-25 10:16:42 +0100 |
commit | 18e9c2de7a762336e0b558f3007340d5eb2e9e44 (patch) | |
tree | cc477333b9508fa01100d1bab0469a0d6b5d7af3 /tests | |
parent | b8bf378b9b7887e273c4aa86aad85ecfd2f28b1f (diff) |
fix to ManifestedJar1Test cases
* netx/net/sourceforge/jnlp/ResourcesDesc.java: (getMainJAR) throw an RuntimeException when more then one main jar is specified. Preventing app to start.
* tests/reproducers/simple/ManifestedJar1/testcases/ManifestedJar1Test.java:(manifestedJar1main2mainNoAppDesc), (manifestedJar1nothing2nothingAppDesc)fixed and adapted to change.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/reproducers/simple/ManifestedJar1/testcases/ManifestedJar1Test.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/reproducers/simple/ManifestedJar1/testcases/ManifestedJar1Test.java b/tests/reproducers/simple/ManifestedJar1/testcases/ManifestedJar1Test.java index a2e0c0f..8b36dd9 100644 --- a/tests/reproducers/simple/ManifestedJar1/testcases/ManifestedJar1Test.java +++ b/tests/reproducers/simple/ManifestedJar1/testcases/ManifestedJar1Test.java @@ -155,14 +155,13 @@ public class ManifestedJar1Test { * * Two jars, both with manifest, sboth with main tag, no app desc * - * thisis passing, SUSPICIOUS, but to lunch at least something is better then to lunch nothing at all. - * althoug it maybe SHOULD throw twoMainException */ @Test public void manifestedJar1main2mainNoAppDesc() throws Exception { String id = "ManifestedJar-1main2mainNoAppDesc"; ProcessResult pr = server.executeJavawsHeadless(null, "/" + id + ".jnlp"); - assertManifestedJar1(id, pr); + assertNotManifestedJar1(id, pr); + assertNotManifestedJar2(id, pr); assertNotDead(id, pr); } @@ -210,7 +209,7 @@ public class ManifestedJar1Test { public void manifestedJar1nothing2nothingAppDesc() throws Exception { String id = "ManifestedJar-1nothing2nothingAppDesc"; ProcessResult pr = server.executeJavawsHeadless(null, "/" + id + ".jnlp"); - assertNotManifestedJar2(id, pr); + assertManifestedJar2(id, pr); assertNotManifestedJar1(id, pr); assertNotDead(id, pr); } |