com.stanfy.helium.model.tests.ServiceTestInfo.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of helium Show documentation
Show all versions of helium Show documentation
DSL and Java API for REST API specification
package com.stanfy.helium.model.tests
/**
* Service test information.
*/
class ServiceTestInfo extends TestsInfo {
/** List of test scenarios. */
final List scenarios = new ArrayList<>()
List getScenarios() { return Collections.unmodifiableList(scenarios) }
void addScenario(final Scenario scenario) {
scenarios.add(scenario)
}
Scenario scenarioByName(final String name) {
return scenarios.find { it.name == name }
}
}