use of org.opensmartgridplatform.cucumber.platform.core.builders.ManufacturerBuilder in project open-smart-grid-platform by OSGP.
the class ManufacturerSteps method aManufacturer.
/**
* Generic method which adds a manufacturer using the settings.
*
* @param settings The settings for the manufacturer to be used.
* @throws Throwable
*/
@Given("^a manufacturer$")
public void aManufacturer(final Map<String, String> settings) throws Throwable {
final Manufacturer manufacturer = new ManufacturerBuilder().withSettings(settings).build();
this.manufacturerRepository.save(manufacturer);
}
Aggregations