Add unit test for saving stage activeness

This commit is contained in:
SiboVG 2022-10-25 12:47:35 +02:00
parent 1f826ed141
commit 3a0a185911
2 changed files with 9 additions and 0 deletions

View File

@ -1625,6 +1625,14 @@ public class TestRockets {
return document;
}
public static OpenRocketDocument makeTestRocket_v108_withDisabledStage() {
Rocket rocket = makeFalcon9Heavy();
rocket.getSelectedConfiguration()._setStageActive(0, false, false);
OpenRocketDocument document = OpenRocketDocumentFactory.createDocumentFromRocket(rocket);
return document;
}
/*
* Create a new test rocket for testing OpenRocketSaver.estimateFileSize()

View File

@ -126,6 +126,7 @@ public class OpenRocketSaverTest {
rocketDocs.add(TestRockets.makeTestRocket_v106_withStageSeparationConfig());
rocketDocs.add(TestRockets.makeTestRocket_v107_withSimulationExtension(SIMULATION_EXTENSION_SCRIPT));
rocketDocs.add(TestRockets.makeTestRocket_v108_withBoosters());
rocketDocs.add(TestRockets.makeTestRocket_v108_withDisabledStage());
rocketDocs.add(TestRockets.makeTestRocket_for_estimateFileSize());
StorageOptions options = new StorageOptions();