Fix unit tests
The setRadius method is meant to set the total radius from the center of the parent, so not really like is implemented in the unit test...
This commit is contained in:
parent
7ec703964c
commit
92b7c5e6a9
@ -251,7 +251,7 @@ public class ParallelStageTest extends BaseTestCase {
|
||||
// vv function under test
|
||||
parallelBoosterStage.setAxialOffset( AxialMethod.BOTTOM, 0.0 );
|
||||
final double targetRadiusOffset = 0.01;
|
||||
parallelBoosterStage.setRadius( RadiusMethod.RELATIVE, targetRadiusOffset );
|
||||
parallelBoosterStage.setRadius( RadiusMethod.RELATIVE, RadiusMethod.RELATIVE.getRadius(parallelBoosterStage.getParent(), parallelBoosterStage, targetRadiusOffset));
|
||||
// ^^ function under test
|
||||
|
||||
assertFalse(RadiusMethod.RELATIVE.clampToZero());
|
||||
|
Loading…
x
Reference in New Issue
Block a user