Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
usfalami committed Aug 24, 2023
1 parent bf5e429 commit cb0ebf2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.oneteme.assertapi</groupId>
<artifactId>assertapi-server</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.2-SNAPSHOT</version>
<packaging>jar</packaging>
<name>assertapi-server</name>
<description>assertapi-server</description>
Expand Down Expand Up @@ -39,6 +39,7 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.22</version>
</dependency>
<dependency>
<groupId>io.github.oneteme.assertapi</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import org.usf.assertapi.core.ApiRequest;
import org.usf.assertapi.core.ComparisonStage;
import org.usf.assertapi.core.ComparisonStatus;
import org.usf.assertapi.core.DataComparator;
import org.usf.assertapi.core.ModelComparator;
import org.usf.assertapi.core.ResponseComparatorProxy;
import org.usf.assertapi.core.RestTemplateBuilder;
import org.usf.assertapi.core.RuntimeEnvironement;
Expand Down Expand Up @@ -137,7 +137,7 @@ public ResponseComparator run(
responseComparator.setAct(new ApiResponseServer());
responseComparator.setExp(new ApiResponseServer());
var request = requestService.getRequestOne(id);
var assertions = new ApiAssertionExecutor(
ApiAssertionExecutor assertions = new ApiAssertionExecutor(
new ResponseComparatorProxy(new org.usf.assertapi.core.ResponseComparator(), null){
@Override
public void assertContentType(String expectedContentType, String actualContentType) {
Expand All @@ -154,7 +154,7 @@ public void assertStatusCode(int expectedStatusCode, int actualStatusCode) {
}

@Override
public void assertJsonContent(String expectedContent, String actualContent, DataComparator<?> strict) {
public void assertJsonContent(String expectedContent, String actualContent, ModelComparator<?> strict) {
responseComparator.getExp().setResponse(expectedContent);
responseComparator.getAct().setResponse(actualContent);
super.assertJsonContent(expectedContent, actualContent, strict);
Expand Down

0 comments on commit cb0ebf2

Please sign in to comment.