17 lines
513 B
Java
17 lines
513 B
Java
package com.gmgauthier.cucumber;
|
|
|
|
import com.gmgauthier.JsonUtils;
|
|
import io.cucumber.datatable.DataTable;
|
|
import io.cucumber.java.en.Given;
|
|
import io.cucumber.junit.platform.engine.Cucumber;
|
|
import kong.unirest.json.JSONObject;
|
|
|
|
@Cucumber
|
|
public class MyStepdefs {
|
|
@Given("The following data in a table")
|
|
public void theFollowingDataInATable(DataTable dataTable) {
|
|
JSONObject dataTableAsJson = new JsonUtils().getJsonFromDataTable(dataTable);
|
|
System.out.println(dataTableAsJson);
|
|
}
|
|
}
|