|
assertThat(sniper.getSnapshot(), samePropertyValuesAs(SniperSnapshot.joining(ITEM_ID))); |
samePropertyValuesAs only works with Java Bean objects (private fields with getters and setters), since SniperSnapshot is not, I think this test will always pass.