X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=core%2Ftest%2Fnet%2Fsf%2Fopenrocket%2Fpreset%2FParachuterComponentTests.java;h=6263957de50587f1cd5abe1f22d167f6b0b26a11;hb=4da92a4e994992a78d62a7ca21c88d6c41292d6f;hp=2c4b4442c5a58fcf226b5b1a7bfa0da64eb5d21d;hpb=fb75481e190d4f789e7ac6d062560b823b267adc;p=debian%2Fopenrocket diff --git a/core/test/net/sf/openrocket/preset/ParachuterComponentTests.java b/core/test/net/sf/openrocket/preset/ParachuterComponentTests.java index 2c4b4442..6263957d 100644 --- a/core/test/net/sf/openrocket/preset/ParachuterComponentTests.java +++ b/core/test/net/sf/openrocket/preset/ParachuterComponentTests.java @@ -33,9 +33,9 @@ public class ParachuterComponentTests extends BaseTestCase { presetspec.put( ComponentPreset.DIAMETER, 20.0); presetspec.put( ComponentPreset.LINE_COUNT, 8); presetspec.put( ComponentPreset.LINE_LENGTH, 12.0); - Material m = new Material.Surface("testMaterial", 2.0, true); + Material m = Material.newUserMaterial(Material.Type.SURFACE,"testMaterial", 2.0); presetspec.put( ComponentPreset.MATERIAL, m); - m = new Material.Line("testLineMaterial", 3, true); + m = Material.newUserMaterial(Material.Type.LINE,"testLineMaterial", 3); presetspec.put( ComponentPreset.LINE_MATERIAL, m); preset = ComponentPresetFactory.create(presetspec); } @@ -111,7 +111,7 @@ public class ParachuterComponentTests extends BaseTestCase { cr.loadPreset(preset); - cr.setMaterial( new Material.Surface("new", 1.0, true)); + cr.setMaterial( Material.newUserMaterial(Material.Type.SURFACE,"new", 1.0)); assertNull( cr.getPresetComponent() ); } @@ -122,7 +122,7 @@ public class ParachuterComponentTests extends BaseTestCase { cr.loadPreset(preset); - cr.setLineMaterial( new Material.Line("new", 1.0, true)); + cr.setLineMaterial( Material.newUserMaterial(Material.Type.LINE,"new", 1.0)); assertSame( preset, cr.getPresetComponent() ); }