Skip to content

Added instructor readme.md #4

Added instructor readme.md

Added instructor readme.md #4

GitHub Actions / Maven Tests failed Nov 21, 2024 in 0s

23 passed, 15 failed and 0 skipped

Tests failed

Report Passed Failed Skipped Time
./java-springboot-final/target/surefire-reports/TEST-OrderEndpointTests.xml 3✅ 5❌ 320ms
./java-springboot-final/target/surefire-reports/TEST-OrderItemEndpointTests.xml 3✅ 5❌ 295ms
./java-springboot-final/target/surefire-reports/TEST-ProductEndpointTests.xml 3✅ 5❌ 7s
./java-springboot-final/target/surefire-reports/TEST-UserEndpointTests.xml 14✅ 600ms

❌ ./java-springboot-final/target/surefire-reports/TEST-OrderEndpointTests.xml

8 tests were completed in 320ms with 3 passed, 5 failed and 0 skipped.

Test suite Passed Failed Skipped Time
OrderEndpointTests 3✅ 5❌ 320ms

❌ OrderEndpointTests

❌ getOrderShouldReturnThirdOrder
	org.opentest4j.AssertionFailedError: expected: <200 OK> but was: <404 NOT_FOUND>
❌ putOrderShouldUpdateThirdOrder
	org.opentest4j.AssertionFailedError: expected: <200 OK> but was: <404 NOT_FOUND>
✅ deleteOrderShouldReturn404
❌ postOrderShouldCreateNewOrder
	org.opentest4j.AssertionFailedError: expected: <201 CREATED> but was: <404 NOT_FOUND>
✅ getOrderShouldReturn404
✅ putOrderShouldReturn404
❌ deleteOrderShouldDeleteThirdOrder
	org.springframework.web.client.RestClientException: Error while extracting response for type [class java.lang.Integer] and content type [application/json]
