View Javadoc

1   /*
2    * To change this template, choose Tools | Templates
3    * and open the template in the editor.
4    */
5   package org.kuali.student.common.test.util;
6   
7   import static org.junit.Assert.assertEquals;
8   
9   import org.kuali.student.r2.common.dto.RelationshipInfo;
10  
11  /**
12   * Helps create a dynamic 
13   * @author nwright
14   */
15  public class RelationshipTester {
16  
17      public void check (RelationshipInfo expected, RelationshipInfo actual) {
18      	
19          assertEquals(expected.getTypeKey(), actual.getTypeKey());
20          assertEquals(expected.getStateKey(), actual.getStateKey());
21          
22          new TimeTester().check(expected.getEffectiveDate(), actual.getEffectiveDate());
23          new TimeTester().check(expected.getExpirationDate(), actual.getExpirationDate());
24      }
25  
26     
27  }