Fix failing unit tests.

Bug 2534698
Bug 2534665

Change-Id: If07fc7113b517059bee937d019d464e9c1bc600f
This commit is contained in:
Makoto Onuki 2010-03-22 15:01:33 -07:00
parent a0b4907ca5
commit 0fdcac8028
2 changed files with 12 additions and 2 deletions

View File

@ -157,3 +157,15 @@
<init>(...);
*** get(...);
}
-keep class org.apache.james.mime4j.field.Field {
*** getBody(...);
}
# The following classes are used only by unit tests.
# We should move them into tests/ if possible.
-keep class org.apache.james.mime4j.message.Message {
*;
}

View File

@ -45,8 +45,6 @@ public class SimpleIcsWriterTests extends TestCase {
final String actual = TestUtils.fromUtf8(ics.getBytes());
assertEquals(
"TAG1:0" + CRLF +
"TAG2:0" + CRLF +
"TAG3:xyz" + CRLF +
"SUMMARY:TEST-TEST\\,\\;\\n\\\\TEST" + CRLF + // escaped
"SUMMARY2:TEST-TEST,;\r\n\\TEST" + CRLF // not escaped