❌ getOrdersShouldReturnAllOrders
	org.springframework.web.client.RestClientException: Error while extracting response for type [class [Lorg.example.models.Order;] and content type [application/json]

❌ ./java-springboot-final/target/surefire-reports/TEST-OrderItemEndpointTests.xml

8 tests were completed in 295ms with 3 passed, 5 failed and 0 skipped.

Test suite Passed Failed Skipped Time
OrderItemEndpointTests 3✅ 5❌ 295ms

❌ OrderItemEndpointTests

❌ postOrderItemShouldCreateNewOrderItem
	org.opentest4j.AssertionFailedError: expected: <201 CREATED> but was: <404 NOT_FOUND>
❌ getOrderItemShouldReturnThirdOrderItem
	org.opentest4j.AssertionFailedError: expected: <200 OK> but was: <404 NOT_FOUND>
❌ getOrderItemsShouldReturnAllOrderItems
	org.springframework.web.client.RestClientException: Error while extracting response for type [class [Lorg.example.models.OrderItem;] and content type [application/json]
❌ putOrderItemShouldUpdateThirdOrderItem
	org.opentest4j.AssertionFailedError: expected: <200 OK> but was: <404 NOT_FOUND>
✅ getOrderItemShouldReturn404
✅ deleteOrderItemShouldReturn404
✅ putOrderItemShouldReturn404
❌ deleteOrderItemShouldDeleteThirdOrderItem
	org.springframework.web.client.RestClientException: Error while extracting response for type [class java.lang.Integer] and content type [application/json]

❌ ./java-springboot-final/target/surefire-reports/TEST-ProductEndpointTests.xml

8 tests were completed in 7s with 3 passed, 5 failed and 0 skipped.

Test suite Passed Failed Skipped Time
ProductEndpointTests 3✅ 5❌ 7s

❌ ProductEndpointTests

✅ putProductShouldReturn404
❌ putProductShouldUpdateCherryProduct
	org.opentest4j.AssertionFailedError: expected: <200 OK> but was: <404 NOT_FOUND>
❌ getProductsShouldReturnAllProducts
	org.springframework.web.client.RestClientException: Error while extracting response for type [class [Lorg.example.models.Product;] and content type [application/json]
❌ postProductShouldCreateNewProduct
	org.opentest4j.AssertionFailedError: expected: <201 CREATED> but was: <404 NOT_FOUND>
✅ deleteProductShouldReturn404
✅ getProductShouldReturn404
❌ getProductShouldReturnCherryProduct
	org.opentest4j.AssertionFailedError: expected: <200 OK> but was: <404 NOT_FOUND>
❌ deleteProductShouldDeleteCherryProduct
	org.springframework.web.client.RestClientException: Error while extracting response for type [class java.lang.Integer] and content type [application/json]

✅ ./java-springboot-final/target/surefire-reports/TEST-UserEndpointTests.xml

14 tests were completed in 600ms with 14 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
UserEndpointTests 14✅ 600ms

✅ UserEndpointTests

✅ deleteUserShouldFailIfUserNotAdmin
✅ getUserShouldFailIfNotAuthorized
✅ getUserShouldSucceedIfAuthorized
✅ updatePasswordShouldFailIfUserNotAdmin
✅ getUsersShouldFailIfNotAuthorized
✅ createUserShouldSucceedIfNotAuthorized
✅ getUsersShouldSucceedIfAuthorized
✅ deleteUserShouldFailIfNotAuthorized
✅ getUserShouldFailIfUserNotAdmin
✅ deleteUserShouldSucceedIfAuthorized
✅ updatePasswordShouldFailIfNotAuthorized
✅ createUserShouldSucceedIfAuthorized
✅ updatePasswordShouldSucceedIfAuthorized
✅ getUsersShouldFailIfUserNotAdmin

Annotations

Check failure on line 0 in ./java-springboot-final/target/surefire-reports/TEST-OrderEndpointTests.xml

See this annotation in the file changed.

@github-actions github-actions / Maven Tests

OrderEndpointTests ► getOrderShouldReturnThirdOrder

Failed test found in:
  ./java-springboot-final/target/surefire-reports/TEST-OrderEndpointTests.xml
Error:
  org.opentest4j.AssertionFailedError: expected: <200 OK> but was: <404 NOT_FOUND>
Raw output
org.opentest4j.AssertionFailedError: expected: <200 OK> but was: <404 NOT_FOUND>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
	at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145)
	at OrderEndpointTests.getOrderShouldReturnThirdOrder(OrderEndpointTests.java:54)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

Check failure on line 0 in ./java-springboot-final/target/surefire-reports/TEST-OrderEndpointTests.xml

See this annotation in the file changed.

@github-actions github-actions / Maven Tests

OrderEndpointTests ► putOrderShouldUpdateThirdOrder

Failed test found in:
  ./java-springboot-final/target/surefire-reports/TEST-OrderEndpointTests.xml
Error:
  org.opentest4j.AssertionFailedError: expected: <200 OK> but was: <404 NOT_FOUND>
Raw output
org.opentest4j.AssertionFailedError: expected: <200 OK> but was: <404 NOT_FOUND>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
	at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145)
	at OrderEndpointTests.putOrderShouldUpdateThirdOrder(OrderEndpointTests.java:87)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

Check failure on line 0 in ./java-springboot-final/target/surefire-reports/TEST-OrderEndpointTests.xml

See this annotation in the file changed.

@github-actions github-actions / Maven Tests

OrderEndpointTests ► postOrderShouldCreateNewOrder

Failed test found in:
  ./java-springboot-final/target/surefire-reports/TEST-OrderEndpointTests.xml
Error:
  org.opentest4j.AssertionFailedError: expected: <201 CREATED> but was: <404 NOT_FOUND>
Raw output
org.opentest4j.AssertionFailedError: expected: <201 CREATED> but was: <404 NOT_FOUND>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
	at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145)
	at OrderEndpointTests.postOrderShouldCreateNewOrder(OrderEndpointTests.java:74)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

Check failure on line 0 in ./java-springboot-final/target/surefire-reports/TEST-OrderEndpointTests.xml

See this annotation in the file changed.

@github-actions github-actions / Maven Tests

OrderEndpointTests ► deleteOrderShouldDeleteThirdOrder

Failed test found in:
  ./java-springboot-final/target/surefire-reports/TEST-OrderEndpointTests.xml
Error:
  org.springframework.web.client.RestClientException: Error while extracting response for type [class java.lang.Integer] and content type [application/json]
Raw output
org.springframework.web.client.RestClientException: Error while extracting response for type [class java.lang.Integer] and content type [application/json]
	at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:119)
	at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:1159)
	at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:1142)
	at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:892)
	at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:790)
	at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:672)
	at org.springframework.boot.test.web.client.TestRestTemplate.exchange(TestRestTemplate.java:710)
	at OrderEndpointTests.deleteOrderShouldDeleteThirdOrder(OrderEndpointTests.java:106)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type `java.lang.Integer` from Object value (token `JsonToken.START_OBJECT`)
	at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readJavaType(AbstractJackson2HttpMessageConverter.java:406)
	at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.read(AbstractJackson2HttpMessageConverter.java:354)
	at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:104)
	... 10 more
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `java.lang.Integer` from Object value (token `JsonToken.START_OBJECT`)
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 1]
	at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
	at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1767)
	at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1541)
	at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1446)
	at com.fasterxml.jackson.databind.DeserializationContext.extractScalarFromObject(DeserializationContext.java:958)
	at com.fasterxml.jackson.databind.deser.std.StdDeserializer._parseInteger(StdDeserializer.java:808)
	at com.fasterxml.jackson.databind.deser.std.NumberDeserializers$IntegerDeserializer.deserialize(NumberDeserializers.java:531)
	at com.fasterxml.jackson.databind.deser.std.NumberDeserializers$IntegerDeserializer.deserialize(NumberDeserializers.java:506)
	at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:342)
	at com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:2125)
	at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1501)
	at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readJavaType(AbstractJackson2HttpMessageConverter.java:395)
	... 12 more

Check failure on line 0 in ./java-springboot-final/target/surefire-reports/TEST-OrderEndpointTests.xml

See this annotation in the file changed.

@github-actions github-actions / Maven Tests

OrderEndpointTests ► getOrdersShouldReturnAllOrders

Failed test found in:
  ./java-springboot-final/target/surefire-reports/TEST-OrderEndpointTests.xml
Error:
  org.springframework.web.client.RestClientException: Error while extracting response for type [class [Lorg.example.models.Order;] and content type [application/json]
Raw output
org.springframework.web.client.RestClientException: Error while extracting response for type [class [Lorg.example.models.Order;] and content type [application/json]
	at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:119)
	at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:1159)
	at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:1142)
	at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:892)
	at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:790)
	at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:672)
	at org.springframework.boot.test.web.client.TestRestTemplate.exchange(TestRestTemplate.java:710)
	at OrderEndpointTests.getOrdersShouldReturnAllOrders(OrderEndpointTests.java:25)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type `org.example.models.Order[]` from Object value (token `JsonToken.START_OBJECT`)
	at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readJavaType(AbstractJackson2HttpMessageConverter.java:406)
	at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.read(AbstractJackson2HttpMessageConverter.java:354)
	at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:104)
	... 10 more
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `org.example.models.Order[]` from Object value (token `JsonToken.START_OBJECT`)
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 1]
	at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
	at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1767)
	at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1541)
	at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1488)
	at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.handleNonArray(ObjectArrayDeserializer.java:347)
	at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:198)
	at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:342)
	at com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:2125)
	at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1501)
	at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readJavaType(AbstractJackson2HttpMessageConverter.java:395)
	... 12 more

Check failure on line 0 in ./java-springboot-final/target/surefire-reports/TEST-OrderItemEndpointTests.xml

See this annotation in the file changed.

@github-actions github-actions / Maven Tests

OrderItemEndpointTests ► postOrderItemShouldCreateNewOrderItem

Failed test found in:
  ./java-springboot-final/target/surefire-reports/TEST-OrderItemEndpointTests.xml
Error:
  org.opentest4j.AssertionFailedError: expected: <201 CREATED> but was: <404 NOT_FOUND>
Raw output
org.opentest4j.AssertionFailedError: expected: <201 CREATED> but was: <404 NOT_FOUND>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
	at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145)
	at OrderItemEndpointTests.postOrderItemShouldCreateNewOrderItem(OrderItemEndpointTests.java:86)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

Check failure on line 0 in ./java-springboot-final/target/surefire-reports/TEST-OrderItemEndpointTests.xml

See this annotation in the file changed.

@github-actions github-actions / Maven Tests

OrderItemEndpointTests ► getOrderItemShouldReturnThirdOrderItem

Failed test found in:
  ./java-springboot-final/target/surefire-reports/TEST-OrderItemEndpointTests.xml
Error:
  org.opentest4j.AssertionFailedError: expected: <200 OK> but was: <404 NOT_FOUND>
Raw output
org.opentest4j.AssertionFailedError: expected: <200 OK> but was: <404 NOT_FOUND>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
	at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145)
	at OrderItemEndpointTests.getOrderItemShouldReturnThirdOrderItem(OrderItemEndpointTests.java:65)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

Check failure on line 0 in ./java-springboot-final/target/surefire-reports/TEST-OrderItemEndpointTests.xml

See this annotation in the file changed.

@github-actions github-actions / Maven Tests

OrderItemEndpointTests ► getOrderItemsShouldReturnAllOrderItems

Failed test found in:
  ./java-springboot-final/target/surefire-reports/TEST-OrderItemEndpointTests.xml
