presetspec.put(ComponentPreset.TYPE, ComponentPreset.Type.LAUNCH_LUG);
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
},
presetspec.put( ComponentPreset.OUTER_DIAMETER, 2.0);
ComponentPresetFactory.create(presetspec);
} catch ( InvalidComponentPresetException ex ) {
- PresetTest.assertInvalidPresetException( ex,
+ PresetAssertHelper.assertInvalidPresetException( ex,
null,
new String[] {
"Preset dimensions underspecified"
presetspec.put( ComponentPreset.INNER_DIAMETER, 2.0);
ComponentPresetFactory.create(presetspec);
} catch ( InvalidComponentPresetException ex ) {
- PresetTest.assertInvalidPresetException( ex,
+ PresetAssertHelper.assertInvalidPresetException( ex,
null,
new String[] {
"Preset dimensions underspecified"
presetspec.put( ComponentPreset.THICKNESS, 2.0);
ComponentPresetFactory.create(presetspec);
} catch ( InvalidComponentPresetException ex ) {
- PresetTest.assertInvalidPresetException( ex,
+ PresetAssertHelper.assertInvalidPresetException( ex,
null,
new String[] {
"Preset dimensions underspecified"