Search in sources :

Example 1 with ManufacturerBuilder

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);
}
Also used : ManufacturerBuilder(org.opensmartgridplatform.cucumber.platform.core.builders.ManufacturerBuilder) Manufacturer(org.opensmartgridplatform.domain.core.entities.Manufacturer) Given(io.cucumber.java.en.Given)

Aggregations

Given (io.cucumber.java.en.Given)1 ManufacturerBuilder (org.opensmartgridplatform.cucumber.platform.core.builders.ManufacturerBuilder)1 Manufacturer (org.opensmartgridplatform.domain.core.entities.Manufacturer)1