Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save svenliebig/a677da6e0c94c9b1ef859911dbd476d5 to your computer and use it in GitHub Desktop.
Save svenliebig/a677da6e0c94c9b1ef859911dbd476d5 to your computer and use it in GitHub Desktop.
public class KlasseA {
private KlasseB b;
}
public class KlasseB {
private KlasseA a;
}
// @test
final KlasseB b1 = new KlasseB();
final KlasseB b2 = new KlasseB();
EqualsVerifier.forClass(KlasseA.class).withPrefabValues(KlasseB.class, b1, b2).suppress(Warning.NONFINAL_FIELDS).verify();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment