use of org.apache.tapestry5.services.messages.PropertiesFileParser in project tapestry-5 by apache.
the class PropertiesFileParserImplTest method read_utf.
@Test
public void read_utf() throws Exception {
Resource utf8 = new ClasspathResource("org/apache/tapestry5/internal/services/messages/utf8.properties");
PropertiesFileParser parser = getService(PropertiesFileParser.class);
Map<String, String> properties = parser.parsePropertiesFile(utf8);
assertEquals(properties.get("tapestry"), "\u30bf\u30da\u30b9\u30c8\u30ea\u30fc");
assertEquals(properties.get("version"), "5");
}
Aggregations