Author: simonetripodi
Date: Mon Mar 18 15:17:17 2013
New Revision: 1457803
URL: http://svn.apache.org/r1457803
Log:
[FILEUPLOAD-232] test cases granularization, massive test cases make hard to
understand which is the failing assertion
Modified:
commons/proper/fileupload/trunk/src/test/java/org/apache/commons/fileupload/utils/mime/MimeUtilityTestCase.java
Modified:
commons/proper/fileupload/trunk/src/test/java/org/apache/commons/fileupload/utils/mime/MimeUtilityTestCase.java
URL:
http://svn.apache.org/viewvc/commons/proper/fileupload/trunk/src/test/java/org/apache/commons/fileupload/utils/mime/MimeUtilityTestCase.java?rev=1457803&r1=1457802&r2=1457803&view=diff
==============================================================================
---
commons/proper/fileupload/trunk/src/test/java/org/apache/commons/fileupload/utils/mime/MimeUtilityTestCase.java
(original)
+++
commons/proper/fileupload/trunk/src/test/java/org/apache/commons/fileupload/utils/mime/MimeUtilityTestCase.java
Mon Mar 18 15:17:17 2013
@@ -27,11 +27,17 @@ import org.junit.Test;
public final class MimeUtilityTestCase {
@Test
- public void testEncodeText() throws Exception {
+ public void noNeedToDecode() throws Exception {
assertEncoded("abc", "abc");
+ }
+ @Test
+ public void decodeQEncoded() throws Exception {
assertEncoded(" hé! àèôu !!!",
"=?UTF-8?Q?_h=C3=A9!_=C3=A0=C3=A8=C3=B4u_!!!?=");
+ }
+ @Test
+ public void decodeBEncoded() throws Exception {
assertEncoded(" hé! àèôu !!!", "=?UTF-8?B?IGjDqSEgw6DDqMO0dSAhISE=?=");
}