Skip to content

Feature/962 notification model update #55

Feature/962 notification model update

Feature/962 notification model update #55

GitHub Actions / Unit Test Results failed Jun 18, 2024 in 0s

11 errors, 197 pass in 20s

208 tests  ±0   197 ✅ ±0   20s ⏱️ -1s
 55 suites ±0     0 💤 ±0 
 55 files   ±0     0 ❌ ±0   11 🔥 ±0 

Results for commit 341d14b. ± Comparison against earlier commit 5f655ff.

Annotations

Check failure on line 0 in org.eclipse.tractusx.traceability.notification.domain.service.InvestigationsReceiverServiceTest

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

testhandleUpdateValidAcceptedNotificationTransition (org.eclipse.tractusx.traceability.notification.domain.service.InvestigationsReceiverServiceTest) with error

tx-backend/target/surefire-reports/TEST-org.eclipse.tractusx.traceability.notification.domain.service.InvestigationsReceiverServiceTest.xml [took 0s]
Raw output
Cannot invoke "org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationSeverity.getRealName()" because the return value of "org.eclipse.tractusx.traceability.notification.domain.base.model.Notification.getNotificationSeverity()" is null
java.lang.NullPointerException: Cannot invoke "org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationSeverity.getRealName()" because the return value of "org.eclipse.tractusx.traceability.notification.domain.base.model.Notification.getNotificationSeverity()" is null
	at org.eclipse.tractusx.traceability.notification.infrastructure.edc.model.EDCNotificationFactory.createEdcNotification(EDCNotificationFactory.java:44)
	at org.eclipse.tractusx.traceability.notification.domain.service.InvestigationsReceiverServiceTest.testhandleUpdateValidAcceptedNotificationTransition(InvestigationsReceiverServiceTest.java:211)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	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 org.eclipse.tractusx.traceability.notification.domain.service.InvestigationsReceiverServiceTest

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

testHandleNotificationUpdateValidAcknowledgeNotificationTransition (org.eclipse.tractusx.traceability.notification.domain.service.InvestigationsReceiverServiceTest) with error

tx-backend/target/surefire-reports/TEST-org.eclipse.tractusx.traceability.notification.domain.service.InvestigationsReceiverServiceTest.xml [took 0s]
Raw output
Cannot invoke "org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationSeverity.getRealName()" because the return value of "org.eclipse.tractusx.traceability.notification.domain.base.model.Notification.getNotificationSeverity()" is null
java.lang.NullPointerException: Cannot invoke "org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationSeverity.getRealName()" because the return value of "org.eclipse.tractusx.traceability.notification.domain.base.model.Notification.getNotificationSeverity()" is null
	at org.eclipse.tractusx.traceability.notification.infrastructure.edc.model.EDCNotificationFactory.createEdcNotification(EDCNotificationFactory.java:44)
	at org.eclipse.tractusx.traceability.notification.domain.service.InvestigationsReceiverServiceTest.testHandleNotificationUpdateValidAcknowledgeNotificationTransition(InvestigationsReceiverServiceTest.java:137)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	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 org.eclipse.tractusx.traceability.notification.domain.service.InvestigationsReceiverServiceTest

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

testhandleUpdateValidDeclineNotificationTransition (org.eclipse.tractusx.traceability.notification.domain.service.InvestigationsReceiverServiceTest) with error

tx-backend/target/surefire-reports/TEST-org.eclipse.tractusx.traceability.notification.domain.service.InvestigationsReceiverServiceTest.xml [took 0s]
Raw output
Cannot invoke "org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationSeverity.getRealName()" because the return value of "org.eclipse.tractusx.traceability.notification.domain.base.model.Notification.getNotificationSeverity()" is null
java.lang.NullPointerException: Cannot invoke "org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationSeverity.getRealName()" because the return value of "org.eclipse.tractusx.traceability.notification.domain.base.model.Notification.getNotificationSeverity()" is null
	at org.eclipse.tractusx.traceability.notification.infrastructure.edc.model.EDCNotificationFactory.createEdcNotification(EDCNotificationFactory.java:44)
	at org.eclipse.tractusx.traceability.notification.domain.service.InvestigationsReceiverServiceTest.testhandleUpdateValidDeclineNotificationTransition(InvestigationsReceiverServiceTest.java:174)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	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 org.eclipse.tractusx.traceability.notification.domain.service.InvestigationsReceiverServiceTest

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

