@Test public void testDoNotFallDown() { Converter converter1 = mock(Converter.class); when(converter1.getManagedClasses()).thenReturn(new Class[]{List.class}); handler.addConverter(converter1); assertEquals(converter1, handler.getConverter(List.class)); }
@Override public Converter getConverter(Class klass) { Converter converter = super.getConverter(klass); if (converter == null) { converter = parent.getConverter(klass); } return converter; }
FallDownConvertersHandler extends ConvertersHandler { @Override public Converter getConverter(Class klass) { Converter converter = super.getConverter(klass); if (converter == null) { converter = parent.getConverter(klass); } return converter; } }
FallDownConvertersHandler extends ConvertersHandler { @Override public Converter getConverter(Class klass) { Converter converter = super.getConverter(klass); if (converter == null) { converter = parent.getConverter(klass); } return converter; } FallDownConvertersHandler(ConvertersHandler parent); }
FallDownConvertersHandler extends ConvertersHandler { @Override public Converter getConverter(Class klass) { Converter converter = super.getConverter(klass); if (converter == null) { converter = parent.getConverter(klass); } return converter; } FallDownConvertersHandler(ConvertersHandler parent); @Override Converter getConverter(Class klass); }
FallDownConvertersHandler extends ConvertersHandler { @Override public Converter getConverter(Class klass) { Converter converter = super.getConverter(klass); if (converter == null) { converter = parent.getConverter(klass); } return converter; } FallDownConvertersHandler(ConvertersHandler parent); @Override Converter getConverter(Class klass);  }