Bump versions to 4.0.0-SNAPSHOT
[netconf.git] / restconf / restconf-nb-bierman02 / src / test / java / org / opendaylight / controller / sal / restconf / impl / test / ExpressionParserTest.java
index 220537909cf16b25c896ee3ce0e85bacf9cda01a..f4ed8f9f6de81523572609c4f9e5d47bf294f4be 100644 (file)
@@ -12,6 +12,7 @@ import java.io.File;
 import java.io.FileReader;
 import java.io.IOException;
 import java.lang.reflect.Method;
+import java.nio.charset.StandardCharsets;
 import java.time.Instant;
 import java.util.Collection;
 import java.util.Optional;
@@ -136,7 +137,7 @@ public class ExpressionParserTest {
         Mockito.when(path.getLastPathArgument()).thenReturn(pathValue);
         final ListenerAdapter listener = Notificator.createListener(path, "streamName", NotificationOutputType.JSON,
                 null);
-        listener.setQueryParams(Instant.now(), Optional.empty(), Optional.ofNullable(filter), false);
+        listener.setQueryParams(Instant.now(), Optional.empty(), Optional.ofNullable(filter), false, false);
 
         // FIXME: do not use reflection here
         final Class<?> superclass = listener.getClass().getSuperclass().getSuperclass();
@@ -154,7 +155,7 @@ public class ExpressionParserTest {
     }
 
     private static String readFile(final File xml) throws IOException {
-        try (BufferedReader br = new BufferedReader(new FileReader(xml))) {
+        try (BufferedReader br = new BufferedReader(new FileReader(xml, StandardCharsets.UTF_8))) {
             final StringBuilder sb = new StringBuilder();
             String line = br.readLine();