aboutsummaryrefslogtreecommitdiffstats
path: root/tests/netx/unit/net/sourceforge/jnlp
diff options
context:
space:
mode:
authorJiri Vanek <[email protected]>2013-01-30 16:51:08 +0100
committerJiri Vanek <[email protected]>2013-01-30 16:51:08 +0100
commitc06c5ab6dc8a8aa1b41af190188d1de99345810f (patch)
treedd2e2f2b01ce8a2acb4a4d9bbe7cf04a64af96bf /tests/netx/unit/net/sourceforge/jnlp
parent924f9299d39b9bd985c58fde4ea2968b8ebdb229 (diff)
Splashscreen error report made more detailed by stored LaunchErrors
* netx/net/sourceforge/jnlp/LaunchException.java: (LaunchExceptionWithStamp) new inner class for storing timestamp togetehr with error. (launchExceptionChain) new static list to capture LaunchErrors during runtime. * /netx/net/sourceforge/jnlp/resources/Messages.properties: * netx/net/sourceforge/jnlp/resources/Messages_cs_CZ.properties: Added explanation string * netx/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialog.java: Is now displaying launchExceptionChain in its error report and is copying it to clipboard. * tests/unit/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialogTest.java: (getTextTest) adapted calls of getText for new Date.
Diffstat (limited to 'tests/netx/unit/net/sourceforge/jnlp')
-rw-r--r--tests/netx/unit/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialogTest.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/netx/unit/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialogTest.java b/tests/netx/unit/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialogTest.java
index 9372ff7..877596a 100644
--- a/tests/netx/unit/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialogTest.java
+++ b/tests/netx/unit/net/sourceforge/jnlp/splashscreen/parts/JEditorPaneBasedExceptionDialogTest.java
@@ -40,6 +40,7 @@ import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.Arrays;
+import java.util.Date;
import java.util.List;
import net.sourceforge.jnlp.runtime.Translator;
import org.junit.Assert;
@@ -107,10 +108,10 @@ public class JEditorPaneBasedExceptionDialogTest {
@Test
public void getTextTest() {
- String s1 = JEditorPaneBasedExceptionDialog.getText(ex, l, ai);
- String s2 = JEditorPaneBasedExceptionDialog.getText(ex, l, null);
- String s3 = JEditorPaneBasedExceptionDialog.getText(ex, null, ai);
- String s4 = JEditorPaneBasedExceptionDialog.getText(null, l, ai);
+ String s1 = JEditorPaneBasedExceptionDialog.getText(ex, l, ai, new Date());
+ String s2 = JEditorPaneBasedExceptionDialog.getText(ex, l, null, new Date());
+ String s3 = JEditorPaneBasedExceptionDialog.getText(ex, null, ai, new Date());
+ String s4 = JEditorPaneBasedExceptionDialog.getText(null, l, ai, new Date());
assertHtml(s1);
assertHtml(s2);
assertHtml(s3);