ReadOnlyDomainTypeConverter extends AbstractToDomainTypeConverter implements Named { @Override public boolean canConvert(Type realToType, Type realDomainType) { return false; }  @Override boolean canConvert(Type realToType, Type realDomainType); @Override Object doConvert(JTransfo jTransfo, Object toObject, SyntheticField domainField, String... tags); @Override String getName(); void setName(String name);  }
@Test public void testCanConvert() throws Exception { assertThat(typeConverter.canConvert(String.class, String.class)).isFalse(); assertThat(typeConverter.canConvert(SimpleBaseTo.class, SimpleBaseDomain.class)).isFalse(); assertThat(typeConverter.canConvert(SimpleBaseTo.class, String.class)).isFalse(); assertThat(typeConverter.canConvert(SimpleBaseTo.class, SimpleExtendedDomain.class)).isFalse(); assertThat(typeConverter.canConvert(SimpleExtendedTo.class, SimpleExtendedDomain.class)).isFalse(); assertThat(typeConverter.canConvert(SimpleExtendedTo.class, SimpleBaseDomain.class)).isFalse(); }