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; ...@@ -15,8 +15,7 @@ import org.opengroup.osdu.wks.util.AuthUtil;
@ScenarioScoped @ScenarioScoped
public class WksIntegrationTestScope { public class WksIntegrationTestScope {
@Inject private FileUtils fileUtils = new FileUtils();
private FileUtils fileUtils;
private String token; private String token;
private String inputPayload; private String inputPayload;
......
...@@ -7,7 +7,6 @@ import static org.junit.Assert.assertEquals; ...@@ -7,7 +7,6 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
import org.opengroup.osdu.wks.model.AutomationConstants; import org.opengroup.osdu.wks.model.AutomationConstants;
import org.opengroup.osdu.wks.model.WksIntegrationTestScope; import org.opengroup.osdu.wks.model.WksIntegrationTestScope;
import com.google.inject.Inject;
import io.cucumber.java8.En; import io.cucumber.java8.En;
...@@ -18,7 +17,6 @@ public class NegativeTestStepDefs implements En { ...@@ -18,7 +17,6 @@ public class NegativeTestStepDefs implements En {
CommonMethods commonMethods = new CommonMethods(); CommonMethods commonMethods = new CommonMethods();
public WksIntegrationTestScope context = commonMethods.getContext(); public WksIntegrationTestScope context = commonMethods.getContext();
@Inject
public NegativeTestStepDefs() { public NegativeTestStepDefs() {
Given("I hit Storage service put end point with {string} which is already a WKS record", Given("I hit Storage service put end point with {string} which is already a WKS record",
(String inputPayload) -> { (String inputPayload) -> {
......
...@@ -5,8 +5,6 @@ import java.util.logging.Logger; ...@@ -5,8 +5,6 @@ import java.util.logging.Logger;
import org.opengroup.osdu.wks.model.WksIntegrationTestScope; import org.opengroup.osdu.wks.model.WksIntegrationTestScope;
import com.google.inject.Inject;
import io.cucumber.java8.En; import io.cucumber.java8.En;
import io.cucumber.datatable.DataTable; import io.cucumber.datatable.DataTable;
...@@ -17,7 +15,6 @@ public class PreIntegrationStepDefs implements En { ...@@ -17,7 +15,6 @@ public class PreIntegrationStepDefs implements En {
CommonMethods commonMethods = new CommonMethods(); CommonMethods commonMethods = new CommonMethods();
public WksIntegrationTestScope context = commonMethods.getContext(); public WksIntegrationTestScope context = commonMethods.getContext();
@Inject
public PreIntegrationStepDefs() { public PreIntegrationStepDefs() {
Given("I create below source schemas used in Mapping files used for IT test", (DataTable sourceSchemaPaths) -> { 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; ...@@ -11,7 +11,6 @@ import static org.junit.Assert.assertTrue;
import org.opengroup.osdu.wks.model.AutomationConstants; import org.opengroup.osdu.wks.model.AutomationConstants;
import org.opengroup.osdu.wks.model.WksIntegrationTestScope; import org.opengroup.osdu.wks.model.WksIntegrationTestScope;
import com.google.inject.Inject;
import io.cucumber.java8.En; import io.cucumber.java8.En;
public class RelationshipBlockTestStepDefs implements En { public class RelationshipBlockTestStepDefs implements En {
...@@ -21,7 +20,6 @@ public class RelationshipBlockTestStepDefs implements En { ...@@ -21,7 +20,6 @@ public class RelationshipBlockTestStepDefs implements En {
CommonMethods commonMethods = new CommonMethods(); CommonMethods commonMethods = new CommonMethods();
public WksIntegrationTestScope context = commonMethods.getContext(); public WksIntegrationTestScope context = commonMethods.getContext();
@Inject
public RelationshipBlockTestStepDefs() { public RelationshipBlockTestStepDefs() {
Given("I hit Storage service put end point with {string} to persist a record say raw1", 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