Skip to content

Commit

Permalink
Increase unit test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbourelly999 committed Jul 31, 2023
1 parent 4bb37a4 commit f94bf76
Showing 1 changed file with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,19 +199,15 @@ public void testEquals() {
detectedObject.setAngularVelocityCovariance(covarianceMatrix);

DetectedObject detectedObject1 = new DetectedObject(
DetectionType.CAR,
null,
0.6,
"sensor3",
"otherProj",
"object2",
CartesianPoint.xyz(2, 2, 3.2),
new Vector3d(3, 3, 4),
new Vector3d(4,-5.5,-6.6),
new Size(5, 4, 5));
Double[] covarianceMatrix1 = new Double[] { 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 };
detectedObject.setPositionCovariance(covarianceMatrix1);
detectedObject.setVelocityCovariance(covarianceMatrix1);
detectedObject.setAngularVelocityCovariance(covarianceMatrix1);
null,
null,
null,
null,
null,
null,
null);

assertNotEquals(detectedObject, detectedObject1);

Expand Down

0 comments on commit f94bf76

Please sign in to comment.