@Test public final void shouldSetProxyEntityToNull() throws Exception { awesomeDynamicListModelUtils.proxyBelongsToFields(entity); verify(entity, Mockito.never()).setField(Mockito.eq(BELONGS_TO_FIELD_NAME), Mockito.any(Entity.class)); }
public final void proxyBelongsToFields(final Entity entity) { DataDefinition dataDefinition = entity.getDataDefinition(); for (Entry<String, FieldDefinition> fieldDefinitionEntry : dataDefinition.getFields().entrySet()) { if (fieldDefinitionEntry.getValue().getType() instanceof BelongsToType) { proxyBelongsToField(fieldDefinitionEntry.getValue(), entity); } } }
AwesomeDynamicListModelUtilsImpl implements AwesomeDynamicListModelUtils { public final void proxyBelongsToFields(final Entity entity) { DataDefinition dataDefinition = entity.getDataDefinition(); for (Entry<String, FieldDefinition> fieldDefinitionEntry : dataDefinition.getFields().entrySet()) { if (fieldDefinitionEntry.getValue().getType() instanceof BelongsToType) { proxyBelongsToField(fieldDefinitionEntry.getValue(), entity); } } } }
AwesomeDynamicListModelUtilsImpl implements AwesomeDynamicListModelUtils { public final void proxyBelongsToFields(final Entity entity) { DataDefinition dataDefinition = entity.getDataDefinition(); for (Entry<String, FieldDefinition> fieldDefinitionEntry : dataDefinition.getFields().entrySet()) { if (fieldDefinitionEntry.getValue().getType() instanceof BelongsToType) { proxyBelongsToField(fieldDefinitionEntry.getValue(), entity); } } }  }
AwesomeDynamicListModelUtilsImpl implements AwesomeDynamicListModelUtils { public final void proxyBelongsToFields(final Entity entity) { DataDefinition dataDefinition = entity.getDataDefinition(); for (Entry<String, FieldDefinition> fieldDefinitionEntry : dataDefinition.getFields().entrySet()) { if (fieldDefinitionEntry.getValue().getType() instanceof BelongsToType) { proxyBelongsToField(fieldDefinitionEntry.getValue(), entity); } } }  final void proxyBelongsToFields(final Entity entity); }
AwesomeDynamicListModelUtilsImpl implements AwesomeDynamicListModelUtils { public final void proxyBelongsToFields(final Entity entity) { DataDefinition dataDefinition = entity.getDataDefinition(); for (Entry<String, FieldDefinition> fieldDefinitionEntry : dataDefinition.getFields().entrySet()) { if (fieldDefinitionEntry.getValue().getType() instanceof BelongsToType) { proxyBelongsToField(fieldDefinitionEntry.getValue(), entity); } } }  final void proxyBelongsToFields(final Entity entity);  }