Add option to ignore compared fields existence check by kssumin · Pull Request #3836 · assertj/assertj

joel-costigliola

joel-costigliola

@kssumin

This adds a new feature to recursive comparison that allows ignoring
fields that don't exist in the actual object. This is particularly
useful when comparing polymorphic objects where certain fields might
only exist in some subtypes.

Fixes assertj#3806

Signed-off-by: Kim Sumin <ksoomin25@gmail.com>