Skip to content

Commit

Permalink
feature(chore):962 fixed sentToBpn.
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-mwesener committed Jun 24, 2024
1 parent aa07aca commit 4892811
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
import static io.restassured.RestAssured.given;
import static org.eclipse.tractusx.traceability.common.security.JwtRole.ADMIN;
import static org.eclipse.tractusx.traceability.common.security.JwtRole.USER;
import static org.hamcrest.Matchers.allOf;
import static org.hamcrest.Matchers.hasEntry;
import static org.hamcrest.Matchers.hasItem;

class BpnMappingControllerIT extends IntegrationTestSpecification {

Expand Down Expand Up @@ -92,9 +95,11 @@ void givenBpnMappingRequest_whenUpdate_thenUpdateIt() throws JoseException {
.get("/api/bpn-config")
.then()
.statusCode(200)
.log().all()
.body("", Matchers.hasSize(2))
.body("[1].bpn", Matchers.equalTo("BPNL00000003TEST"))
.body("[1].url", Matchers.equalTo("https://newurl.com"));
.body("", hasItem(allOf(
hasEntry("bpn", "BPNL00000003TEST"),
hasEntry("url", "https://newurl.com"))));
}
}

Expand Down

0 comments on commit 4892811

Please sign in to comment.