I have an util class where I create Fake date for my unit test, I put it in test part of my Object:
public class FakeDataToTest {
//.. fake objects
}
But Sonar give a Blocker, because this class doesn't contain unit test, in another word not have a method annotated @Test
, the message of sonar is:
Add some tests to this class.
What is the clean way to avoid this ?