mockito ArrayList<String> problem...
- by Sardathrion
I have a method that I am trying to unit test. This method takes a parameter as an ArrayList and does things with it. The mock I am trying to define is:
ArrayList<String> mocked = mock(ArrayList.class);
which gives a [unchecked] unchecked conversion" warning.
ArrayList<String> mocked = mock(ArrayList<String>.class);
gives me an error.
Anyone care to enlighten me as to what I am doing wrong?