Skip to content

ReferencedRequestMessageIdInResponseValidator always attempts to cast to FlexRequest #72

@MartenMeijboom98

Description

@MartenMeijboom98

Describe the bug
ReferencedRequestMessageIdInResponseValidator is responsible for validating a response has a matching request available, e.g. FlexRequest for a FlexRequestResponse. For this is uses UftpMessageSupport#findReferencedMessage to retrieve the referenced message. The type is hardcoded as FlexRequest.class, resulting in unwanted behaviour when another class like FlexOffer is actually being retrieved.

Expected behavior
We should provide the correct class as referencedType when calling findReferencedMessage

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions