Rename SubAssembly RockSim test

This is really confusing as it's not about the SubAssembly component in RockSim...
This commit is contained in:
SiboVG 2022-11-03 21:44:14 +01:00
parent 2ebbdda54c
commit 3d3ad2486b
2 changed files with 9 additions and 9 deletions

View File

@ -2,7 +2,7 @@
<FileVersion>4</FileVersion> <FileVersion>4</FileVersion>
<DesignInformation> <DesignInformation>
<RocketDesign> <RocketDesign>
<Name>SubAssembly Element Test</Name> <Name>Body Tube Children Test</Name>
<StageCount>1</StageCount> <StageCount>1</StageCount>
<DisplayFlags>7</DisplayFlags> <DisplayFlags>7</DisplayFlags>
<ViewType>0</ViewType> <ViewType>0</ViewType>

View File

@ -146,20 +146,20 @@ public class RockSimLoaderTest extends BaseTestCase {
} }
@org.junit.Test @org.junit.Test
public void testSubAssemblyRocket() throws IOException, RocketLoadException { public void testBodyTubeChildrenRocket() throws IOException, RocketLoadException {
RockSimLoader loader = new RockSimLoader(); RockSimLoader loader = new RockSimLoader();
//Stupid single stage rocket //Stupid single stage rocket
OpenRocketDocument doc = loadRockSimSubassemblyRocket(loader); OpenRocketDocument doc = loadBodyTubeChildrenRocket(loader);
InputStream stream; InputStream stream;
Assert.assertNotNull(doc); Assert.assertNotNull(doc);
Rocket rocket = doc.getRocket(); Rocket rocket = doc.getRocket();
Assert.assertNotNull(rocket); Assert.assertNotNull(rocket);
Assert.assertEquals("SubAssembly Element Test", doc.getRocket().getName()); Assert.assertEquals("Body Tube Children Test", doc.getRocket().getName());
Assert.assertTrue(loader.getWarnings().isEmpty()); Assert.assertTrue(loader.getWarnings().isEmpty());
stream = this.getClass().getResourceAsStream("SubAssemblyTest.rkt"); stream = this.getClass().getResourceAsStream("BodyTubeChildrenTest.rkt");
Assert.assertNotNull("Could not open SubAssemblyTest.rkt", stream); Assert.assertNotNull("Could not open BodyTubeChildrenTest.rkt", stream);
doc = OpenRocketDocumentFactory.createEmptyRocket(); doc = OpenRocketDocumentFactory.createEmptyRocket();
DocumentLoadingContext context = new DocumentLoadingContext(); DocumentLoadingContext context = new DocumentLoadingContext();
@ -220,10 +220,10 @@ public class RockSimLoaderTest extends BaseTestCase {
} }
} }
public static OpenRocketDocument loadRockSimSubassemblyRocket(RockSimLoader theLoader) throws IOException, RocketLoadException { public static OpenRocketDocument loadBodyTubeChildrenRocket(RockSimLoader theLoader) throws IOException, RocketLoadException {
InputStream stream = RockSimLoaderTest.class.getResourceAsStream("SubAssemblyTest.rkt"); InputStream stream = RockSimLoaderTest.class.getResourceAsStream("BodyTubeChildrenTest.rkt");
try { try {
Assert.assertNotNull("Could not open SubAssemblyTest.rkt", stream); Assert.assertNotNull("Could not open BodyTubeChildrenTest.rkt", stream);
OpenRocketDocument doc = OpenRocketDocumentFactory.createEmptyRocket(); OpenRocketDocument doc = OpenRocketDocumentFactory.createEmptyRocket();
DocumentLoadingContext context = new DocumentLoadingContext(); DocumentLoadingContext context = new DocumentLoadingContext();
context.setOpenRocketDocument(doc); context.setOpenRocketDocument(doc);