Error:
  org.springframework.web.client.RestClientException: Error while extracting response for type [class [Lorg.example.models.OrderItem;] and content type [application/json]
Raw output
org.springframework.web.client.RestClientException: Error while extracting response for type [class [Lorg.example.models.OrderItem;] and content type [application/json]
	at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:119)
	at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:1159)
	at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:1142)
	at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:892)
	at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:790)
	at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:672)
	at org.springframework.boot.test.web.client.TestRestTemplate.exchange(TestRestTemplate.java:710)
	at OrderItemEndpointTests.getOrderItemsShouldReturnAllOrderItems(OrderItemEndpointTests.java:31)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type `org.example.models.OrderItem[]` from Object value (token `JsonToken.START_OBJECT`)
	at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readJavaType(AbstractJackson2HttpMessageConverter.java:406)
	at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.read(AbstractJackson2HttpMessageConverter.java:354)
	at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:104)
	... 10 more
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `org.example.models.OrderItem[]` from Object value (token `JsonToken.START_OBJECT`)
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 1]
	at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
	at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1767)
	at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1541)
	at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1488)
	at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.handleNonArray(ObjectArrayDeserializer.java:347)
	at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:198)
	at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:342)
	at com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:2125)
	at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1501)
	at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readJavaType(AbstractJackson2HttpMessageConverter.java:395)
	... 12 more

Check failure on line 0 in ./java-springboot-final/target/surefire-reports/TEST-OrderItemEndpointTests.xml

See this annotation in the file changed.

@github-actions github-actions / Maven Tests

OrderItemEndpointTests ► putOrderItemShouldUpdateThirdOrderItem

Failed test found in:
  ./java-springboot-final/target/surefire-reports/TEST-OrderItemEndpointTests.xml
Error:
  org.opentest4j.AssertionFailedError: expected: <200 OK> but was: <404 NOT_FOUND>
Raw output
org.opentest4j.AssertionFailedError: expected: <200 OK> but was: <404 NOT_FOUND>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
	at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145)
	at OrderItemEndpointTests.putOrderItemShouldUpdateThirdOrderItem(OrderItemEndpointTests.java:99)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

Check failure on line 0 in ./java-springboot-final/target/surefire-reports/TEST-OrderItemEndpointTests.xml

See this annotation in the file changed.

@github-actions github-actions / Maven Tests

OrderItemEndpointTests ► deleteOrderItemShouldDeleteThirdOrderItem

Failed test found in:
  ./java-springboot-final/target/surefire-reports/TEST-OrderItemEndpointTests.xml
Error:
  org.springframework.web.client.RestClientException: Error while extracting response for type [class java.lang.Integer] and content type [application/json]
Raw output
org.springframework.web.client.RestClientException: Error while extracting response for type [class java.lang.Integer] and content type [application/json]
	at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:119)
	at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:1159)
	at org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:1142)
	at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:892)
	at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:790)
	at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:672)
	at org.springframework.boot.test.web.client.TestRestTemplate.exchange(TestRestTemplate.java:710)
	at OrderItemEndpointTests.deleteOrderItemShouldDeleteThirdOrderItem(OrderItemEndpointTests.java:119)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type `java.lang.Integer` from Object value (token `JsonToken.START_OBJECT`)
	at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readJavaType(AbstractJackson2HttpMessageConverter.java:406)
	at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.read(AbstractJackson2HttpMessageConverter.java:354)
	at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:104)
	... 10 more
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `java.lang.Integer` from Object value (token `JsonToken.START_OBJECT`)
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 1]
	at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
	at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1767)
	at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1541)
	at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1446)
	at com.fasterxml.jackson.databind.DeserializationContext.extractScalarFromObject(DeserializationContext.java:958)
	at com.fasterxml.jackson.databind.deser.std.StdDeserializer._parseInteger(StdDeserializer.java:808)
	at com.fasterxml.jackson.databind.deser.std.NumberDeserializers$IntegerDeserializer.deserialize(NumberDeserializers.java:531)
	at com.fasterxml.jackson.databind.deser.std.NumberDeserializers$IntegerDeserializer.deserialize(NumberDeserializers.java:506)
	at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:342)
	at com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:2125)
	at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1501)
	at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readJavaType(AbstractJackson2HttpMessageConverter.java:395)
	... 12 more

Check failure on line 0 in ./java-springboot-final/target/surefire-reports/TEST-ProductEndpointTests.xml

See this annotation in the file changed.

@github-actions github-actions / Maven Tests

ProductEndpointTests ► putProductShouldUpdateCherryProduct

Failed test found in:
  ./java-springboot-final/target/surefire-reports/TEST-ProductEndpointTests.xml
Error:
  org.opentest4j.AssertionFailedError: expected: <200 OK> but was: <404 NOT_FOUND>
Raw output
org.opentest4j.AssertionFailedError: expected: <200 OK> but was: <404 NOT_FOUND>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
	at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
	at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145)
	at ProductEndpointTests.putProductShouldUpdateCherryProduct(ProductEndpointTests.java:89)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)