Skip to content
Advertisement

Tag: cobertura

JUnit: testing helper class with only static methods

I am testing a helper class with only static methods with JUnit4 and Cobertura. Testing methods was easy task and is done already. However, cobertura shows that the class is not covered by tests completely, as it is not instantiated anywhere. I don’t want to create an instance of this class (it is a helper class), so first solution is

Advertisement