Commit 782d00d4 authored by Liang Ding's avatar Liang Ding

#12593

parent 4e04ec14
......@@ -66,7 +66,7 @@ public final class MarkdownsTestCase {
//System.out.println(path);
final StringBuilder markdownTextBuilder = new StringBuilder();
@SuppressWarnings("unchecked") final List<String> lines = IOUtils.readLines(new FileInputStream(path));
final List<String> lines = IOUtils.readLines(new FileInputStream(path), "UTF-8");
for (final String line : lines) {
markdownTextBuilder.append(line).append(Strings.LINE_SEPARATOR);
......
......@@ -24,23 +24,20 @@ import org.testng.annotations.Test;
import java.util.Locale;
/**
* {@link org.b3log.solo.util.Thumbnails} test case.
* {@link org.b3log.solo.util.Solos} test case.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.1, Mar 11, 2018
* @since 0.6.1
*/
public final class ThumbnailsTestCase {
public final class SolosTestCase {
/**
* Test method for {@linkplain Solos#getGravatarURL(String, String)}.
*
* @throws Exception exception
*/
@Test
public void getGravatarURL() throws Exception {
public void getGravatarURL() {
Latkes.init();
Latkes.setLocale(Locale.SIMPLIFIED_CHINESE);
final String gravatarURL = Solos.getGravatarURL("test@b3log.org", "128");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment