Esempio n. 1
0
 private <T> void setupInboundConverter(Object input, Class<? extends T> expected, T output) {
   when(converter.toJava(input, (Type) expected)).thenReturn(output);
 }
Esempio n. 2
0
 private void setupOutboundConverter(Object input, Object output) {
   when(converter.fromJava(input)).thenReturn(output);
 }