diff -r 10ce3bd661b1 tests/reproducers/signed/ShowDocumentSigned/resources/ShowDocumentSigned1.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/reproducers/signed/ShowDocumentSigned/resources/ShowDocumentSigned1.html Fri Aug 03 14:29:48 2012 +0200 @@ -0,0 +1,44 @@ + + +

+ + +

+ + diff -r 10ce3bd661b1 tests/reproducers/signed/ShowDocumentSigned/resources/ShowDocumentSigned2.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/reproducers/signed/ShowDocumentSigned/resources/ShowDocumentSigned2.html Fri Aug 03 14:29:48 2012 +0200 @@ -0,0 +1,45 @@ + + +

+ + + +

+ + diff -r 10ce3bd661b1 tests/reproducers/signed/ShowDocumentSigned/resources/ShowDocumentSigned3.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/reproducers/signed/ShowDocumentSigned/resources/ShowDocumentSigned3.html Fri Aug 03 14:29:48 2012 +0200 @@ -0,0 +1,45 @@ + + +

+ + + +

+ + diff -r 10ce3bd661b1 tests/reproducers/signed/ShowDocumentSigned/resources/ShowDocumentSigned4.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/reproducers/signed/ShowDocumentSigned/resources/ShowDocumentSigned4.html Fri Aug 03 14:29:48 2012 +0200 @@ -0,0 +1,45 @@ + + +

+ + + +

+ + diff -r 10ce3bd661b1 tests/reproducers/signed/ShowDocumentSigned/resources/ShowDocumentSigned5.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/reproducers/signed/ShowDocumentSigned/resources/ShowDocumentSigned5.html Fri Aug 03 14:29:48 2012 +0200 @@ -0,0 +1,45 @@ + + +

+ + + +

+ + diff -r 10ce3bd661b1 tests/reproducers/signed/ShowDocumentSigned/resources/TargetSigned.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/reproducers/signed/ShowDocumentSigned/resources/TargetSigned.html Fri Aug 03 14:29:48 2012 +0200 @@ -0,0 +1,44 @@ + + +

+ + +

