How to enable allopen only for tets

Is there any way to enable allopen only for the tests? I want to open my classes in test to allow Mockito to mock them but I want them closed for my production code.

Related with:

1 Like