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:
SiboVG 2022-06-11 01:37:45 +02:00
parent 7ec703964c
commit 92b7c5e6a9

View File

@ -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());