1 package com.billkuker.rocketry.motorsim.test;
\r
3 import javax.measure.unit.SI;
\r
5 import org.jscience.physics.amount.Amount;
\r
6 import org.junit.Assert;
\r
7 import org.junit.Test;
\r
9 import com.billkuker.rocketry.motorsim.CylindricalChamber;
\r
11 public class CylindricalChamberTest extends AbstractRocketTest {
\r
14 public void testBurstPressure() {
\r
15 Assert.assertNull( new CylindricalChamber().getBurstPressure() );
\r
19 public void testChamberVolume() {
\r
20 CylindricalChamber c = new CylindricalChamber();
\r
22 c.setLength(Amount.valueOf(100, SI.MILLIMETER));
\r
23 c.setID(Amount.valueOf(20, SI.MILLIMETER));
\r
25 assertApproximate(c.chamberVolume(), Amount.valueOf(10000*Math.PI, SI.MILLIMETER.pow(3)));
\r