package com.thoughtworks.gauge.test.implementation;
import com.thoughtworks.gauge.Step;
<BUG>import com.thoughtworks.gauge.Table;
import static com.thoughtworks.gauge.test.common.GaugeProject.currentProject;</BUG>
public class ExecutionHooks {
@Step("Create <hook level> level <hook type> hook with implementation <print string>")
<BUG>public void createHookWithImpl(String hookLevel, String hookType, String printString) throws Exception {

currentProject.createHookWithPrint(hookLevel, hookType, printString);
}</BUG>
@Step("Create <hook level> level <hook type> hook with exception")

package com.thoughtworks.gauge.test.implementation;
import com.thoughtworks.gauge.Step;
import com.thoughtworks.gauge.Table;
import com.thoughtworks.gauge.test.common.builders.HooksBuilder;
import static com.thoughtworks.gauge.test.common.GaugeProject.currentProject;
public class ExecutionHooks {
@Step("Create <hook level> level <hook type> hook with implementation <print string>")
public void createHookWithImpl(String hookLevel, String hookType, String implementation) throws Exception {
new HooksBuilder().withHookLevel(hookLevel)
.withHookType(hookType)
.withImplementation(implementation)
.build();
}
@Step("Create <hook level> level <hook type> hook with exception")
