151152153154155156157
private Copycat(StateContext state, Cluster<?> cluster, CopycatConfig config) { this.state = state; this.cluster = cluster; this.config = config; this.events = new DefaultEvents(state.events()); }
20212223242526
private Events events; @BeforeMethod public void beforeMethod() { handlers = new DefaultEventHandlers(); events = new DefaultEvents(handlers); }