First of all I would like to apologise about my language skill, but my mother language isn't english.
I have got a little source code, which is:
public void hello(List l){
switch (l.get(0) {
case "hello":
System.out.println("Hello!");
case "world":
System.out.println("World");
break;
}
}
And I have to write a unit test, which can testing about this code. But my skill is not enough about it. Could somebody help me please? Some example or book or something. I don't know how can I starting it!
I am appreciate.
Thanks