Skip to content

Commit

Permalink
Merge 06683c2 into 5b03746
Browse files Browse the repository at this point in the history
  • Loading branch information
jixuan1989 committed Mar 31, 2020
2 parents 5b03746 + 06683c2 commit 6a5c97e
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -51,8 +51,11 @@
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class IoTDBSessionIT {
private static Logger logger = LoggerFactory.getLogger(IoTDBSessionIT.class);

private Session session;

Expand Down Expand Up @@ -225,6 +228,11 @@ public void testTestMethod()
public void testChineseCharacter() throws IoTDBConnectionException, StatementExecutionException {
session = new Session("127.0.0.1", 6667, "root", "root");
session.open();
if (!System.getProperty("sun.jnu.encoding").contains("UTF-8")) {
logger.error("The system does not support UTF-8, so skip Chinese test...");
session.close();
return;
}
String storageGroup = "root.存储组1";
String[] devices = new String[]{
"设备1.指标1",
Expand Down

0 comments on commit 6a5c97e

Please sign in to comment.