Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug verify #80

Merged
merged 4 commits into from
Sep 3, 2021
Merged

Bug verify #80

merged 4 commits into from
Sep 3, 2021

Conversation

JanSchankin
Copy link
Contributor

#76

@JanSchankin JanSchankin linked an issue Aug 30, 2021 that may be closed by this pull request
@JanSchankin JanSchankin added this to the v1.2.0 milestone Aug 30, 2021
@JanSchankin JanSchankin added the bug Something isn't working label Aug 30, 2021
@sonarcloud
Copy link

sonarcloud bot commented Aug 30, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

} else {
// no returnValueSupplier -> we have to log the invocations for recordings
final Object returnValue = invocation.proceed();
final List<Object> arguments = Arrays.asList(invocation.getArguments());

ExecutionManager.record(sampleDefinition, new MethodCall(returnValue, arguments));
return returnValue;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move record and return value outside the if


ExecutionManager.record(sampleDefinition, new MethodCall(returnValue, Arrays.asList(joinPoint.getArgs())));

return returnValue;
} else {
// no returnValueSupplier -> we have to log the invocations for recordings
final Object returnValue = joinPoint.proceed();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move record and return returnValue outside the if

Copy link
Contributor

@chb-ppi chb-ppi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor suggestions

@chb-ppi chb-ppi merged commit a62e18f into dev Sep 3, 2021
@JanSchankin JanSchankin deleted the bug-verify branch December 5, 2021 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Verify does'nt discriminate between different parameters
2 participants