I am writing an application that checks if a method is a valid or a bridge. To test this application, I added various methods to my stub. But for none of the methods this block is not considered in the test example. Stub contains methods like validate (Object o), etc., Like any other normal java class.
Which method should I add to my stub so this line is covered?
code:
Method[] methods = inputClass.getMethods(); for (Method method : methods) { if (method.isSynthetic() || method.isBridge()) { isInternal = true; }
source share