Add hashcode

This commit is contained in:
dsyer
2007-11-05 11:26:55 +00:00
parent aee03b31cc
commit 2e20f406f2

View File

@@ -70,6 +70,15 @@ public class ExitStatusTests extends TestCase {
assertFalse(ExitStatus.CONTINUABLE.equals(null));
}
/**
* Test equality of exit statuses.
*
* @throws Exception
*/
public void testHashcode() throws Exception {
assertEquals(ExitStatus.CONTINUABLE.toString().hashCode(), ExitStatus.CONTINUABLE.hashCode());
}
/**
* Test method for {@link org.springframework.batch.repeat.ExitStatus#and(boolean)}.
*/