use of org.jacoco.core.runtime.AgentOptions in project jacoco by jacoco.
the class FileOutputTest method testInvalidDestFile.
@Test(expected = IOException.class)
public void testInvalidDestFile() throws Exception {
AgentOptions options = new AgentOptions();
options.setDestfile(folder.newFolder("folder").getAbsolutePath());
FileOutput controller = new FileOutput();
// Startup should fail as the file can not be created:
controller.startup(options, new RuntimeData());
}
Aggregations