BaseEncodingTest.java | 18 import static com.google.common.io.BaseEncoding.base32; 56 testEncodes(base32().withSeparator("*", 4), "foobar", "MZXW*6YTB*OI==*===="); 190 testEncodingWithCasing(base32(), "", ""); method 191 testEncodingWithCasing(base32(), "f", "MY======"); method 192 testEncodingWithCasing(base32(), "fo", "MZXQ===="); method 193 testEncodingWithCasing(base32(), "foo", "MZXW6==="); method 194 testEncodingWithCasing(base32(), "foob", "MZXW6YQ="); method 195 testEncodingWithCasing(base32(), "fooba", "MZXW6YTB"); method 196 testEncodingWithCasing(base32(), "foobar", "MZXW6YTBOI======"); method 202 testStreamingEncodingWithCasing(base32(), "", ""); method 203 testStreamingEncodingWithCasing(base32(), "f", "MY======"); method 204 testStreamingEncodingWithCasing(base32(), "fo", "MZXQ===="); method 205 testStreamingEncodingWithCasing(base32(), "foo", "MZXW6==="); method 206 testStreamingEncodingWithCasing(base32(), "foob", "MZXW6YQ="); method 207 testStreamingEncodingWithCasing(base32(), "fooba", "MZXW6YTB"); method 208 testStreamingEncodingWithCasing(base32(), "foobar", "MZXW6YTBOI======"); method 212 testDecodes(base32(), "MZXW6", "foo"); method 213 testDecodes(base32(), "MZXW6=", "foo"); method 214 testDecodes(base32(), "MZXW6==", "foo"); method 215 testDecodes(base32(), "MZXW6===", "foo"); \/\/ proper padding length method 216 testDecodes(base32(), "MZXW6====", "foo"); method 217 testDecodes(base32(), "MZXW6=====", "foo"); method 233 assertFailsToDecode(base32(), "\\u007f"); method 234 assertFailsToDecode(base32(), "Wf2!"); method 236 assertFailsToDecode(base32(), "let's not talk of love or chains!"); method 238 assertFailsToDecode(base32(), "A"); method 239 assertFailsToDecode(base32(), "ABC"); method 240 assertFailsToDecode(base32(), "ABCDEF"); method 244 assertSame(base32(), base32().upperCase()); method [all...] |