You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@streampipes.apache.org by "tenthe (via GitHub)" <gi...@apache.org> on 2023/01/24 10:05:15 UTC

[GitHub] [streampipes] tenthe commented on pull request #1149: Extend REST API by endpoint to get a specific function definition

tenthe commented on PR #1149:
URL: https://github.com/apache/streampipes/pull/1149#issuecomment-1401667024

   That is a good point. How could we test it properly?
   I guess the best way would be to mock `FunctionRegistrationService.INSTANCE` but since it is an enum I am not sure if it is easily possible. One option would be to change the implementation and inject an instance of `FunctionRegistrationService` into the `FunctionsResource`, then it would be easier to mock and test the REST interface.


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@streampipes.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org