We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description
Concrete Executor wrongly mocks static methods from different classes but with same signatures.
To Reproduce
Steps to reproduce the behavior:
public class AlsoRandom { public static int next() { return -42; } public static int foo() { return 1; } } public class Random { public static int next() { return 42; } public static int foo() { return 0; } } public class RandomUsage { public static int usage() { int value = Random.next(); int a = Random.foo(); int b = AlsoRandom.foo(); if (value > 50) { return a + b; } return AlsoRandom.next() - value; } }
Expected behavior
Tests are passed.
Actual behavior
Tests are failed.
Environment
Mocking static methods from another class.
The text was updated successfully, but these errors were encountered:
SBOne-Kenobi
Successfully merging a pull request may close this issue.
Description
Concrete Executor wrongly mocks static methods from different classes but with same signatures.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Tests are passed.
Actual behavior
Tests are failed.
Environment
Mocking static methods from another class.
The text was updated successfully, but these errors were encountered: