コード例 #1
0
 @Test
 public void testEqualsSymmetryInitialPosition() {
   TemplatePosition posX = TemplatePosition.createInitialPosition();
   TemplatePosition posY = TemplatePosition.createInitialPosition();
   assertTrue(posX.equals(posY));
   assertTrue(posY.equals(posX));
 }
コード例 #2
0
 @Test
 public void testEqualsReflexivtiyInitialPosition() {
   TemplatePosition pos1 = TemplatePosition.createInitialPosition();
   assertTrue(pos1.equals(pos1));
 }