[fix] fixed resultant test issues
This commit is contained in:
parent
3e3b5dc655
commit
e7ceafe31c
@ -462,9 +462,9 @@ public class FlightConfigurationTest extends BaseTestCase {
|
||||
assertThat((Class<TrapezoidFinSet>) boosterFinContext0.component.getClass(), equalTo(TrapezoidFinSet.class));
|
||||
assertThat(boosterFinContext0.instanceNumber, equalTo(0));
|
||||
final Coordinate boosterFin0Location = boosterFinContext0.getLocation();
|
||||
assertEquals(boosterFin0Location.x, 1.044, EPSILON);
|
||||
assertEquals(boosterFin0Location.y, -0.104223611, EPSILON);
|
||||
assertEquals(boosterFin0Location.z, -0.027223611, EPSILON);
|
||||
assertEquals(1.044, boosterFin0Location.x, EPSILON);
|
||||
assertEquals( -0.104223611, boosterFin0Location.y, EPSILON);
|
||||
assertEquals( -0.027223611, boosterFin0Location.z, EPSILON);
|
||||
|
||||
final InstanceContext boosterFinContext1 = finContextList.get(4);
|
||||
assertThat((Class<TrapezoidFinSet>) boosterFinContext1.component.getClass(), equalTo(TrapezoidFinSet.class));
|
||||
|
@ -1207,7 +1207,7 @@ public class FreeformFinSetTest extends BaseTestCase {
|
||||
assertEquals(0.03423168, coords.x, EPSILON);
|
||||
assertEquals(0.01427544, coords.y, EPSILON);
|
||||
|
||||
BodyTube bt = new BodyTube();
|
||||
BodyTube bt = new BodyTube(0.1, 0.1);
|
||||
bt.addChild(fins);
|
||||
FinSetCalc calc = new FinSetCalc(fins);
|
||||
FlightConditions conditions = new FlightConditions(null);
|
||||
|
@ -55,6 +55,29 @@ public class RocketTest extends BaseTestCase {
|
||||
//ComponentCompare.assertDeepEquality(r1, r2);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAutoAlphaIII() {
|
||||
Rocket rocket = TestRockets.makeEstesAlphaIII();
|
||||
|
||||
AxialStage stage = (AxialStage) rocket.getChild(0);
|
||||
|
||||
BodyTube body = (BodyTube)stage.getChild(1);
|
||||
final double expRadius = 0.012;
|
||||
double actRadius = body.getOuterRadius();
|
||||
assertEquals(" radius match: ", expRadius, actRadius, EPSILON);
|
||||
|
||||
body.setOuterRadiusAutomatic(true);
|
||||
actRadius = body.getOuterRadius();
|
||||
assertEquals(" radius match: ", expRadius, actRadius, EPSILON);
|
||||
|
||||
final Transition transition = new Transition();
|
||||
stage.addChild(transition);
|
||||
|
||||
transition.setForeRadiusAutomatic(true);
|
||||
actRadius = transition.getForeRadius();
|
||||
assertEquals(" trailing transition match: ", expRadius, actRadius, EPSILON);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEstesAlphaIII(){
|
||||
Rocket rocket = TestRockets.makeEstesAlphaIII();
|
||||
|
Loading…
x
Reference in New Issue
Block a user