@@ -545,7 +545,7 @@ In `consumer/src/test/java/au/com/dius/pactworkshop/consumer/ProductConsumerPact
545
545
546
546
HttpClientErrorException e = assertThrows(HttpClientErrorException . class,
547
547
() - > new ProductService (restTemplate). getProduct(" 11" ));
548
- assertEquals(404 , e. getRawStatusCode ());
548
+ assertEquals(404 , e. getStatusCode() . value ());
549
549
}
550
550
```
551
551
@@ -818,7 +818,7 @@ public class ProductConsumerPactTest {
818
818
819
819
HttpClientErrorException e = assertThrows(HttpClientErrorException . class,
820
820
() - > new ProductService (restTemplate). getAllProducts());
821
- assertEquals(401 , e. getRawStatusCode ());
821
+ assertEquals(401 , e. getStatusCode() . value ());
822
822
}
823
823
824
824
@Test
@@ -846,7 +846,7 @@ public class ProductConsumerPactTest {
846
846
847
847
HttpClientErrorException e = assertThrows(HttpClientErrorException . class,
848
848
() - > new ProductService (restTemplate). getProduct(" 11" ));
849
- assertEquals(404 , e. getRawStatusCode ());
849
+ assertEquals(404 , e. getStatusCode() . value ());
850
850
}
851
851
852
852
@Test
@@ -858,7 +858,7 @@ public class ProductConsumerPactTest {
858
858
859
859
HttpClientErrorException e = assertThrows(HttpClientErrorException . class,
860
860
() - > new ProductService (restTemplate). getProduct(" 10" ));
861
- assertEquals(401 , e. getRawStatusCode ());
861
+ assertEquals(401 , e. getStatusCode() . value ());
862
862
}
863
863
864
864
private Map<String , String > headers () {
0 commit comments