コード例 #1
0
  @Test
  public void testHashCode() {
    assertEquals(jobPartitionState.hashCode(), jobPartitionState.hashCode());
    assertEquals(jobPartitionState.hashCode(), jobPartitionStateSameAttributes.hashCode());

    assertNotEquals(jobPartitionState.hashCode(), jobPartitionStateOtherAddress.hashCode());
    assertNotEquals(jobPartitionState.hashCode(), jobPartitionStateOtherState.hashCode());
  }
コード例 #2
0
 @Test
 public void testGetState() {
   assertEquals(WAITING, jobPartitionState.getState());
   assertEquals(CANCELLED, jobPartitionStateOtherState.getState());
 }
コード例 #3
0
 @Test
 public void testToString() {
   assertNotNull(jobPartitionState.toString());
 }
コード例 #4
0
 @Test
 public void testGetOwner() {
   assertEquals(address, jobPartitionState.getOwner());
   assertEquals(otherAddress, jobPartitionStateOtherAddress.getOwner());
 }