Github user aledsage commented on the issue:
https://github.com/apache/brooklyn-server/pull/791
@geomacy not convinced it's worth the effort of trying to mock the
`FileDescriptor` to simulate a `SyncFailedException`. If we were doing more
than retry + propagate, then maybe it would. But the current logic is pretty
simple.
One can mock final classes with Mockito v2 (we're on v2.7.12 currently):
https://stackoverflow.com/a/40018295/1393883, but you need to add a config file
to change the `MockMaker`.
I think this is good as-is.
Have you tried running the integration tests, as well as the unit tests?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---