Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new FhirContactPoints domain #253

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change encoding class
mherman22 committed Jul 1, 2024
commit c372bae44f4bbfcedd746a49d2bdd97a339c16e7
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;
@@ -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);
}