diff options
Diffstat (limited to 'tests/jnlp_tests/simple/simpletest1')
-rw-r--r-- | tests/jnlp_tests/simple/simpletest1/testcases/SimpleTest1Test.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/jnlp_tests/simple/simpletest1/testcases/SimpleTest1Test.java b/tests/jnlp_tests/simple/simpletest1/testcases/SimpleTest1Test.java index 04181ab..6c15791 100644 --- a/tests/jnlp_tests/simple/simpletest1/testcases/SimpleTest1Test.java +++ b/tests/jnlp_tests/simple/simpletest1/testcases/SimpleTest1Test.java @@ -50,11 +50,14 @@ public class SimpleTest1Test { @Test public void testSimpletest1lunchOk() throws Exception { System.out.println("connecting simpletest1 request"); + System.err.println("connecting simpletest1 request"); ServerAccess.ProcessResult pr=server.executeJavawsHeadless(null,"/simpletest1.jnlp"); System.out.println(pr.stdout); System.err.println(pr.stderr); - Assert.assertTrue(pr.stdout.contains("Good simple javaws exapmle")); - Assert.assertFalse(pr.stderr.contains("xception")); + String s="Good simple javaws exapmle"; + Assert.assertTrue("testSimpletest1lunchOk stdout should contains "+s+" bud didn't",pr.stdout.contains(s)); + String ss="xception"; + Assert.assertFalse("testSimpletest1lunchOk stderr should not contains "+ss+" but did",pr.stderr.contains(ss)); Assert.assertFalse(pr.wasTerminated); Assert.assertEquals((Integer)0, pr.returnValue); } @@ -63,4 +66,4 @@ public class SimpleTest1Test { - }
\ No newline at end of file + } |