/hg/icedtea-web: Added more asserts to MixedSigningAndTrustedOnl...

jvanek at icedtea.classpath.org jvanek at icedtea.classpath.org
Thu Jul 30 16:51:12 UTC 2015


changeset bbab18a43972 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=bbab18a43972
author: Jiri Vanek <jvanek at redhat.com>
date: Thu Jul 30 18:51:00 2015 +0200

	Added more asserts to MixedSigningAndTrustedOnly tests

	* tests/reproducers/custom/MixedSigningAndTrustedOnly/testcases/MixedSigningAndTrustedOnlyBS1.java
	* tests/reproducers/custom/MixedSigningAndTrustedOnly/testcases/MixedSigningAndTrustedOnlyBSmanifest.java


diffstat:

 ChangeLog                                                                                               |  6 ++++++
 tests/reproducers/custom/MixedSigningAndTrustedOnly/testcases/MixedSigningAndTrustedOnlyBS1.java        |  7 +++++++
 tests/reproducers/custom/MixedSigningAndTrustedOnly/testcases/MixedSigningAndTrustedOnlyBSmanifest.java |  9 ++++++++-
 3 files changed, 21 insertions(+), 1 deletions(-)

diffs (133 lines):

diff -r efb1342a55aa -r bbab18a43972 ChangeLog
--- a/ChangeLog	Thu Jul 30 12:39:58 2015 -0400
+++ b/ChangeLog	Thu Jul 30 18:51:00 2015 +0200
@@ -1,3 +1,9 @@
+2015-07-30  Jiri Vanek  <jvanek at redhat.com>
+
+	Added more asserts to MixedSigningAndTrustedOnly tests
+	* tests/reproducers/custom/MixedSigningAndTrustedOnly/testcases/MixedSigningAndTrustedOnlyBS1.java
+	* tests/reproducers/custom/MixedSigningAndTrustedOnly/testcases/MixedSigningAndTrustedOnlyBSmanifest.java
+
 2015-07-30  Andrew Azores  <aazores at redhat.com>
 
 	Add -defaultfile switch to PolicyEditor
diff -r efb1342a55aa -r bbab18a43972 tests/reproducers/custom/MixedSigningAndTrustedOnly/testcases/MixedSigningAndTrustedOnlyBS1.java
--- a/tests/reproducers/custom/MixedSigningAndTrustedOnly/testcases/MixedSigningAndTrustedOnlyBS1.java	Thu Jul 30 12:39:58 2015 -0400
+++ b/tests/reproducers/custom/MixedSigningAndTrustedOnly/testcases/MixedSigningAndTrustedOnlyBS1.java	Thu Jul 30 18:51:00 2015 +0200
@@ -57,6 +57,7 @@
 /**
  * 
  * Very simple tests. Basic behavior. jnlp and html with single signed jar, no trusted-only  manifest 
+ * note - this file is declared to be in package, but directory is wrong. Itw reproducers engine needs it like it, but your ide may complain. Try to live with. Sorry
  */
 public class MixedSigningAndTrustedOnlyBS1 extends BrowserTest {
 
@@ -114,6 +115,7 @@
         String file = prepareFile(FileType.JNLP_APP, C1, new Archives[]{BS},
                 new String[]{COMMAND_C1_NORMAL, COMMAND_C2_NORMAL, COMMAND_C1_RESTRICT, COMMAND_C2_RESTRICT}, true);
         ProcessResult pr = server.executeJavaws(HEADLESS, file, new AutoOkClosingListener(), new AutoErrorClosingListener());
+        assertAllOk(pr);
     }
 
     @Test
@@ -122,6 +124,7 @@
         String file = prepareFile(FileType.JNLP_APPLET, C1, new Archives[]{BS},
                 new String[]{COMMAND_C1_NORMAL, COMMAND_C2_NORMAL, COMMAND_C1_RESTRICT, COMMAND_C2_RESTRICT}, true);
         ProcessResult pr = server.executeJavaws(file, new AutoOkClosingListener(), new AutoErrorClosingListener());
+        assertAllOk(pr);
     }
 
     @NeedsDisplay
@@ -131,6 +134,7 @@
         String file = prepareFile(FileType.HTML, C2, new Archives[]{BS},
                 new String[]{COMMAND_C1_NORMAL, COMMAND_C2_NORMAL, COMMAND_C1_RESTRICT, COMMAND_C2_RESTRICT}, false);
         ProcessResult pr = server.executeBrowser(file, AutoClose.CLOSE_ON_BOTH);
+        assertAllOk(pr);
     }
     
     @NeedsDisplay
@@ -139,6 +143,7 @@
         String file = prepareFile(FileType.HTML, C2, new Archives[]{BS},
                 new String[]{COMMAND_C1_NORMAL, COMMAND_C2_NORMAL, COMMAND_C1_RESTRICT, COMMAND_C2_RESTRICT}, false);
         ProcessResult pr = server.executeJavaws(HTML, file, new AutoOkClosingListener(), new AutoErrorClosingListener());
+        assertAllOk(pr);
     }
 
     @Test
