Skip to content

spring-retry with MockWebServiceServer error: 'webServiceTemplate' must not be null #11920

Closed
@mhewedy

Description

@mhewedy

I'm using spring-boot 1.5.7.RELEASE and I'm having trouble when I have a mocked WebServiceGatewaySupport which has @retryable annotations in the subclass of that class. When I call Mockito.verify() I get an UnfinishedVerificationException exception.

I find a workaround like #6828 and #5837

if (client instanceof Advised) {
	client = (MySubClassOfWebServiceGatewaySupport) ((Advised) client).getTargetSource().getTarget();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: stackoverflowA question that's better suited to stackoverflow.comstatus: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions