/** * Test method for {@link org.springframework.batch.core.Entity#hashCode()}. */ public void testHashCodeNullId() { int withoutNull = entity.hashCode(); entity.setId(null); int withNull = entity.hashCode(); assertTrue(withoutNull!=withNull); }
/** * Test method for {@link org.springframework.batch.core.Entity#hashCode()}. */ public void testHashCodeNullId() { int withoutNull = entity.hashCode(); entity.setId(null); int withNull = entity.hashCode(); assertTrue(withoutNull!=withNull); }