Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbourelly999 committed Oct 25, 2023
1 parent d88dbc3 commit 0a41526
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public void testOnDetectedObject() throws IOException{
new Vector3d(2, 3, 4),
new Vector3d(-4.4,-5.5,-6.6),
new Size(3, 4, 5));
Double[] covarianceMatrix = new Double[] { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
Double[][] covarianceMatrix = { {0.0, 0.0, 0.0} , {0.0, 0.0, 0.0} , {0.0, 0.0, 0.0}};
detectedObject1.setPositionCovariance(covarianceMatrix);
detectedObject1.setVelocityCovariance(covarianceMatrix);
detectedObject1.setAngularVelocityCovariance(covarianceMatrix);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public void testSendInteraction() throws IOException {
new Vector3d(0, 0, 0),
new Vector3d(),
new Size(0, 0, 0));
Double[] covarianceMatrix = new Double[] { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
Double[][] covarianceMatrix = { {0.0, 0.0, 0.0} , {0.0, 0.0, 0.0} , {0.0, 0.0, 0.0}};
test_msg.setPositionCovariance(covarianceMatrix);
test_msg.setVelocityCovariance(covarianceMatrix);
test_msg.setAngularVelocityCovariance(covarianceMatrix);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public void testProcessInteraction() throws InternalFederateException{
new Vector3d(2, 3, 4),
new Vector3d(-4.4,-5.5,-6.6),
new Size(3, 4, 5));
Double[] covarianceMatrix = new Double[] { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
Double[][] covarianceMatrix = { {0.0, 0.0, 0.0} , {0.0, 0.0, 0.0} , {0.0, 0.0, 0.0}};
detectedObject.setPositionCovariance(covarianceMatrix);
detectedObject.setVelocityCovariance(covarianceMatrix);
detectedObject.setAngularVelocityCovariance(covarianceMatrix);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void testGetterSetterConstructor() {
new Vector3d(1, 1, 1),
new Vector3d(.1, .2, .3),
new Size(2, 1, .5));
Double[] covarianceMatrix = new Double[] { 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0 };
Double[][] covarianceMatrix = { {0.0, 0.0, 0.0} , {0.0, 0.0, 0.0} , {0.0, 0.0, 0.0}};
detectedObject.setPositionCovariance(covarianceMatrix);
detectedObject.setVelocityCovariance(covarianceMatrix);
detectedObject.setAngularVelocityCovariance(covarianceMatrix);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void testDetectObjectJsonSerialization() {
+ "}";
assertEquals(json,
json_prediction);

System.out.println(json);
}

@Test
Expand Down

0 comments on commit 0a41526

Please sign in to comment.