2323import org .junit .Test ;
2424
2525import java .io .File ;
26+ import java .nio .charset .StandardCharsets ;
2627import java .text .MessageFormat ;
2728import java .util .HashSet ;
2829import java .util .Map ;
@@ -34,7 +35,7 @@ public class TestSLSWebApp {
3435 @ Test
3536 public void testSimulateInfoPageHtmlTemplate () throws Exception {
3637 String simulateInfoTemplate = FileUtils .readFileToString (
37- new File ("src/main/html/simulate.info.html.template" ));
38+ new File ("src/main/html/simulate.info.html.template" ), StandardCharsets . UTF_8 );
3839
3940 Map <String , Object > simulateInfoMap = new HashMap <>();
4041 simulateInfoMap .put ("Number of racks" , 10 );
@@ -72,7 +73,7 @@ public void testSimulateInfoPageHtmlTemplate() throws Exception {
7273 @ Test
7374 public void testSimulatePageHtmlTemplate () throws Exception {
7475 String simulateTemplate = FileUtils .readFileToString (
75- new File ("src/main/html/simulate.html.template" ));
76+ new File ("src/main/html/simulate.html.template" ), StandardCharsets . UTF_8 );
7677
7778 Set <String > queues = new HashSet <String >();
7879 queues .add ("sls_queue_1" );
@@ -96,7 +97,7 @@ public void testSimulatePageHtmlTemplate() throws Exception {
9697 @ Test
9798 public void testTrackPageHtmlTemplate () throws Exception {
9899 String trackTemplate = FileUtils .readFileToString (
99- new File ("src/main/html/track.html.template" ));
100+ new File ("src/main/html/track.html.template" ), StandardCharsets . UTF_8 );
100101 String trackedQueueInfo = "" ;
101102 Set <String > trackedQueues = new HashSet <String >();
102103 trackedQueues .add ("sls_queue_1" );
0 commit comments