Open mwjames opened 5 years ago
In order to get going I ended up with:
https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/515
Both Param and IParam are marked as package private and IParam is deprecated.
SMW looks like it can be migrated away from these (and I suspect SMW is the last user). Will give that a try.
Semi-related: https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/4171
https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/4172
After that you should be able to just use ProcessedParam
(which is a sane value object) in your test without needing any mocking.
"sane"... it has setters though :D Please slap 2013 Jeroen if you see him.
For a test I tried to:
but it returns with "Class "ParamProcessor\Param" is declared "final" and cannot be mocked." then I tried
which returns "Trying to configure method "getName" which cannot be configured because it does not exist, has not been specified, is final, or is static".
In order to get going I ended up with: