From 6624d1f8304a07ac43e7f22a138262bba9782758 Mon Sep 17 00:00:00 2001 From: Vincent Breitmoser Date: Wed, 16 Sep 2015 19:54:57 +0200 Subject: mime: respect charset header (default to utf-8) --- .../org/sufficientlysecure/keychain/pgp/PgpEncryptDecryptTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenKeychain/src/test/java/org/sufficientlysecure/keychain/pgp/PgpEncryptDecryptTest.java') diff --git a/OpenKeychain/src/test/java/org/sufficientlysecure/keychain/pgp/PgpEncryptDecryptTest.java b/OpenKeychain/src/test/java/org/sufficientlysecure/keychain/pgp/PgpEncryptDecryptTest.java index 727464429..cc5ef8038 100644 --- a/OpenKeychain/src/test/java/org/sufficientlysecure/keychain/pgp/PgpEncryptDecryptTest.java +++ b/OpenKeychain/src/test/java/org/sufficientlysecure/keychain/pgp/PgpEncryptDecryptTest.java @@ -792,9 +792,9 @@ public class PgpEncryptDecryptTest { Assert.assertArrayEquals("decrypted ciphertext should equal plaintext bytes", out.toByteArray(), plaindata); Assert.assertEquals("charset should be read correctly", - "iso-2022-jp", result.getCharset()); + "iso-2022-jp", result.getDecryptionMetadata().getCharset()); Assert.assertEquals("decrypted ciphertext should equal plaintext", - new String(out.toByteArray(), result.getCharset()), plaintext); + new String(out.toByteArray(), result.getDecryptionMetadata().getCharset()), plaintext); Assert.assertEquals("decryptionResult should be RESULT_ENCRYPTED", OpenPgpDecryptionResult.RESULT_ENCRYPTED, result.getDecryptionResult().getResult()); Assert.assertEquals("signatureResult should be RESULT_NO_SIGNATURE", -- cgit v1.2.3