testhandleUpdateValidCloseNotificationTransition (org.eclipse.tractusx.traceability.notification.domain.service.InvestigationsReceiverServiceTest) with error

tx-backend/target/surefire-reports/TEST-org.eclipse.tractusx.traceability.notification.domain.service.InvestigationsReceiverServiceTest.xml [took 0s]
Raw output
Cannot invoke "org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationSeverity.getRealName()" because the return value of "org.eclipse.tractusx.traceability.notification.domain.base.model.Notification.getNotificationSeverity()" is null
java.lang.NullPointerException: Cannot invoke "org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationSeverity.getRealName()" because the return value of "org.eclipse.tractusx.traceability.notification.domain.base.model.Notification.getNotificationSeverity()" is null
	at org.eclipse.tractusx.traceability.notification.infrastructure.edc.model.EDCNotificationFactory.createEdcNotification(EDCNotificationFactory.java:44)
	at org.eclipse.tractusx.traceability.notification.domain.service.InvestigationsReceiverServiceTest.testhandleUpdateValidCloseNotificationTransition(InvestigationsReceiverServiceTest.java:248)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	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 org.eclipse.tractusx.traceability.notification.domain.service.InvestigationsReceiverServiceTest

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

testhandleReceiveValidSentNotification (org.eclipse.tractusx.traceability.notification.domain.service.InvestigationsReceiverServiceTest) with error

tx-backend/target/surefire-reports/TEST-org.eclipse.tractusx.traceability.notification.domain.service.InvestigationsReceiverServiceTest.xml [took 0s]
Raw output
Cannot invoke "org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationSeverity.getRealName()" because the return value of "org.eclipse.tractusx.traceability.notification.domain.base.model.Notification.getNotificationSeverity()" is null
java.lang.NullPointerException: Cannot invoke "org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationSeverity.getRealName()" because the return value of "org.eclipse.tractusx.traceability.notification.domain.base.model.Notification.getNotificationSeverity()" is null
	at org.eclipse.tractusx.traceability.notification.infrastructure.edc.model.EDCNotificationFactory.createEdcNotification(EDCNotificationFactory.java:44)
	at org.eclipse.tractusx.traceability.notification.domain.service.InvestigationsReceiverServiceTest.testhandleReceiveValidSentNotification(InvestigationsReceiverServiceTest.java:98)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	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 org.eclipse.tractusx.traceability.notification.application.alert.response.AlertResponseTest

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

givenNotification_whenFrom_thenConstructProperAlertResponse (org.eclipse.tractusx.traceability.notification.application.alert.response.AlertResponseTest) with error

tx-backend/target/surefire-reports/TEST-org.eclipse.tractusx.traceability.notification.application.alert.response.AlertResponseTest.xml [took 0s]
Raw output
Cannot invoke "org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationSeverity.getRealName()" because the return value of "org.eclipse.tractusx.traceability.notification.domain.base.model.Notification.getNotificationSeverity()" is null
java.lang.NullPointerException: Cannot invoke "org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationSeverity.getRealName()" because the return value of "org.eclipse.tractusx.traceability.notification.domain.base.model.Notification.getNotificationSeverity()" is null
	at org.eclipse.tractusx.traceability.notification.application.notification.mapper.NotificationResponseMapper.from(NotificationResponseMapper.java:59)
	at org.eclipse.tractusx.traceability.notification.application.alert.response.AlertResponseTest.givenNotification_whenFrom_thenConstructProperAlertResponse(AlertResponseTest.java:46)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	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 org.eclipse.tractusx.traceability.notification.application.alert.response.AlertResponseTest

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

givenNotificationPaged_whenFromAsPageResult_thenConstructProperAlertResponse (org.eclipse.tractusx.traceability.notification.application.alert.response.AlertResponseTest) with error

