Rename burstPressure to getBurstPressure so it shows up on the editor.
[sw/motorsim] / test / com / billkuker / rocketry / motorsim / test / CylindricalChamberTest.java
1 package com.billkuker.rocketry.motorsim.test;\r
2 \r
3 import javax.measure.unit.SI;\r
4 \r
5 import org.jscience.physics.amount.Amount;\r
6 import org.junit.Assert;\r
7 import org.junit.Test;\r
8 \r
9 import com.billkuker.rocketry.motorsim.CylindricalChamber;\r
10 \r
11 public class CylindricalChamberTest extends AbstractRocketTest {\r
12 \r
13         @Test\r
14         public void testBurstPressure() {\r
15                 Assert.assertNull( new CylindricalChamber().getBurstPressure() );\r
16         }\r
17 \r
18         @Test\r
19         public void testChamberVolume() {\r
20                 CylindricalChamber c = new CylindricalChamber();\r
21                 \r
22                 c.setLength(Amount.valueOf(100, SI.MILLIMETER));\r
23                 c.setID(Amount.valueOf(20, SI.MILLIMETER));\r
24                 \r
25                 assertApproximate(c.chamberVolume(), Amount.valueOf(10000*Math.PI, SI.MILLIMETER.pow(3)));\r
26         }\r
27 \r
28 }\r