Skip to content

Commit

Permalink
change encoding class
Browse files Browse the repository at this point in the history
  • Loading branch information
mherman22 committed Nov 28, 2023
1 parent ad60125 commit c2b5957
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package org.openmrs.module.initializer.validator;

import static groovy.json.internal.Charsets.UTF_8;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.nio.charset.StandardCharsets;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Paths;
Expand Down Expand Up @@ -35,9 +35,9 @@ public void test_trimCielSql() throws URISyntaxException, IOException {
File trimmedCielFile = Validator.trimCielSqlFile(cielFile);

// verify
String trimmedSql = readFile(trimmedCielFile.getAbsolutePath(), UTF_8);
String trimmedSql = readFile(trimmedCielFile.getAbsolutePath(), StandardCharsets.UTF_8);
File expectedFile = new File(getClass().getClassLoader().getResource("trimmed_ciel_excerpt.txt").toURI());
String expectedSql = readFile(expectedFile.getAbsolutePath(), UTF_8);
String expectedSql = readFile(expectedFile.getAbsolutePath(), StandardCharsets.UTF_8);
assertEquals(expectedSql, trimmedSql);
}

Expand Down

0 comments on commit c2b5957

Please sign in to comment.