tx-backend/target/surefire-reports/TEST-org.eclipse.tractusx.traceability.notification.application.alert.response.AlertResponseTest.xml [took 0s]
Raw output
Cannot invoke "org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationSeverity.getRealName()" because the return value of "org.eclipse.tractusx.traceability.notification.domain.base.model.Notification.getNotificationSeverity()" is null
java.lang.NullPointerException: Cannot invoke "org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationSeverity.getRealName()" because the return value of "org.eclipse.tractusx.traceability.notification.domain.base.model.Notification.getNotificationSeverity()" is null
	at org.eclipse.tractusx.traceability.notification.application.notification.mapper.NotificationResponseMapper.from(NotificationResponseMapper.java:59)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:720)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575)
	at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622)
	at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627)
	at org.eclipse.tractusx.traceability.notification.application.notification.mapper.NotificationResponseMapper.fromAsPageResult(NotificationResponseMapper.java:66)
	at org.eclipse.tractusx.traceability.notification.application.alert.response.AlertResponseTest.givenNotificationPaged_whenFromAsPageResult_thenConstructProperAlertResponse(AlertResponseTest.java:81)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	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 org.eclipse.tractusx.traceability.infrastructure.edc.blackbox.NotificationsEDCFacadeTest

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

givenCorrectInvestigationMessageButSendRequestThrowsException_whenStartEdcTransfer_thenThrowSendNotificationException (org.eclipse.tractusx.traceability.infrastructure.edc.blackbox.NotificationsEDCFacadeTest) with error

tx-backend/target/surefire-reports/TEST-org.eclipse.tractusx.traceability.infrastructure.edc.blackbox.NotificationsEDCFacadeTest.xml [took 0s]
Raw output
Unnecessary stubbings detected.
Clean & maintainable test code requires zero unnecessary code.
Following stubbings are unnecessary (click to navigate to relevant line of code):
  1. -> at org.eclipse.tractusx.traceability.infrastructure.edc.blackbox.NotificationsEDCFacadeTest.givenCorrectInvestigationMessageButSendRequestThrowsException_whenStartEdcTransfer_thenThrowSendNotificationException(NotificationsEDCFacadeTest.java:89)
  2. -> at org.eclipse.tractusx.traceability.infrastructure.edc.blackbox.NotificationsEDCFacadeTest.givenCorrectInvestigationMessageButSendRequestThrowsException_whenStartEdcTransfer_thenThrowSendNotificationException(NotificationsEDCFacadeTest.java:90)
  3. -> at org.eclipse.tractusx.traceability.infrastructure.edc.blackbox.NotificationsEDCFacadeTest.givenCorrectInvestigationMessageButSendRequestThrowsException_whenStartEdcTransfer_thenThrowSendNotificationException(NotificationsEDCFacadeTest.java:91)
  4. -> at org.eclipse.tractusx.traceability.infrastructure.edc.blackbox.NotificationsEDCFacadeTest.givenCorrectInvestigationMessageButSendRequestThrowsException_whenStartEdcTransfer_thenThrowSendNotificationException(NotificationsEDCFacadeTest.java:93)
Please remove unnecessary stubbings or use 'lenient' strictness. More info: javadoc for UnnecessaryStubbingException class.
org.mockito.exceptions.misusing.UnnecessaryStubbingException: 

Unnecessary stubbings detected.
Clean & maintainable test code requires zero unnecessary code.
Following stubbings are unnecessary (click to navigate to relevant line of code):
  1. -> at org.eclipse.tractusx.traceability.infrastructure.edc.blackbox.NotificationsEDCFacadeTest.givenCorrectInvestigationMessageButSendRequestThrowsException_whenStartEdcTransfer_thenThrowSendNotificationException(NotificationsEDCFacadeTest.java:89)
  2. -> at org.eclipse.tractusx.traceability.infrastructure.edc.blackbox.NotificationsEDCFacadeTest.givenCorrectInvestigationMessageButSendRequestThrowsException_whenStartEdcTransfer_thenThrowSendNotificationException(NotificationsEDCFacadeTest.java:90)
  3. -> at org.eclipse.tractusx.traceability.infrastructure.edc.blackbox.NotificationsEDCFacadeTest.givenCorrectInvestigationMessageButSendRequestThrowsException_whenStartEdcTransfer_thenThrowSendNotificationException(NotificationsEDCFacadeTest.java:91)
  4. -> at org.eclipse.tractusx.traceability.infrastructure.edc.blackbox.NotificationsEDCFacadeTest.givenCorrectInvestigationMessageButSendRequestThrowsException_whenStartEdcTransfer_thenThrowSendNotificationException(NotificationsEDCFacadeTest.java:93)
