List<Restriction> restrictions = new ArrayList<>();
//list operation.......
when(restrictionUpdator.executeBatch(anyInt(),
any(List.class),
any(RequestorInfo.class),
(Class<Obj>) any())
).thenReturn(restrictions);
excuteBatch method:
public <T extends Obj> List<T> executeBatch(int Id,
List<UpdateContext> contexts,
RequestorInfo requestor,
Class<T> tClass)
Class:
public class Restriction extends Obj
Can someone have a look?
Why above code has compiler error in IDE language 8?
If I change IDE language 8 to 7, it is back to normal and build success.