diff options
Diffstat (limited to 'BKUCommonGUI/src/test/java/at')
-rw-r--r-- | BKUCommonGUI/src/test/java/at/gv/egiz/bku/gui/BKUGUITest.java | 2 | ||||
-rw-r--r-- | BKUCommonGUI/src/test/java/at/gv/egiz/bku/gui/BKUGUIWorker.java | 24 |
2 files changed, 24 insertions, 2 deletions
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"); } |