I have a switch case statement inside a private method. I don't think we need to do unit testing for the private method. But my code coverage tool(EclEmma) is showing "1 of 4 branches missed." with yellow diamond on switch statement. So my question is: how I can write test for this particular situation?
Code Snippet
public void parentMethod() {
....
childMethod(someList);
....
}
private void childMethod(List<Integer> someList) {
for(Integer var : someList) {
switch(var){ ..... }
}
}