assertTrue(runner.getSettings().arguments() instanceof OperaDesktopArguments);
}
@Test
public void constructionWithProfile() throws IOException {
TemporaryFolder temporaryProfile = new TemporaryFolder();
temporaryProfile.create();
// Make a new copy in a temporary file system so we don't overwrite our fixture
String profilePath;
try {
Files.copy(resources.locate("profile/opera.ini"), temporaryProfile.newFile("operaprefs.ini"));
} catch (IOException e) {
fail("Unable to copy preference fixture: " + e.getMessage());
}
profilePath = temporaryProfile.getRoot().getAbsolutePath();
settings.setProfile(profilePath);
runner = new TestOperaRunner(settings);
assertEquals(profilePath,
runner.getSettings().arguments().getArguments().get(0).getValue()); // 1