ReadOnlyDomainAutomaticTypeConverter extends AbstractToDomainTypeConverter implements Named, NeedsJTransfo { @Override public boolean canConvert(Type realToType, Type realDomainType) { return false; }  @Override void setJTransfo(JTransfo jTransfo); @Override boolean canConvert(Type realToType, Type realDomainType); @Override Object convert(Object toObject, SyntheticField domainField, Object domainObject, String... tags); @Override Object reverse(Object domainObject, SyntheticField toField, Object toObject, String... tags); @Override Object doConvert(JTransfo jTransfo, Object toObject, SyntheticField domainField, String... tags); @Override String getName(); void setName(String name); void setKeepNullList(boolean keepNullList); void setKeepNullSet(boolean keepNullSet); void setAlwaysNewList(boolean alwaysNewList); void setAlwaysNewSet(boolean alwaysNewSet); void setSortList(boolean sortList);  }
@Test public void testCanConvertList() throws Exception { assertThat(typeConverter.canConvert(List.class, List.class)).isFalse(); }
@Test public void testCanConvertSet() throws Exception { assertThat(typeConverter.canConvert(Set.class, Set.class)).isFalse(); }
@Test public void testCanConvertSimple() 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(); }