-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8208210
commit 4aa3d4b
Showing
11 changed files
with
166 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<!--modelVersion / --> | ||
<modelVersion>4.0.0</modelVersion> | ||
<!--parent / --> | ||
<parent> | ||
<groupId>com.github.nhojpatrick.cucumber</groupId> | ||
<artifactId>nhojpatrick-cucumber</artifactId> | ||
<version>1.0.2-SNAPSHOT</version> | ||
<relativePath>../../pom.xml</relativePath> | ||
</parent> | ||
<!--groupId / --> | ||
<!--artifactId / --> | ||
<artifactId>nhojpatrick-cucumber-http-response-glue</artifactId> | ||
<!--packaging / --> | ||
<packaging>jar</packaging> | ||
<!--name / --> | ||
<!--version / --> | ||
<!--description / --> | ||
<!--url / --> | ||
<!--prerequisites / --> | ||
<!--issueManagement / --> | ||
<!--ciManagement / --> | ||
<!--inceptionYear / --> | ||
<!--mailingLists / --> | ||
<!--developers / --> | ||
<!--contributors / --> | ||
<!--licenses / --> | ||
<!--scm / --> | ||
<!--organization / --> | ||
<!--build /--> | ||
<!--profiles / --> | ||
<!--modules / --> | ||
<!--repositories / --> | ||
<!--pluginRepositories / --> | ||
<!--dependencies / --> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.github.nhojpatrick.cucumber</groupId> | ||
<artifactId>nhojpatrick-cucumber-http-response</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.github.nhojpatrick.cucumber</groupId> | ||
<artifactId>nhojpatrick-cucumber-state</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.github.nhojpatrick.hamcrest</groupId> | ||
<artifactId>nhojpatrick-hamcrest-lang</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.logging.log4j</groupId> | ||
<artifactId>log4j-slf4j-impl</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.hamcrest</groupId> | ||
<artifactId>hamcrest</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.junit.jupiter</groupId> | ||
<artifactId>junit-jupiter-api</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.junit.jupiter</groupId> | ||
<artifactId>junit-jupiter-engine</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-api</artifactId> | ||
</dependency> | ||
</dependencies> | ||
<!--reports (Deprecated) / --> | ||
<!--reporting / --> | ||
<!--dependencyManagement / --> | ||
<!--distributionManagement / --> | ||
<!--properties / --> | ||
<properties> | ||
<project.Automatic-Module-Name>com.github.nhojpatrick.cucumber.http.response.glue</project.Automatic-Module-Name> | ||
<project.surefire.argLine.jpms.module></project.surefire.argLine.jpms.module> | ||
</properties> | ||
</project> |
35 changes: 35 additions & 0 deletions
35
.../src/main/java/com/github/nhojpatrick/cucumber/http/response/steps/HttpResponseSteps.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.github.nhojpatrick.cucumber.http.response.steps; | ||
|
||
import com.github.nhojpatrick.cucumber.core.exceptions.IllegalKeyException; | ||
import com.github.nhojpatrick.cucumber.state.RunState; | ||
import com.github.nhojpatrick.cucumber.state.exceptions.NullRunStateException; | ||
import com.github.nhojpatrick.cucumber.state.validation.RunStateValidatorFactory; | ||
import com.google.inject.Inject; | ||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; | ||
import io.cucumber.java.en.Given; | ||
|
||
import static com.github.nhojpatrick.cucumber.http.constants.HttpConstants.HTTP_RESPONSE_BODY; | ||
|
||
public class HttpResponseSteps { | ||
|
||
@SuppressFBWarnings(value = "EI_EXPOSE_REP2", justification = "Accepted will look at changing") | ||
private final RunState runState; | ||
|
||
@Inject | ||
public HttpResponseSteps(final RunState runState) { | ||
this.runState = runState; | ||
} | ||
|
||
@Given("http trace to url {string}") | ||
public void httpTraceToUrl(final String url) | ||
throws IllegalKeyException, | ||
NullRunStateException { | ||
|
||
RunStateValidatorFactory.getInstance() | ||
.withValue(HTTP_RESPONSE_BODY) | ||
.verify(this.runState); | ||
|
||
throw new UnsupportedOperationException("To Be Implemented"); | ||
} | ||
|
||
} |
4 changes: 4 additions & 0 deletions
4
...e/src/main/java11/com/github/nhojpatrick/cucumber/http/response/steps/ModuleInfoHack.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.github.nhojpatrick.cucumber.http.response.steps; | ||
|
||
public class ModuleInfoHack { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module com.github.nhojpatrick.cucumber.http.response.glue { | ||
requires transitive com.github.nhojpatrick.cucumber.http.constants; | ||
requires transitive com.github.nhojpatrick.cucumber.http.core; | ||
requires transitive com.github.nhojpatrick.cucumber.http.response; | ||
requires transitive com.github.nhojpatrick.cucumber.state; | ||
requires org.hamcrest; | ||
requires org.junit.jupiter.api; | ||
requires org.slf4j; | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration> | ||
<Appenders> | ||
<Console name="Console" target="SYSTEM_OUT"> | ||
<PatternLayout pattern="TestConsole %-5p %l %m%n"/> | ||
</Console> | ||
</Appenders> | ||
<Loggers> | ||
<Logger name="com.github.nhojpatrick.cucumber.http.response.steps" level="debug"> | ||
<AppenderRef ref="Console"/> | ||
</Logger> | ||
<Logger name="com.github.nhojpatrick" level="info"> | ||
<AppenderRef ref="Console"/> | ||
</Logger> | ||
<Root level="error"> | ||
<AppenderRef ref="Console"/> | ||
</Root> | ||
</Loggers> | ||
</Configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters