Skip to content

Commit

Permalink
Increase code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbourelly999 committed Jul 31, 2023
1 parent f94bf76 commit 07799c0
Showing 1 changed file with 41 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,53 +211,61 @@ public void testEquals() {

assertNotEquals(detectedObject, detectedObject1);

//Correct Type
detectedObject1.setType(detectedObject.getType());
assertNotEquals(detectedObject1, detectedObject);
//Correct Confidence
detectedObject1.setConfidence(detectedObject.getConfidence());
assertNotEquals(detectedObject1, detectedObject);
//Correct Sensor ID
detectedObject1.setSensorId(detectedObject.getSensorId());
assertNotEquals(detectedObject1, detectedObject);
//Correct Projection String
detectedObject1.setProjString(detectedObject.getProjString());
assertNotEquals(detectedObject1, detectedObject);
//Correct Object ID
detectedObject1.setObjectId(detectedObject.getObjectId());
assertNotEquals(detectedObject1, detectedObject);
//Correct Size
detectedObject1.setSize(detectedObject.getSize());
assertNotEquals(detectedObject, detectedObject1);

assertNotEquals(detectedObject1, detectedObject);
//Correct Position
detectedObject1.setPosition(detectedObject.getPosition());
assertNotEquals(detectedObject1, detectedObject);
//Correct Position Covariance
detectedObject1.setPositionCovariance(detectedObject.getPositionCovariance());
assertNotEquals(detectedObject1, detectedObject);
//Correct Velocity
detectedObject1.setVelocity(detectedObject.getVelocity());
assertNotEquals(detectedObject1, detectedObject);
//Correct Velocity Covariance
detectedObject1.setVelocityCovariance(detectedObject.getVelocityCovariance());
assertNotEquals(detectedObject1, detectedObject);
//Correct Angular Velocity
detectedObject1.setAngularVelocity(detectedObject.getAngularVelocity());
assertNotEquals(detectedObject1, detectedObject);
//Correct Angular Velocity Covariance
detectedObject1.setAngularVelocityCovariance(detectedObject.getAngularVelocityCovariance());
assertNotEquals(detectedObject, detectedObject1);
assertEquals(detectedObject1, detectedObject);

//Correct Angular Velocity
detectedObject1.setAngularVelocity(detectedObject.getAngularVelocity());
assertNotEquals(detectedObject, detectedObject1);


//Correct Velocity Covariance
detectedObject1.setVelocityCovariance(detectedObject.getVelocityCovariance());
assertNotEquals(detectedObject, detectedObject1);

//Correct Velocity
detectedObject1.setVelocity(detectedObject.getVelocity());
assertNotEquals(detectedObject, detectedObject1);


//Correct Position Covariance
detectedObject1.setPositionCovariance(detectedObject.getPositionCovariance());
assertNotEquals(detectedObject, detectedObject1);


//Correct Position
detectedObject1.setPosition(detectedObject.getPosition());
assertNotEquals(detectedObject, detectedObject1);


//Correct Object ID
detectedObject1.setObjectId(detectedObject.getObjectId());
assertNotEquals(detectedObject, detectedObject1);


//Correct Projection String
detectedObject1.setProjString(detectedObject.getProjString());
assertNotEquals(detectedObject, detectedObject1);


//Correct Sensor ID
detectedObject1.setSensorId(detectedObject.getSensorId());
assertNotEquals(detectedObject, detectedObject1);


//Correct Confidence
detectedObject1.setConfidence(detectedObject.getConfidence());
assertNotEquals(detectedObject, detectedObject1);


//Correct Type
detectedObject1.setType(detectedObject.getType());
assertEquals(detectedObject, detectedObject1);


}

Expand Down

0 comments on commit 07799c0

Please sign in to comment.