Commit 9e1450b6 authored by RPrakash3's avatar RPrakash3
Browse files

fix for instance creation

parent 2d601ea1
Pipeline #46707 passed with stages
in 36 minutes and 29 seconds
......@@ -15,8 +15,7 @@ import org.opengroup.osdu.wks.util.AuthUtil;
@ScenarioScoped
public class WksIntegrationTestScope {
@Inject
private FileUtils fileUtils;
private FileUtils fileUtils = new FileUtils();
private String token;
private String inputPayload;
......
......@@ -7,7 +7,6 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.opengroup.osdu.wks.model.AutomationConstants;
import org.opengroup.osdu.wks.model.WksIntegrationTestScope;
import com.google.inject.Inject;
import io.cucumber.java8.En;
......@@ -18,7 +17,6 @@ public class NegativeTestStepDefs implements En {
CommonMethods commonMethods = new CommonMethods();
public WksIntegrationTestScope context = commonMethods.getContext();
@Inject
public NegativeTestStepDefs() {
Given("I hit Storage service put end point with {string} which is already a WKS record",
(String inputPayload) -> {
......
......@@ -5,8 +5,6 @@ import java.util.logging.Logger;
import org.opengroup.osdu.wks.model.WksIntegrationTestScope;
import com.google.inject.Inject;
import io.cucumber.java8.En;
import io.cucumber.datatable.DataTable;
......@@ -17,7 +15,6 @@ public class PreIntegrationStepDefs implements En {
CommonMethods commonMethods = new CommonMethods();
public WksIntegrationTestScope context = commonMethods.getContext();
@Inject
public PreIntegrationStepDefs() {
Given("I create below source schemas used in Mapping files used for IT test", (DataTable sourceSchemaPaths) -> {
......
......@@ -11,7 +11,6 @@ import static org.junit.Assert.assertTrue;
import org.opengroup.osdu.wks.model.AutomationConstants;
import org.opengroup.osdu.wks.model.WksIntegrationTestScope;
import com.google.inject.Inject;
import io.cucumber.java8.En;
public class RelationshipBlockTestStepDefs implements En {
......@@ -21,7 +20,6 @@ public class RelationshipBlockTestStepDefs implements En {
CommonMethods commonMethods = new CommonMethods();
public WksIntegrationTestScope context = commonMethods.getContext();
@Inject
public RelationshipBlockTestStepDefs() {
Given("I hit Storage service put end point with {string} to persist a record say raw1",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment