Updated MIT License

This commit is contained in:
Ziver Koc 2013-05-28 19:29:24 +00:00
parent b298aadd68
commit c1604cc5be
212 changed files with 1235 additions and 834 deletions

View file

@ -1,16 +1,16 @@
/*******************************************************************************
* Copyright (c) 2011 Ziver Koc
*
* Copyright (c) 2013 Ziver
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@ -19,6 +19,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
******************************************************************************/
package zutil.test;
import static org.junit.Assert.*;
@ -50,9 +51,9 @@ public class ConverterTest {
@Test
public void testUrlEncode() {
assertEquals( "fas8dg7%20a0d1%2313f9g8d7%200h9a%a4%25h0",
Converter.urlEncode("fas8dg7 a0d1#13f9g8d7 0h9a¤%h0") );
Converter.urlEncode("fas8dg7 a0d1#13f9g8d7 0h9a<EFBFBD>%h0") );
assertEquals( "9i34%e5%202y92%a452%25%2623%20463765%a4(%2f%26(",
Converter.urlEncode("9i34å 2y92¤52%&23 463765¤(/&(") );
Converter.urlEncode("9i34<EFBFBD> 2y92<39>52%&23 463765<36>(/&(") );
}
@ -60,7 +61,7 @@ public class ConverterTest {
public void testUrlDecode() {
assertEquals( "fas8dg7 a0d1#13f9g8d7 0h9a%h0",
Converter.urlDecode("fas8dg7%20a0d1%2313f9g8d7%200h9a%25h0") );
assertEquals( "9i34å 2y9252%&23 463765(/&(",
assertEquals( "9i34<EFBFBD> 2y9252%&23 463765(/&(",
Converter.urlDecode("9i34%e5%202y9252%25%2623%20463765(%2f%26(") );
}