presetspec.put(ComponentPreset.TYPE, ComponentPreset.Type.NOSE_CONE);
ComponentPresetFactory.create(presetspec);
} catch ( InvalidComponentPresetException ex ) {
- PresetTest.assertInvalidPresetException( ex,
+ PresetAssertHelper.assertInvalidPresetException( ex,
new TypedKey<?>[] {
ComponentPreset.MANUFACTURER,
ComponentPreset.PARTNO,
presetspec.put( ComponentPreset.MANUFACTURER, Manufacturer.getManufacturer("manufacturer"));
ComponentPresetFactory.create(presetspec);
} catch ( InvalidComponentPresetException ex ) {
- PresetTest.assertInvalidPresetException( ex,
+ PresetAssertHelper.assertInvalidPresetException( ex,
new TypedKey<?>[] {
ComponentPreset.PARTNO,
ComponentPreset.LENGTH,
presetspec.put( ComponentPreset.PARTNO, "partno");
ComponentPresetFactory.create(presetspec);
} catch ( InvalidComponentPresetException ex ) {
- PresetTest.assertInvalidPresetException( ex,
+ PresetAssertHelper.assertInvalidPresetException( ex,
new TypedKey<?>[] {
ComponentPreset.LENGTH,
ComponentPreset.AFT_OUTER_DIAMETER,
presetspec.put( ComponentPreset.LENGTH, 2.0);
ComponentPresetFactory.create(presetspec);
} catch ( InvalidComponentPresetException ex ) {
- PresetTest.assertInvalidPresetException( ex,
+ PresetAssertHelper.assertInvalidPresetException( ex,
new TypedKey<?>[] {
ComponentPreset.AFT_OUTER_DIAMETER,
ComponentPreset.SHAPE
presetspec.put( ComponentPreset.SHAPE, Transition.Shape.CONICAL);
ComponentPresetFactory.create(presetspec);
} catch ( InvalidComponentPresetException ex ) {
- PresetTest.assertInvalidPresetException( ex,
+ PresetAssertHelper.assertInvalidPresetException( ex,
new TypedKey<?>[] {
ComponentPreset.AFT_OUTER_DIAMETER
},
presetspec.put( ComponentPreset.LENGTH, 2.0);
presetspec.put( ComponentPreset.SHAPE, Transition.Shape.CONICAL);
presetspec.put( ComponentPreset.AFT_OUTER_DIAMETER, 2.0);
- presetspec.put( ComponentPreset.MATERIAL, new Material.Bulk("test", 2.0, true));
+ presetspec.put( ComponentPreset.MATERIAL, Material.newUserMaterial(Material.Type.BULK,"test", 2.0));
ComponentPreset preset = ComponentPresetFactory.create(presetspec);
assertEquals("test",preset.get(ComponentPreset.MATERIAL).getName());
presetspec.put( ComponentPreset.AFT_OUTER_DIAMETER, 2.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));
ComponentPreset preset = ComponentPresetFactory.create(presetspec);
// constants put into the presetspec above.