Code Coverage for OSGI Configuration
Published
Custom OSGi configurations are often required based on project needs. In a previous article, we discussed how to implement
custom OSGi configurations. Now, we will cover how to write unit tests and ensure code coverage for these configurations using JUnit 5, OSGi Mocks, and Mockito.
Mock Static Methods with Mockito
Published
In the pursuit of clean object-oriented code, the need to mock static methods may suggest design flaws or code smells,
prompting consideration for refactoring. Nevertheless, there are situations where mocking static methods remains crucial
despite refactoring efforts.