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
The asStatement method exposes an API which is not public and so can't be used outside of the framework itself.
It is not necessary an issue as this method is already an alternative way to not use Statement directly.
Here are the workaround :
Not legal
@Test public void testMe() { assertWhen(asStatement(() -> { })).throwException(any(Throwable.class)); }
Legal
@Test public void testMe() { assertWhen((p) -> { }).throwException(any(Throwable.class)); }
@Test public void testMe() { assertWhen(asStatement(Demo2::underTest)).throwException(any(Throwable.class)); } public static void underTest() { }
@Test public void testMe() { assertWhen((p) -> { Demo2.underTest(); }).throwException(any(Throwable.class)); } public static void underTest() { }
The various method related to function, etc are working and so the impact of this issue is limited.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The asStatement method exposes an API which is not public and so can't be used outside of the framework itself.
It is not necessary an issue as this method is already an alternative way to not use Statement directly.
Here are the workaround :
Not legal
Legal
Not legal
Legal
The various method related to function, etc are working and so the impact of this issue is limited.
The text was updated successfully, but these errors were encountered: