Skip to content

Commit

Permalink
Merge pull request #247 from authorjapps/ISS-244
Browse files Browse the repository at this point in the history
ISS-244 - Dependency clean up for JUnit Jupiter Zerocode lib
  • Loading branch information
authorjapps authored Jun 7, 2019
2 parents 23accbc + 845e68d commit daacd79
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Zerocode is used by many companies such as Vocalink, HSBC, HomeOffice(Gov) and [

It is a light-weight, simple and extensible open-source framework for writing test intentions in simple JSON format that facilitates both declarative configuration and automation. The [framework manages](https://github.com/authorjapps/zerocode/wiki/What-is-Zerocode-Testing) the step-chaining, request payload handling and response assertions at the same time, same place using [JSON Path](https://github.com/json-path/JsonPath/blob/master/README.md#path-examples).

For example, if our REST API returns the following from URL "`https://localhost:8080/api/customers/123`"
For example, if our REST API returns the following from URL "`https://localhost:8080/api/customers/123`" with status `200`,
```javaScript
{
"id": 123,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.jsmart.zerocode.parallel;


import org.jboss.resteasy.spi.InternalServerErrorException;
import org.jsmart.zerocode.core.utils.PropertiesProviderUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -207,9 +206,6 @@ private Object execute(Future<Object> future) {
LOGGER.info("executing the 'Future' now...");
return future.get();
} catch (Exception futureEx) {
if (futureEx.getCause() instanceof InternalServerErrorException) {
throw (InternalServerErrorException) futureEx.getCause();
}
throw new RuntimeException(futureEx);
}
}
Expand Down
105 changes: 104 additions & 1 deletion junit5-testing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,109 @@
<artifactId>zerocode-tdd</artifactId>
<groupId>org.jsmart</groupId>
<version>${project.version}</version>
<exclusions>
<!-- The following libs can not be excluded as they are directly used -->
<!--
<exclusion>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
</exclusion>
-->
<!--
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>*</artifactId>
</exclusion>
-->
<exclusion>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxrs</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</exclusion>
<exclusion>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</exclusion>
<exclusion>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jdk8</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.classpath-explorer</groupId>
<artifactId>classpath-explorer</artifactId>
</exclusion>
<exclusion>
<groupId>org.jukito</groupId>
<artifactId>jukito</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
<exclusion>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
</exclusion>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
<exclusion>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-runner</artifactId>
</exclusion>
<exclusion>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
</exclusion>
<exclusion>
<groupId>com.aventstack</groupId>
<artifactId>extentreports</artifactId>
</exclusion>
<exclusion>
<groupId>org.skyscreamer</groupId>
<artifactId>jsonassert</artifactId>
</exclusion>
<exclusion>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
</exclusion>
<exclusion>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock</artifactId>
</exclusion>
<exclusion>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down Expand Up @@ -67,7 +170,7 @@
<!--</configurationParameters>-->
<!--</properties>-->
<includes>
<include>org.jsmart.zerocode.jupiter.extension.JupiterZeroCodeParallelTest</include>
<include>org.jsmart.zerocode.jupiter.extension.ParallelLoadExtensionTest</include>
<include>org.jsmart.zerocode.tests.loadjupiter.JUnit5LoadTest</include>
</includes>
</configuration>
Expand Down

0 comments on commit daacd79

Please sign in to comment.