@@ -163,6 +168,7 @@
         String file = prepareFile(FileType.JNLP_APP, C2, new Archives[]{BS},
                 new String[]{COMMAND_C1_NORMAL, COMMAND_C2_NORMAL, COMMAND_C1_RESTRICT, COMMAND_C2_RESTRICT}, true);
         ProcessResult pr = server.executeJavaws(HEADLESS, file, new AutoOkClosingListener(), new AutoErrorClosingListener());
+        assertAllOk(pr);
     }
 
     @Test
@@ -171,6 +177,7 @@
         String file = prepareFile(FileType.JNLP_APPLET, C2, new Archives[]{BS},
                 new String[]{COMMAND_C1_NORMAL, COMMAND_C2_NORMAL, COMMAND_C1_RESTRICT, COMMAND_C2_RESTRICT}, true);
         ProcessResult pr = server.executeJavaws(file, new AutoOkClosingListener(), new AutoErrorClosingListener());
+        assertAllOk(pr);
     }
 
 
diff -r efb1342a55aa -r bbab18a43972 tests/reproducers/custom/MixedSigningAndTrustedOnly/testcases/MixedSigningAndTrustedOnlyBSmanifest.java
--- a/tests/reproducers/custom/MixedSigningAndTrustedOnly/testcases/MixedSigningAndTrustedOnlyBSmanifest.java	Thu Jul 30 12:39:58 2015 -0400
+++ b/tests/reproducers/custom/MixedSigningAndTrustedOnly/testcases/MixedSigningAndTrustedOnlyBSmanifest.java	Thu Jul 30 18:51:00 2015 +0200
@@ -56,7 +56,8 @@
 
 /**
  * 
- * Very simple tests. Basic behavior. jnlp and html with single signed jar, no trusted-only  manifest 
+ * Very simple tests. Basic behavior. jnlp and html with single signed jar, trusted-only   in manifest 
+ * note - this file is declared to be in package, but directory is wrong. Itw reproducers engine needs it like it, but your ide may complain. Try to live with. Sorry
  */
 public class MixedSigningAndTrustedOnlyBSmanifest extends BrowserTest {
 
@@ -118,6 +119,7 @@
         String file = prepareFile(FileType.JNLP_APP, C1, new Archives[]{BSM},
                 new String[]{COMMAND_C1_NORMAL, COMMAND_C2_NORMAL, COMMAND_C1_RESTRICT, COMMAND_C2_RESTRICT}, true);
         ProcessResult pr = server.executeJavaws(HEADLESS, file, new AutoOkClosingListener(), new AutoErrorClosingListener());
+        assertAllOk(pr);
     }
 
     @Test
@@ -126,6 +128,7 @@
         String file = prepareFile(FileType.JNLP_APPLET, C1, new Archives[]{BSM},
                 new String[]{COMMAND_C1_NORMAL, COMMAND_C2_NORMAL, COMMAND_C1_RESTRICT, COMMAND_C2_RESTRICT}, true);
         ProcessResult pr = server.executeJavaws(file, new AutoOkClosingListener(), new AutoErrorClosingListener());
+        assertAllOk(pr);
     }
 
     @NeedsDisplay
@@ -135,6 +138,7 @@
         String file = prepareFile(FileType.HTML, C2, new Archives[]{BSM},
                 new String[]{COMMAND_C1_NORMAL, COMMAND_C2_NORMAL, COMMAND_C1_RESTRICT, COMMAND_C2_RESTRICT}, false);
         ProcessResult pr = server.executeBrowser(file, AutoClose.CLOSE_ON_BOTH);
+        assertAllOk(pr);
     }
     
     @NeedsDisplay
@@ -143,6 +147,7 @@
         String file = prepareFile(FileType.HTML, C2, new Archives[]{BSM},
                 new String[]{COMMAND_C1_NORMAL, COMMAND_C2_NORMAL, COMMAND_C1_RESTRICT, COMMAND_C2_RESTRICT}, false);
         ProcessResult pr = server.executeJavaws(HTML, file, new AutoOkClosingListener(), new AutoErrorClosingListener());
+        assertAllOk(pr);
     }
 
     @Test
@@ -171,6 +176,7 @@
         String file = prepareFile(FileType.JNLP_APP, C2, new Archives[]{BSM},
                 new String[]{COMMAND_C1_NORMAL, COMMAND_C2_NORMAL, COMMAND_C1_RESTRICT, COMMAND_C2_RESTRICT}, true);
         ProcessResult pr = server.executeJavaws(HEADLESS, file, new AutoOkClosingListener(), new AutoErrorClosingListener());
+        assertAllOk(pr);
     }
 
     @Test
@@ -179,6 +185,7 @@
         String file = prepareFile(FileType.JNLP_APPLET, C2, new Archives[]{BSM},
                 new String[]{COMMAND_C1_NORMAL, COMMAND_C2_NORMAL, COMMAND_C1_RESTRICT, COMMAND_C2_RESTRICT}, true);
         ProcessResult pr = server.executeJavaws(file, new AutoOkClosingListener(), new AutoErrorClosingListener());
+        assertAllOk(pr);
     }
 
 


More information about the distro-pkg-dev mailing list