+ + diff -r 10ce3bd661b1 tests/reproducers/signed/ShowDocumentSigned/srcs/ShowDocumentSigned.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/reproducers/signed/ShowDocumentSigned/srcs/ShowDocumentSigned.java Fri Aug 03 14:29:48 2012 +0200 @@ -0,0 +1,81 @@ +/* ShowDocumentSigned.java + Navigates to another applet using showDocument() + +Copyright (C) 2012 Red Hat, Inc. + +This file is part of IcedTea. + +IcedTea is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +IcedTea is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with IcedTea; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. + */ +import java.applet.Applet; +import java.net.URL; + +public class ShowDocumentSigned extends Applet { + + private static final String SHOWDOC_REACHED = "Entered ShowDocumentSigned Java applet"; + + static class Killer extends Thread { + + public int n = 2000; + + @Override + public void run() { + try { + Thread.sleep(n); + System.out.println("Applet killing itself after " + n + " ms of life"); + System.exit(0); + } catch (Exception ex) { + } + } + } + + @Override + public void init() { + Killer killer = new Killer(); + killer.start(); + } + + @Override + public void start() { + String s=getParameter("target"); + System.out.println(SHOWDOC_REACHED); + try { + if ( s== null) { + getAppletContext().showDocument(new URL(getCodeBase().toString() + "TargetSigned.html")); + } else { + getAppletContext().showDocument(new URL(getCodeBase().toString() + "TargetSigned.html"),s); + } + } catch (Exception e) { + System.out.println("Failure: Can't go to TargetSigned.html due to " + e); + } + } +} diff -r 10ce3bd661b1 tests/reproducers/signed/ShowDocumentSigned/srcs/TargetSigned.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/reproducers/signed/ShowDocumentSigned/srcs/TargetSigned.java Fri Aug 03 14:29:48 2012 +0200 @@ -0,0 +1,55 @@ +/* TargetSigned.java + Navigated to by another applet using showDocument() + +Copyright (C) 2012 Red Hat, Inc. + +This file is part of IcedTea. + +IcedTea is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +IcedTea is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with IcedTea; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. + */ +import java.applet.Applet; + +public class TargetSigned extends Applet { + private static final String TARGET_REACHED = "Entered TargetSigned Java applet"; + + @Override + public void init() { + ShowDocumentSigned.Killer killer = new ShowDocumentSigned.Killer(); + killer.start(); + } + + @Override + public void start() { + System.out.println(TARGET_REACHED); + + } +} diff -r 10ce3bd661b1 tests/reproducers/signed/ShowDocumentSigned/testcases/ShowDocumentSignedTests.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/reproducers/signed/ShowDocumentSigned/testcases/ShowDocumentSignedTests.java Fri Aug 03 14:29:48 2012 +0200 @@ -0,0 +1,103 @@ +/* SavingCookieTests.java +Copyright (C) 2011 Red Hat, Inc. + +This file is part of IcedTea. + +IcedTea is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +IcedTea is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with IcedTea; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. + */ + + +import net.sourceforge.jnlp.ProcessResult; +import net.sourceforge.jnlp.annotations.TestInBrowsers; +import net.sourceforge.jnlp.browsertesting.BrowserTest; +import net.sourceforge.jnlp.browsertesting.Browsers; +import org.junit.Assert; + +import org.junit.Test; + +public class ShowDocumentSignedTests extends BrowserTest { + private static final String SHOWDOC_REACHED = "Entered ShowDocumentSigned Java applet"; + private static final String TARGET_REACHED = "Entered TargetSigned Java applet"; + + @Test + @TestInBrowsers(testIn = { Browsers.one }) + public void CheckShowDocumentSigned1() throws Exception { + int i=1; + ProcessResult pr = server.executeBrowser("/ShowDocumentSigned"+i+".html"); + + Assert.assertTrue("ShowDocumentSigned"+i+" stdout should contain '" + SHOWDOC_REACHED + "' but did not.", pr.stdout.contains(SHOWDOC_REACHED)); + Assert.assertTrue("TargetSigned"+i+" stdout should contain '" + TARGET_REACHED + "' but did not.", pr.stdout.contains(TARGET_REACHED)); + } + + @Test + @TestInBrowsers(testIn = { Browsers.one }) + public void CheckShowDocumentSigned2() throws Exception { + int i=2; + ProcessResult pr = server.executeBrowser("/ShowDocumentSigned"+i+".html"); + + Assert.assertTrue("ShowDocumentSigned"+i+" stdout should contain '" + SHOWDOC_REACHED + "' but did not.", pr.stdout.contains(SHOWDOC_REACHED)); + Assert.assertTrue("TargetSigned"+i+" stdout should contain '" + TARGET_REACHED + "' but did not.", pr.stdout.contains(TARGET_REACHED)); + } + + @Test + @TestInBrowsers(testIn = { Browsers.one }) + public void CheckShowDocumentSigned3() throws Exception { + int i=3; + ProcessResult pr = server.executeBrowser("/ShowDocumentSigned"+i+".html"); + + Assert.assertTrue("ShowDocumentSigned"+i+" stdout should contain '" + SHOWDOC_REACHED + "' but did not.", pr.stdout.contains(SHOWDOC_REACHED)); + Assert.assertTrue("TargetSigned"+i+" stdout should contain '" + TARGET_REACHED + "' but did not.", pr.stdout.contains(TARGET_REACHED)); + } + + @Test + @TestInBrowsers(testIn = { Browsers.one }) + public void CheckShowDocumentSigned4() throws Exception { + int i=4; + ProcessResult pr = server.executeBrowser("/ShowDocumentSigned"+i+".html"); + + Assert.assertTrue("ShowDocumentSigned"+i+" stdout should contain '" + SHOWDOC_REACHED + "' but did not.", pr.stdout.contains(SHOWDOC_REACHED)); + Assert.assertTrue("TargetSigned"+i+" stdout should contain '" + TARGET_REACHED + "' but did not.", pr.stdout.contains(TARGET_REACHED)); + } + + @Test + @TestInBrowsers(testIn = { Browsers.one }) + public void CheckShowDocumentSigned5() throws Exception { + int i=5; + ProcessResult pr = server.executeBrowser("/ShowDocumentSigned"+i+".html"); + + Assert.assertTrue("ShowDocumentSigned"+i+" stdout should contain '" + SHOWDOC_REACHED + "' but did not.", pr.stdout.contains(SHOWDOC_REACHED)); + Assert.assertTrue("TargetSigned"+i+" stdout should contain '" + TARGET_REACHED + "' but did not.", pr.stdout.contains(TARGET_REACHED)); + } + + + +} diff -r 10ce3bd661b1 tests/reproducers/simple/ShowDocumentNotSigned/resources/ShowDocumentNotSigned1.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/reproducers/simple/ShowDocumentNotSigned/resources/ShowDocumentNotSigned1.html Fri Aug 03 14:29:48 2012 +0200 @@ -0,0 +1,44 @@ + + +

