X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=core%2Ftest%2Fnet%2Fsf%2Fopenrocket%2Fpreset%2FNoseConeComponentTests.java;h=e4a954e6da0c51e3085051d8bd6fc12b492f7faf;hb=4da92a4e994992a78d62a7ca21c88d6c41292d6f;hp=20c093ce18a7ca22d21bb5c50a089eea1741227f;hpb=d6033007b43b6969696d419f0c8d5b279136f430;p=debian%2Fopenrocket diff --git a/core/test/net/sf/openrocket/preset/NoseConeComponentTests.java b/core/test/net/sf/openrocket/preset/NoseConeComponentTests.java index 20c093ce..e4a954e6 100644 --- a/core/test/net/sf/openrocket/preset/NoseConeComponentTests.java +++ b/core/test/net/sf/openrocket/preset/NoseConeComponentTests.java @@ -37,7 +37,7 @@ public class NoseConeComponentTests extends BaseTestCase { presetspec.put( ComponentPreset.AFT_SHOULDER_DIAMETER, 1.0); presetspec.put( ComponentPreset.FILLED, true); presetspec.put( ComponentPreset.MASS, 100.0); - presetspec.put( ComponentPreset.MATERIAL, new Material.Bulk("test", 2.0, true)); + presetspec.put( ComponentPreset.MATERIAL, Material.newUserMaterial(Material.Type.BULK,"test", 2.0)); preset = ComponentPresetFactory.create(presetspec); } @@ -61,6 +61,7 @@ public class NoseConeComponentTests extends BaseTestCase { assertEquals( 0.0, nc.getForeShoulderRadius(), 0.0 ); assertEquals( 1.0, nc.getAftShoulderLength(), 0.0 ); assertEquals( 0.5, nc.getAftShoulderRadius(), 0.0 ); + assertEquals( 0.5, nc.getAftShoulderThickness(), 0.0 ); assertFalse( nc.isForeRadiusAutomatic() ); assertFalse( nc.isAftRadiusAutomatic() ); @@ -154,7 +155,7 @@ public class NoseConeComponentTests extends BaseTestCase { nc.loadPreset(preset); - nc.setMaterial( new Material.Bulk("new", 1.0, true)); + nc.setMaterial( Material.newUserMaterial(Material.Type.BULK,"new", 1.0)); assertNull( nc.getPresetComponent() ); }