Skip to content

Commit

Permalink
Cucumber Http Response
Browse files Browse the repository at this point in the history
  • Loading branch information
nhojpatrick committed Dec 13, 2022
1 parent 9e94dd2 commit fd40afe
Show file tree
Hide file tree
Showing 12 changed files with 140 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@
<artifactId>nhojpatrick-cucumber-http-request-glue</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.github.nhojpatrick.cucumber</groupId>
<artifactId>nhojpatrick-cucumber-http-response</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.github.nhojpatrick.cucumber</groupId>
<artifactId>nhojpatrick-cucumber-json-all</artifactId>
Expand Down
4 changes: 4 additions & 0 deletions http/all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
<groupId>com.github.nhojpatrick.cucumber</groupId>
<artifactId>nhojpatrick-cucumber-http-request</artifactId>
</dependency>
<dependency>
<groupId>com.github.nhojpatrick.cucumber</groupId>
<artifactId>nhojpatrick-cucumber-http-response</artifactId>
</dependency>
</dependencies>
<!--reports (Deprecated) / -->
<!--reporting / -->
Expand Down
1 change: 1 addition & 0 deletions http/all/src/main/java11/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
requires transitive com.github.nhojpatrick.cucumber.http.constants;
requires transitive com.github.nhojpatrick.cucumber.http.core;
requires transitive com.github.nhojpatrick.cucumber.http.request;
requires transitive com.github.nhojpatrick.cucumber.http.response;
}
1 change: 1 addition & 0 deletions http/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<module>core</module>
<module>request</module>
<module>request-glue</module>
<module>response</module>
</modules>
<!--repositories / -->
<!--pluginRepositories / -->
Expand Down
81 changes: 81 additions & 0 deletions http/response/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?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-http-parent</artifactId>
<version>1.0.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<!--groupId / -->
<!--artifactId / -->
<artifactId>nhojpatrick-cucumber-http-response</artifactId>
<!--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-core</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-slf4j2-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</project.Automatic-Module-Name>
</properties>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.github.nhojpatrick.cucumber.http.response;

public class HttpResponseUtil {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.github.nhojpatrick.cucumber.http.response;

public class ModuleInfoHack {
}
8 changes: 8 additions & 0 deletions http/response/src/main/java11/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module com.github.nhojpatrick.cucumber.http.response {
exports com.github.nhojpatrick.cucumber.http.response;
requires org.hamcrest;
requires org.junit.jupiter.api;
requires org.slf4j;
requires transitive com.github.nhojpatrick.cucumber.http.core;
requires transitive com.github.nhojpatrick.cucumber.state;
}
Empty file.
7 changes: 7 additions & 0 deletions http/response/src/test/java11/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
open module com.github.nhojpatrick.cucumber.http.response.test {
requires com.github.nhojpatrick.cucumber.http.response;
requires org.apache.logging.log4j;
requires org.hamcrest;
requires transitive org.junit.jupiter.api;
requires transitive org.junit.jupiter.engine;
}
19 changes: 19 additions & 0 deletions http/response/src/test/resources/log4j2.xml
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" 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>
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,11 @@
<artifactId>nhojpatrick-cucumber-http-request-glue</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.github.nhojpatrick.cucumber</groupId>
<artifactId>nhojpatrick-cucumber-http-response</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.github.nhojpatrick.cucumber</groupId>
<artifactId>nhojpatrick-cucumber-json-all</artifactId>
Expand Down

0 comments on commit fd40afe

Please sign in to comment.