+ + +

+ + diff -r 10ce3bd661b1 tests/reproducers/simple/ShowDocumentNotSigned/resources/ShowDocumentNotSigned2.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/reproducers/simple/ShowDocumentNotSigned/resources/ShowDocumentNotSigned2.html Fri Aug 03 14:29:48 2012 +0200 @@ -0,0 +1,45 @@ + + +

+ + + +

+ + diff -r 10ce3bd661b1 tests/reproducers/simple/ShowDocumentNotSigned/resources/ShowDocumentNotSigned3.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/reproducers/simple/ShowDocumentNotSigned/resources/ShowDocumentNotSigned3.html Fri Aug 03 14:29:48 2012 +0200 @@ -0,0 +1,45 @@ + + +

+ + + +

+ + diff -r 10ce3bd661b1 tests/reproducers/simple/ShowDocumentNotSigned/resources/ShowDocumentNotSigned4.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/reproducers/simple/ShowDocumentNotSigned/resources/ShowDocumentNotSigned4.html Fri Aug 03 14:29:48 2012 +0200 @@ -0,0 +1,45 @@ + + +

+ + + +

+ + diff -r 10ce3bd661b1 tests/reproducers/simple/ShowDocumentNotSigned/resources/ShowDocumentNotSigned5.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/reproducers/simple/ShowDocumentNotSigned/resources/ShowDocumentNotSigned5.html Fri Aug 03 14:29:48 2012 +0200 @@ -0,0 +1,45 @@ + + +

+ + + +

+ + diff -r 10ce3bd661b1 tests/reproducers/simple/ShowDocumentNotSigned/resources/TargetNotSigned.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/reproducers/simple/ShowDocumentNotSigned/resources/TargetNotSigned.html Fri Aug 03 14:29:48 2012 +0200 @@ -0,0 +1,44 @@ + + +

+ + +

+ + diff -r 10ce3bd661b1 tests/reproducers/simple/ShowDocumentNotSigned/srcs/ShowDocumentNotSigned.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/reproducers/simple/ShowDocumentNotSigned/srcs/ShowDocumentNotSigned.java Fri Aug 03 14:29:48 2012 +0200 @@ -0,0 +1,81 @@ +/* ShowDocumentNotSigned.java + Navigates to another applet using showDocument() + +Copyright (C) 2012 Red Hat, Inc. + +This file is part of IcedTea. + +IcedTea is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +IcedTea is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with IcedTea; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. + */ +import java.applet.Applet; +import java.net.URL; + +public class ShowDocumentNotSigned extends Applet { + + private static final String SHOWDOC_REACHED = "Entered ShowDocumentNotSigned Java applet"; + + static class Killer extends Thread { + + public int n = 2000; + + @Override + public void run() { + try { + Thread.sleep(n); + System.out.println("Applet killing itself after " + n + " ms of life"); + System.exit(0); + } catch (Exception ex) { + } + } + } + + @Override + public void init() { + Killer killer = new Killer(); + killer.start(); + } + + @Override + public void start() { + String s=getParameter("target"); + System.out.println(SHOWDOC_REACHED); + try { + if (s == null) { + getAppletContext().showDocument(new URL(getCodeBase().toString() + "TargetNotSigned.html")); + } else { + getAppletContext().showDocument(new URL(getCodeBase().toString() + "TargetNotSigned.html"),s); + } + } catch (Exception e) { + System.out.println("Failure: Can't go to TargetNotSigned.html due to " + e); + } + } +} diff -r 10ce3bd661b1 tests/reproducers/simple/ShowDocumentNotSigned/srcs/TargetNotSigned.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/reproducers/simple/ShowDocumentNotSigned/srcs/TargetNotSigned.java Fri Aug 03 14:29:48 2012 +0200 @@ -0,0 +1,55 @@ +/* TargetNotSigned.java + Navigated to by another applet using showDocument() + +Copyright (C) 2012 Red Hat, Inc. + +This file is part of IcedTea. + +IcedTea is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +IcedTea is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with IcedTea; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. + */ +import java.applet.Applet; + +public class TargetNotSigned extends Applet { + private static final String TARGET_REACHED = "Entered TargetNotSigned Java applet"; + + @Override + public void init() { + ShowDocumentNotSigned.Killer killer = new ShowDocumentNotSigned.Killer(); + killer.start(); + } + + @Override + public void start() { + System.out.println(TARGET_REACHED); + + } +} diff -r 10ce3bd661b1 tests/reproducers/simple/ShowDocumentNotSigned/testcases/ShowDocumentNotSignedTests.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/reproducers/simple/ShowDocumentNotSigned/testcases/ShowDocumentNotSignedTests.java Fri Aug 03 14:29:48 2012 +0200 @@ -0,0 +1,102 @@ +/* SavingCookieTests.java +Copyright (C) 2011 Red Hat, Inc. + +This file is part of IcedTea. + +IcedTea is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +IcedTea is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with IcedTea; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301 USA. + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. + */ + + +import net.sourceforge.jnlp.ProcessResult; +import net.sourceforge.jnlp.annotations.TestInBrowsers; +import net.sourceforge.jnlp.browsertesting.BrowserTest; +import net.sourceforge.jnlp.browsertesting.Browsers; +import org.junit.Assert; + +import org.junit.Test; + +public class ShowDocumentNotSignedTests extends BrowserTest { + private static final String SHOWDOC_REACHED = "Entered ShowDocumentNotSigned Java applet"; + private static final String TARGET_REACHED = "Entered TargetNotSigned Java applet"; + + @Test + @TestInBrowsers(testIn = { Browsers.one }) + public void CheckShowDocumentNotSigned1() throws Exception { + int i=1; + ProcessResult pr = server.executeBrowser("/ShowDocumentNotSigned"+i+".html"); + + Assert.assertTrue("ShowDocumentNotSigned"+i+" stdout should contain '" + SHOWDOC_REACHED + "' but did not.", pr.stdout.contains(SHOWDOC_REACHED)); + Assert.assertTrue("TargetNotSigned"+i+" stdout should contain '" + TARGET_REACHED + "' but did not.", pr.stdout.contains(TARGET_REACHED)); + } + + + @Test + @TestInBrowsers(testIn = { Browsers.one }) + public void CheckShowDocumentNotSigned2() throws Exception { + int i=2; + ProcessResult pr = server.executeBrowser("/ShowDocumentNotSigned"+i+".html"); + + Assert.assertTrue("ShowDocumentNotSigned"+i+" stdout should contain '" + SHOWDOC_REACHED + "' but did not.", pr.stdout.contains(SHOWDOC_REACHED)); + Assert.assertTrue("TargetNotSigned"+i+" stdout should contain '" + TARGET_REACHED + "' but did not.", pr.stdout.contains(TARGET_REACHED)); + } + + @Test + @TestInBrowsers(testIn = { Browsers.one }) + public void CheckShowDocumentNotSigned3() throws Exception { + int i=3; + ProcessResult pr = server.executeBrowser("/ShowDocumentNotSigned"+i+".html"); + + Assert.assertTrue("ShowDocumentNotSigned"+i+" stdout should contain '" + SHOWDOC_REACHED + "' but did not.", pr.stdout.contains(SHOWDOC_REACHED)); + Assert.assertTrue("TargetNotSigned"+i+" stdout should contain '" + TARGET_REACHED + "' but did not.", pr.stdout.contains(TARGET_REACHED)); + } + + @Test + @TestInBrowsers(testIn = { Browsers.one }) + public void CheckShowDocumentNotSigned4() throws Exception { + int i=4; + ProcessResult pr = server.executeBrowser("/ShowDocumentNotSigned"+i+".html"); + + Assert.assertTrue("ShowDocumentNotSigned"+i+" stdout should contain '" + SHOWDOC_REACHED + "' but did not.", pr.stdout.contains(SHOWDOC_REACHED)); + Assert.assertTrue("TargetNotSigned"+i+" stdout should contain '" + TARGET_REACHED + "' but did not.", pr.stdout.contains(TARGET_REACHED)); + } + + @Test + @TestInBrowsers(testIn = { Browsers.one }) + public void CheckShowDocumentNotSigned5() throws Exception { + int i=5; + ProcessResult pr = server.executeBrowser("/ShowDocumentNotSigned"+i+".html"); + + Assert.assertTrue("ShowDocumentNotSigned"+i+" stdout should contain '" + SHOWDOC_REACHED + "' but did not.", pr.stdout.contains(SHOWDOC_REACHED)); + Assert.assertTrue("TargetNotSigned"+i+" stdout should contain '" + TARGET_REACHED + "' but did not.", pr.stdout.contains(TARGET_REACHED)); + } + +}