summaryrefslogtreecommitdiff
path: root/BKUCommonGUI/src/test/java/at/gv
diff options
context:
space:
mode:
Diffstat (limited to 'BKUCommonGUI/src/test/java/at/gv')
-rw-r--r--BKUCommonGUI/src/test/java/at/gv/egiz/bku/gui/BKUGUIWorker.java12
-rw-r--r--BKUCommonGUI/src/test/java/at/gv/egiz/bku/gui/SecureViewerDialogTest.java6
2 files changed, 11 insertions, 7 deletions
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 20654141..6e345ee3 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
@@ -85,25 +85,29 @@ public class BKUGUIWorker implements Runnable {
"Ich bin ein einfacher Text mit Umlauten: öäüßéç@€\n123\n456\n\tHello, world!\n\nlkjsd\nnksdjf".getBytes(),
"ref-id-0000000000000000000000001",
"text/plain",
- "UTF-8");
+ "UTF-8",
+ "file.txt");
HashDataInput signedRef2 = new ByteArrayHashDataInput(
"<xml>HashDataInput_002</xml>".getBytes(),
"ref-id-000000002",
"application/xhtml+xml",
- "UTF-8");
+ "UTF-8",
+ "file.xhtml");
HashDataInput signedRef3 = new ByteArrayHashDataInput(
"<xml>HashDataInput_003</xml>".getBytes(),
"ref-id-000000003",
"application/xhtml+xml",
- "UTF-8");
+ "UTF-8",
+ "file2.xhtml");
HashDataInput signedRef4 = new ByteArrayHashDataInput(
"<xml>HashDataInput_004</xml>".getBytes(),
"ref-id-000000004",
"text/xml",
- "UTF-8");
+ "UTF-8",
+ "file.xml");
//
List<HashDataInput> signedRefs = new ArrayList();
diff --git a/BKUCommonGUI/src/test/java/at/gv/egiz/bku/gui/SecureViewerDialogTest.java b/BKUCommonGUI/src/test/java/at/gv/egiz/bku/gui/SecureViewerDialogTest.java
index 131a344f..9bbc1b1a 100644
--- a/BKUCommonGUI/src/test/java/at/gv/egiz/bku/gui/SecureViewerDialogTest.java
+++ b/BKUCommonGUI/src/test/java/at/gv/egiz/bku/gui/SecureViewerDialogTest.java
@@ -66,7 +66,7 @@ public class SecureViewerDialogTest {
String s = new String(bytes, "iso-8859-1");
System.out.println("read iso-8859-1 bytes " + s);
- secureViewer.setContent(new ByteArrayHashDataInput(s.getBytes("UTF-8"), "id-1", "text/plain", "iso-8859-1"));
+ secureViewer.setContent(new ByteArrayHashDataInput(s.getBytes("UTF-8"), "id-1", "text/plain", "iso-8859-1", "file.txt"));
}
@@ -87,7 +87,7 @@ public class SecureViewerDialogTest {
}
System.out.println(data.toString());
- secureViewer.setContent(new ByteArrayHashDataInput(data.toString().getBytes("UTF-8"), "id-1", "text/plain", "UTF-8"));
+ secureViewer.setContent(new ByteArrayHashDataInput(data.toString().getBytes("UTF-8"), "id-1", "text/plain", "UTF-8", "file.txt"));
}
@@ -146,7 +146,7 @@ public class SecureViewerDialogTest {
// byte[] bytes2 = data.getBytes("cp1252");
// System.out.println(data + "\t" + SMCCHelper.toString(bytes2));
- secureViewer.setContent(new ByteArrayHashDataInput(data.toString().getBytes("UTF-8"), "id-1", "text/plain", "UTF-8"));
+ secureViewer.setContent(new ByteArrayHashDataInput(data.toString().getBytes("UTF-8"), "id-1", "text/plain", "UTF-8", "file.txt"));
System.out.println("\n\n=============================\n");
//