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;
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();
}
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();