Маленькая заметка про класс Properties, инструмент Apache.JMeter и использование IntelliJ IDEA для разработки тестов.
Понадобилось мне задавать SLA в Property-файле. И раньше так и задавал, но тогда имена транзакций были на латинском. Попробовал сделать на кириллице - ничего не работает.
Оказалось есть такая штука:
https://docs.oracle.com/javase/6/docs/api/java/util/Properties.htmlThe load(InputStream) / store(OutputStream, String) methods work the same way as the load(Reader)/store(Writer, String) pair, except the input/output stream is encoded in
ISO 8859-1 character encoding. Characters that cannot be directly represented in this encoding can be written using Unicode escapes ; only a single 'u' character is allowed in an escape sequence. The native2ascii tool can be used to convert property files to and from other character encodings.
Кодировка для
user.property и других файлов всегда ISO 8859-1 она же Window-1252, т в ней нет кириллицы.
Но оказалось, что в IDEA это учтено.
И достаточно настроек IDEA!