From a288c99fa6955a2c9055b28dc1c805dacbe5fc93 Mon Sep 17 00:00:00 2001 From: clemenso Date: Mon, 15 Sep 2008 18:02:18 +0000 Subject: encoding git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@40 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../test/java/at/gv/egiz/bku/gui/BKUGUITest.java | 2 +- .../test/java/at/gv/egiz/bku/gui/BKUGUIWorker.java | 24 +++++++++++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) (limited to 'BKUCommonGUI/src/test/java/at') diff --git a/BKUCommonGUI/src/test/java/at/gv/egiz/bku/gui/BKUGUITest.java b/BKUCommonGUI/src/test/java/at/gv/egiz/bku/gui/BKUGUITest.java index a9c21a00..5f1bc8b2 100644 --- a/BKUCommonGUI/src/test/java/at/gv/egiz/bku/gui/BKUGUITest.java +++ b/BKUCommonGUI/src/test/java/at/gv/egiz/bku/gui/BKUGUITest.java @@ -39,7 +39,7 @@ public class BKUGUITest { JFrame testFrame = new JFrame("BKUGUITest"); BKUGUI gui = new BKUGUI(); Container contentPane = testFrame.getContentPane(); - contentPane.setPreferredSize(new Dimension(500, 200)); + contentPane.setPreferredSize(new Dimension(380, 150)); gui.init(contentPane, null); BKUGUIWorker worker = new BKUGUIWorker(); worker.init(gui); diff --git a/BKUCommonGUI/src/test/java/at/gv/egiz/bku/gui/BKUGUIWorker.java b/BKUCommonGUI/src/test/java/at/gv/egiz/bku/gui/BKUGUIWorker.java index 85f05435..6cbc2cd1 100644 --- a/BKUCommonGUI/src/test/java/at/gv/egiz/bku/gui/BKUGUIWorker.java +++ b/BKUCommonGUI/src/test/java/at/gv/egiz/bku/gui/BKUGUIWorker.java @@ -82,7 +82,7 @@ public class BKUGUIWorker implements Runnable { @Override public InputStream getHashDataInput() { - return new ByteArrayInputStream("oialfx HashDataInput_001\n12345\n\tHello, world!\n12345\n\n12345\n6789\nblabla".getBytes()); + return new ByteArrayInputStream("Ich bin ein einfacher Text mit Umlauten: öäüßéç@€\n123\n456\n\tHello, world!\n\nlkjsd\nnksdjf".getBytes()); } @Override @@ -94,6 +94,10 @@ public class BKUGUIWorker implements Runnable { public String getReferenceId() { return "Reference-ref1-00000000000000000000001"; } + @Override + public String getEncoding() { + return "UTF-8"; + } }; HashDataInput signedRef2 = new HashDataInput() { @@ -111,6 +115,10 @@ public class BKUGUIWorker implements Runnable { public String getReferenceId() { return "Reference-ref2-00000000000000000000002"; } + @Override + public String getEncoding() { + return "UTF-8"; + } }; HashDataInput signedRef3 = new HashDataInput() { @@ -128,6 +136,11 @@ public class BKUGUIWorker implements Runnable { public String getReferenceId() { return "Reference-ref3-00000000000000000000003"; } + + @Override + public String getEncoding() { + return "UTF-8"; + } }; HashDataInput signedRef4 = new HashDataInput() { @@ -145,6 +158,11 @@ public class BKUGUIWorker implements Runnable { public String getReferenceId() { return "ref4"; } + + @Override + public String getEncoding() { + return "UTF-8"; + } }; // @@ -153,6 +171,10 @@ public class BKUGUIWorker implements Runnable { signedRefs.add(signedRef2); signedRefs.add(signedRef3); signedRefs.add(signedRef4); +// signedRefs.add(signedRef4); +// signedRefs.add(signedRef4); +// signedRefs.add(signedRef4); +// signedRefs.add(signedRef4); // signedRefs = Collections.singletonList(signedRef1); gui.showHashDataInputDialog(signedRefs, returnListener, "return"); } -- cgit v1.2.3