GxpcFlags flags = new GxpcFlags(inMemory, inMemory.parseFilename("/here"), "@params");
assertTrue(flags.showHelp());
}
public void testParameterFileIsUtf8() throws Exception {
InMemoryFileSystem inMemory = new InMemoryFileSystem();
FileRef parameterFile = inMemory.parseFilename("/here/params");
Writer out = parameterFile.openWriter(Charsets.UTF_8);
out.write("--output /here/\u00F6"); // An oe umlaut.
out.close();
GxpcFlags flags = new GxpcFlags(inMemory, inMemory.parseFilename("/here"), "@params");
assertEquals("/here/\u00F6", flags.getAllowedOutputFiles().iterator().next().toFilename());
}