File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/cart Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1515import commercetools .discount_code .DiscountCodeFixtures ;
1616import commercetools .utils .CommercetoolsTestUtils ;
1717
18+ import io .vrap .rmf .base .client .error .ForbiddenException ;
1819import io .vrap .rmf .base .client .error .NotFoundException ;
1920
2021import org .assertj .core .api .Assertions ;
@@ -156,7 +157,7 @@ public void expandDiscountCodeReference() {
156157 @ Test
157158 public void pathTraversal () {
158159 CartsFixtures .withCart (cart -> {
159- NotFoundException e = org .junit .jupiter .api .Assertions .assertThrows (NotFoundException .class , () -> {
160+ ForbiddenException e = org .junit .jupiter .api .Assertions .assertThrows (ForbiddenException .class , () -> {
160161 CommercetoolsTestUtils .getProjectApiRoot ().carts ().withId ("../categories" ).get ().executeBlocking ();
161162 });
162163 Assertions .assertThat (e .getMessage ()).contains ("..%2Fcategories" );
You can’t perform that action at this time.
0 commit comments