From b272a98620e99e283d89985ad9bd44bcc8bf4ac1 Mon Sep 17 00:00:00 2001 From: JoePfeiffer Date: Tue, 17 Jan 2023 09:32:32 -0700 Subject: [PATCH] Update unit tests since rocket is now a copy during the simulation --- core/test/net/sf/openrocket/simulation/FlightEventsTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/test/net/sf/openrocket/simulation/FlightEventsTest.java b/core/test/net/sf/openrocket/simulation/FlightEventsTest.java index 1069d67f5..74f573b98 100644 --- a/core/test/net/sf/openrocket/simulation/FlightEventsTest.java +++ b/core/test/net/sf/openrocket/simulation/FlightEventsTest.java @@ -74,7 +74,7 @@ public class FlightEventsTest extends BaseTestCase { // Test that the event sources are correct for (int i = 0; i < expectedSources.length; i++) { - assertSame(" Flight type " + expectedEventTypes[i] + " has wrong source", + assertEquals(" Flight type " + expectedEventTypes[i] + " has wrong source", expectedSources[i], eventList.get(i).getSource()); } } @@ -149,7 +149,7 @@ public class FlightEventsTest extends BaseTestCase { // Test that the event sources are correct for (int i = 0; i < expectedSources.length; i++) { - assertSame(" Flight type " + expectedEventTypes[i] + " has wrong source", + assertEquals(" Flight type " + expectedEventTypes[i] + " has wrong source", expectedSources[i], eventList.get(i).getSource()); } }