-
Is it absolutely necessary to seal all classes. e.g. SparkSession? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
They are sealed because we don't expect them to be extended. Can't you wrap them with your interfaces? |
Beta Was this translation helpful? Give feedback.
-
Thanks @imback82, An alternative would be to extract an interface and then I could mock the interface. It's fine if you don't want to, I just thought I'd check :) Thanks for your help. |
Beta Was this translation helpful? Give feedback.
They are sealed because we don't expect them to be extended. Can't you wrap them with your interfaces?