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 63666c78a90231aac2f193342aeda00066a47511..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;
@@ -132,10 +133,11 @@ public class ExpressionParserTest {
             }
         }
         final YangInstanceIdentifier path = Mockito.mock(YangInstanceIdentifier.class);
-        final PathArgument pathValue = NodeIdentifier.create(QName.create("module", "2016-14-12", "localName"));
+        final PathArgument pathValue = NodeIdentifier.create(QName.create("module", "2016-12-14", "localName"));
         Mockito.when(path.getLastPathArgument()).thenReturn(pathValue);
-        final ListenerAdapter listener = Notificator.createListener(path, "streamName", NotificationOutputType.JSON);
-        listener.setQueryParams(Instant.now(), Optional.empty(), Optional.ofNullable(filter), false);
+        final ListenerAdapter listener = Notificator.createListener(path, "streamName", NotificationOutputType.JSON,
+                null);
+        listener.setQueryParams(Instant.now(), Optional.empty(), Optional.ofNullable(filter), false, false);
 
         // FIXME: do not use reflection here
         final Class<?> superclass = listener.getClass().getSuperclass().getSuperclass();
@@ -153,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();