@Test public void shouldReturnNullWhileGettingEmptyField() throws Exception { SampleSimpleDatabaseObject databaseEntity = new SampleSimpleDatabaseObject(1L); Object value = entityService.getField(databaseEntity, fieldDefinitionName); assertNull(value); }
@Override public Object getField(final Object databaseEntity, final FieldDefinition fieldDefinition) { return getField(databaseEntity, fieldDefinition, null); }
EntityServiceImpl implements EntityService { @Override public Object getField(final Object databaseEntity, final FieldDefinition fieldDefinition) { return getField(databaseEntity, fieldDefinition, null); } }
EntityServiceImpl implements EntityService { @Override public Object getField(final Object databaseEntity, final FieldDefinition fieldDefinition) { return getField(databaseEntity, fieldDefinition, null); }  }
EntityServiceImpl implements EntityService { @Override public Object getField(final Object databaseEntity, final FieldDefinition fieldDefinition) { return getField(databaseEntity, fieldDefinition, null); }  @Override Long getId(final Object databaseEntity); Boolean getActive(final Object databaseEntity); void setActive(final Object databaseEntity, final boolean active); @Override void setId(final Object databaseEntity, final Long id); @Override void setField(final Object databaseEntity, final FieldDefinition fieldDefinition, final Object value); @Override Object getField(final Object databaseEntity, final FieldDefinition fieldDefinition); Object getField(final Object databaseEntity, final FieldDefinition fieldDefinition, final Entity performer); @Override Entity convertToGenericEntity(final InternalDataDefinition dataDefinition, final Object databaseEntity); Entity convertToGenericEntity(final InternalDataDefinition dataDefinition, final Object databaseEntity,
            final Entity performer); @SuppressWarnings("unchecked") @Override Object convertToDatabaseEntity(final InternalDataDefinition dataDefinition, final Entity genericEntity,
            final Object existingDatabaseEntity); }
EntityServiceImpl implements EntityService { @Override public Object getField(final Object databaseEntity, final FieldDefinition fieldDefinition) { return getField(databaseEntity, fieldDefinition, null); }  @Override Long getId(final Object databaseEntity); Boolean getActive(final Object databaseEntity); void setActive(final Object databaseEntity, final boolean active); @Override void setId(final Object databaseEntity, final Long id); @Override void setField(final Object databaseEntity, final FieldDefinition fieldDefinition, final Object value); @Override Object getField(final Object databaseEntity, final FieldDefinition fieldDefinition); Object getField(final Object databaseEntity, final FieldDefinition fieldDefinition, final Entity performer); @Override Entity convertToGenericEntity(final InternalDataDefinition dataDefinition, final Object databaseEntity); Entity convertToGenericEntity(final InternalDataDefinition dataDefinition, final Object databaseEntity,
            final Entity performer); @SuppressWarnings("unchecked") @Override Object convertToDatabaseEntity(final InternalDataDefinition dataDefinition, final Entity genericEntity,
            final Object existingDatabaseEntity);  }