Skip to content
Permalink
Browse files

LPS-92303 SF

  • Loading branch information
shuyangzhou authored and brianchandotcom committed Mar 28, 2019
1 parent e53b3e4 commit 0d001470ceeb17adabe269a879ce9d074d2a2d13
@@ -19,7 +19,6 @@
import com.liferay.portal.kernel.dao.db.DBManagerUtil;
import com.liferay.portal.kernel.dao.db.DBType;
import com.liferay.portal.kernel.dao.jdbc.DataAccess;
import com.liferay.portal.kernel.io.unsync.UnsyncCharArrayWriter;
import com.liferay.portal.kernel.util.FileUtil;
import com.liferay.portal.kernel.util.SortedProperties;
import com.liferay.portal.kernel.util.StringUtil;
@@ -29,13 +28,12 @@
import com.liferay.portal.tools.ToolDependencies;

import java.io.File;
import java.io.InputStreamReader;
import java.io.Reader;

import java.net.URL;

import java.nio.file.Files;
import java.nio.file.Paths;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
@@ -61,8 +59,8 @@ public void testFreemarkerTemplateContent() throws Exception {
Class<?> clazz = getClass();

URL url = clazz.getResource(
"/com/liferay/portal/tools/sample/sql/builder/dependencies/sample" +
".ftl");
"/com/liferay/portal/tools/sample/sql/builder/dependencies" +
"/sample.ftl");

String fileContent = new String(
Files.readAllBytes(Paths.get(url.toURI())), StringPool.UTF8);

0 comments on commit 0d00147

Please sign in to comment.
You can’t perform that action at this time.