summaryrefslogtreecommitdiff
path: root/BKUCommonGUI/src/test
diff options
context:
space:
mode:
authorclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-09-15 18:02:18 +0000
committerclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-09-15 18:02:18 +0000
commita288c99fa6955a2c9055b28dc1c805dacbe5fc93 (patch)
tree98319f46d37be10e7c5545e4ae451e650ce5c3b9 /BKUCommonGUI/src/test
parentfd1db02bdc9fbd2a5beca0cc2b214c1adbcc1a7a (diff)
downloadmocca-a288c99fa6955a2c9055b28dc1c805dacbe5fc93.tar.gz
mocca-a288c99fa6955a2c9055b28dc1c805dacbe5fc93.tar.bz2
mocca-a288c99fa6955a2c9055b28dc1c805dacbe5fc93.zip
encoding
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@40 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKUCommonGUI/src/test')
-rw-r--r--BKUCommonGUI/src/test/java/at/gv/egiz/bku/gui/BKUGUITest.java2
-rw-r--r--BKUCommonGUI/src/test/java/at/gv/egiz/bku/gui/BKUGUIWorker.java24
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");
}