public function testInvalidCreatorIdRobotAssocCreate()
 {
     $validRobotId = 1;
     $invalidCreatorId = -20;
     $s1 = new RobotAssoc($validRobotId, $invalidCreatorId);
     $this->assertTrue(!empty($s1->getError('creatorId')) && strcmp(Messages::getError('CREATOR_ID_INVALID'), $s1->getError('creatorId')) == 0, 'It should have a creatorId error if the creatorId is invalid');
 }
 public static function getRobotAssocsArray($robotAssocsRows)
 {
     $robotAssocs = array();
     if (!empty($robotAssocsRows)) {
         foreach ($robotAssocsRows as $row) {
             $robotAssoc = new RobotAssoc($row['robotId'], $row['creatorId']);
             $robotAssoc->setRobotAssocId($row['robotAssocId']);
             array_push($robotAssocs, $robotAssoc);
         }
     }
     return $robotAssocs;
 }