You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2020/04/20 18:45:11 UTC
[GitHub] [maven-surefire] akomakom commented on issue #285: [SUREFIRE-1234] Allow to configure JVM for tests by referencing a toolchain entry
akomakom commented on issue #285:
URL: https://github.com/apache/maven-surefire/pull/285#issuecomment-616740035
> Can you add two unit tests with PowerMock with
> `assumeThat( method-exists )`
> and second with
> `assumeThat( method-doesn't-exist )`?
> Maybe the third for verifying thrown exception `MojoFailureException`.
@Tibor17 can you clarify what you're looking for here? Which method exists/doesn't? **getToolchains** on ToolchainManager? Are you looking for a test that
* will fail once we move to a new version of toolchains and the method will exist (to remind us to change implementations)?
* mocks both cases (method exists or not) to verify reasonable behavior?
I tried to go down path number 1, but I'm finding that when I run tests, the method never exists...
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org