Please remove unnecessary stubbings or use 'lenient' strictness. More info: javadoc for UnnecessaryStubbingException class.
	at org.mockito.junit.jupiter.MockitoExtension.afterEach(MockitoExtension.java:192)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
10:18:26.442 [main] INFO org.eclipse.tractusx.traceability.notification.domain.base.service.NotificationsEDCFacade -- -- catalog item check --
10:18:26.442 [main] INFO org.eclipse.tractusx.traceability.notification.domain.base.service.NotificationsEDCFacade -- Item null: CatalogItem(assetPropId=null, itemId=null, policy=null, connectorId=null, offerId=null, validUntil=null)
10:18:26.442 [main] INFO org.eclipse.tractusx.traceability.notification.domain.base.service.NotificationsEDCFacade -- IsValid : true
10:18:26.442 [main] INFO org.eclipse.tractusx.traceability.notification.domain.base.service.NotificationsEDCFacade -- Negotiation of contract agreement for receiverEdcUrl https://receiver.com and catalogItem CatalogItem(assetPropId=null, itemId=null, policy=null, connectorId=null, offerId=null, validUntil=null)

Check failure on line 0 in org.eclipse.tractusx.traceability.notification.domain.service.NotificationPublisherServiceTest

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

testStartAlertSuccessful (org.eclipse.tractusx.traceability.notification.domain.service.NotificationPublisherServiceTest) with error

tx-backend/target/surefire-reports/TEST-org.eclipse.tractusx.traceability.notification.domain.service.NotificationPublisherServiceTest.xml [took 0s]
Raw output
Can't find any field or property with name 'severity'.
Error when introspecting properties was :
- No getter for property 'severity' in org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationMessage 
Error when introspecting fields was :
- Unable to obtain the value of the field <'severity'> from <NotificationMessage(id=fb1ce79a-a893-4241-82fa-2a04e9f390d5, sentByName=null, sendToName=null, affectedParts=[NotificationAffectedPart[assetId=urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01]], notificationReferenceId=null, sentBy=bpn-123, sentTo=BPN00001, contractAgreementId=null, message=Test investigation, notificationStatus=CREATED, edcNotificationId=fb1ce79a-a893-4241-82fa-2a04e9f390d5, created=2024-06-18T10:18:28.204520907, updated=null, messageId=c7ebf99a-97ab-4c08-ab79-b7c803742121, type=INVESTIGATION, errorMessage=null)>
org.assertj.core.util.introspection.IntrospectionError: 

Can't find any field or property with name 'severity'.
Error when introspecting properties was :
- No getter for property 'severity' in org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationMessage 
Error when introspecting fields was :
- Unable to obtain the value of the field <'severity'> from <NotificationMessage(id=fb1ce79a-a893-4241-82fa-2a04e9f390d5, sentByName=null, sendToName=null, affectedParts=[NotificationAffectedPart[assetId=urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01]], notificationReferenceId=null, sentBy=bpn-123, sentTo=BPN00001, contractAgreementId=null, message=Test investigation, notificationStatus=CREATED, edcNotificationId=fb1ce79a-a893-4241-82fa-2a04e9f390d5, created=2024-06-18T10:18:28.204520907, updated=null, messageId=c7ebf99a-97ab-4c08-ab79-b7c803742121, type=INVESTIGATION, errorMessage=null)>
	at org.assertj.core.util.introspection.PropertyOrFieldSupport.getSimpleValue(PropertyOrFieldSupport.java:91)
	at org.assertj.core.util.introspection.PropertyOrFieldSupport.getValueOf(PropertyOrFieldSupport.java:61)
	at org.assertj.core.extractor.ByNameSingleExtractor.apply(ByNameSingleExtractor.java:29)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
	at org.assertj.core.groups.FieldsOrPropertiesExtractor.extract(FieldsOrPropertiesExtractor.java:64)
	at org.assertj.core.api.AbstractIterableAssert.extracting(AbstractIterableAssert.java:1071)
	at org.eclipse.tractusx.traceability.notification.domain.service.NotificationPublisherServiceTest.testStartAlertSuccessful(NotificationPublisherServiceTest.java:145)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: org.assertj.core.util.introspection.IntrospectionError: Unable to obtain the value of the field <'severity'> from <NotificationMessage(id=fb1ce79a-a893-4241-82fa-2a04e9f390d5, sentByName=null, sendToName=null, affectedParts=[NotificationAffectedPart[assetId=urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01]], notificationReferenceId=null, sentBy=bpn-123, sentTo=BPN00001, contractAgreementId=null, message=Test investigation, notificationStatus=CREATED, edcNotificationId=fb1ce79a-a893-4241-82fa-2a04e9f390d5, created=2024-06-18T10:18:28.204520907, updated=null, messageId=c7ebf99a-97ab-4c08-ab79-b7c803742121, type=INVESTIGATION, errorMessage=null)>
	at org.assertj.core.util.introspection.FieldSupport.readSimpleField(FieldSupport.java:248)
	at org.assertj.core.util.introspection.FieldSupport.fieldValue(FieldSupport.java:202)
	at org.assertj.core.util.introspection.PropertyOrFieldSupport.getSimpleValue(PropertyOrFieldSupport.java:75)
	... 15 more
Caused by: java.lang.IllegalArgumentException: Cannot locate field severity on class org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationMessage
	at org.assertj.core.util.Preconditions.checkArgument(Preconditions.java:131)
	at org.assertj.core.util.introspection.FieldUtils.readField(FieldUtils.java:144)
	at org.assertj.core.util.introspection.FieldSupport.readSimpleField(FieldSupport.java:208)
	... 17 more

Check failure on line 0 in org.eclipse.tractusx.traceability.notification.domain.service.NotificationPublisherServiceTest

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

testStartInvestigationSuccessful (org.eclipse.tractusx.traceability.notification.domain.service.NotificationPublisherServiceTest) with error

tx-backend/target/surefire-reports/TEST-org.eclipse.tractusx.traceability.notification.domain.service.NotificationPublisherServiceTest.xml [took 0s]
Raw output
Can't find any field or property with name 'severity'.
Error when introspecting properties was :
- No getter for property 'severity' in org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationMessage 
Error when introspecting fields was :
- Unable to obtain the value of the field <'severity'> from <NotificationMessage(id=2878bd92-edbc-428a-b6da-8de4aa9bb428, sentByName=null, sendToName=null, affectedParts=[NotificationAffectedPart[assetId=urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01]], notificationReferenceId=null, sentBy=bpn-123, sentTo=someReceiverBpn, contractAgreementId=null, message=Test investigation, notificationStatus=CREATED, edcNotificationId=2878bd92-edbc-428a-b6da-8de4aa9bb428, created=2024-06-18T10:18:28.214731532, updated=null, messageId=1a097747-48f3-413f-977d-1f9dcc94d28a, type=INVESTIGATION, errorMessage=null)>
org.assertj.core.util.introspection.IntrospectionError: 

Can't find any field or property with name 'severity'.
Error when introspecting properties was :
- No getter for property 'severity' in org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationMessage 
Error when introspecting fields was :
- Unable to obtain the value of the field <'severity'> from <NotificationMessage(id=2878bd92-edbc-428a-b6da-8de4aa9bb428, sentByName=null, sendToName=null, affectedParts=[NotificationAffectedPart[assetId=urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01]], notificationReferenceId=null, sentBy=bpn-123, sentTo=someReceiverBpn, contractAgreementId=null, message=Test investigation, notificationStatus=CREATED, edcNotificationId=2878bd92-edbc-428a-b6da-8de4aa9bb428, created=2024-06-18T10:18:28.214731532, updated=null, messageId=1a097747-48f3-413f-977d-1f9dcc94d28a, type=INVESTIGATION, errorMessage=null)>
	at org.assertj.core.util.introspection.PropertyOrFieldSupport.getSimpleValue(PropertyOrFieldSupport.java:91)
	at org.assertj.core.util.introspection.PropertyOrFieldSupport.getValueOf(PropertyOrFieldSupport.java:61)
	at org.assertj.core.extractor.ByNameSingleExtractor.apply(ByNameSingleExtractor.java:29)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
	at org.assertj.core.groups.FieldsOrPropertiesExtractor.extract(FieldsOrPropertiesExtractor.java:64)
	at org.assertj.core.api.AbstractIterableAssert.extracting(AbstractIterableAssert.java:1071)
	at org.eclipse.tractusx.traceability.notification.domain.service.NotificationPublisherServiceTest.testStartInvestigationSuccessful(NotificationPublisherServiceTest.java:114)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: org.assertj.core.util.introspection.IntrospectionError: Unable to obtain the value of the field <'severity'> from <NotificationMessage(id=2878bd92-edbc-428a-b6da-8de4aa9bb428, sentByName=null, sendToName=null, affectedParts=[NotificationAffectedPart[assetId=urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01]], notificationReferenceId=null, sentBy=bpn-123, sentTo=someReceiverBpn, contractAgreementId=null, message=Test investigation, notificationStatus=CREATED, edcNotificationId=2878bd92-edbc-428a-b6da-8de4aa9bb428, created=2024-06-18T10:18:28.214731532, updated=null, messageId=1a097747-48f3-413f-977d-1f9dcc94d28a, type=INVESTIGATION, errorMessage=null)>
	at org.assertj.core.util.introspection.FieldSupport.readSimpleField(FieldSupport.java:248)
	at org.assertj.core.util.introspection.FieldSupport.fieldValue(FieldSupport.java:202)
	at org.assertj.core.util.introspection.PropertyOrFieldSupport.getSimpleValue(PropertyOrFieldSupport.java:75)
	... 15 more
Caused by: java.lang.IllegalArgumentException: Cannot locate field severity on class org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationMessage
	at org.assertj.core.util.Preconditions.checkArgument(Preconditions.java:131)
	at org.assertj.core.util.introspection.FieldUtils.readField(FieldUtils.java:144)
	at org.assertj.core.util.introspection.FieldSupport.readSimpleField(FieldSupport.java:208)
	... 17 more

Check failure on line 0 in org.eclipse.tractusx.traceability.notification.application.alert.rest.NotificationControllerTest

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

givenRequest_whenGetAlert_thenProperResponse (org.eclipse.tractusx.traceability.notification.application.alert.rest.NotificationControllerTest) with error

tx-backend/target/surefire-reports/TEST-org.eclipse.tractusx.traceability.notification.application.alert.rest.NotificationControllerTest.xml [took 0s]
Raw output
Cannot invoke "org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationSeverity.getRealName()" because the return value of "org.eclipse.tractusx.traceability.notification.domain.base.model.Notification.getNotificationSeverity()" is null
java.lang.NullPointerException: Cannot invoke "org.eclipse.tractusx.traceability.notification.domain.base.model.NotificationSeverity.getRealName()" because the return value of "org.eclipse.tractusx.traceability.notification.domain.base.model.Notification.getNotificationSeverity()" is null
	at org.eclipse.tractusx.traceability.notification.application.notification.mapper.NotificationResponseMapper.from(NotificationResponseMapper.java:59)
	at org.eclipse.tractusx.traceability.notification.application.notification.rest.NotificationController.getNotificationById(NotificationController.java:265)
	at org.eclipse.tractusx.traceability.notification.application.alert.rest.NotificationControllerTest.givenRequest_whenGetAlert_thenProperResponse(NotificationControllerTest.java:101)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
10:18:27.674 [main] INFO org.eclipse.tractusx.traceability.notification.application.notification.rest.NotificationController -- Received API call on /notifications/69