Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.optimizely.ab;

import com.optimizely.ab.config.Variation;
import com.optimizely.ab.config.parser.ConfigParseException;
import com.optimizely.ab.event.NoopEventHandler;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
Expand Down Expand Up @@ -65,7 +66,7 @@ public class OptimizelyBenchmark {

@Setup
@SuppressFBWarnings(value="OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE", justification="stream is safely closed")
public void setup() throws IOException {
public void setup() throws IOException, ConfigParseException {
Properties properties = new Properties();
InputStream propertiesStream = getClass().getResourceAsStream("/benchmark.properties");
properties.load(propertiesStream);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/
package com.optimizely.ab;

import com.optimizely.ab.config.parser.ConfigParseException;
import com.optimizely.ab.event.EventHandler;
import com.optimizely.ab.event.NoopEventHandler;

Expand Down Expand Up @@ -68,7 +69,7 @@ public void setup() throws IOException {
}

@Benchmark
public Optimizely measureOptimizelyCreation() throws IOException {
public Optimizely measureOptimizelyCreation() throws IOException, ConfigParseException {
return Optimizely.builder(datafile, eventHandler).build();
}
}