public class PropertySteps extends Object
| Constructor and Description |
|---|
PropertySteps(PropertyStore propertyStore,
PlaceholderResolver placeholderResolver) |
| Modifier and Type | Method and Description |
|---|---|
void |
captureUsingRegex(String regex,
String existingProperty,
String newProperty) |
void |
extractFirstLinkFromStoredHtml(String htmlKey,
String propertyKey) |
void |
generatePassword(String password,
String key) |
void |
generateRandomAlphanumeric(String key) |
void |
generateRandomAlphanumericAlternate(String key) |
void |
removeProperty(String key) |
void |
storeProperty(String value,
String key) |
public PropertySteps(PropertyStore propertyStore, PlaceholderResolver placeholderResolver)
@And(value="^the first link in stored HTML (\\w+) is stored as (\\w+)$") public void extractFirstLinkFromStoredHtml(String htmlKey, String propertyKey)
@And(value="^the regex (.+) is used on stored value (\\w+) to capture (\\w+)$") public void captureUsingRegex(String regex, String existingProperty, String newProperty)
@Given(value="^a random alphanumeric (?:name|string) is stored as (\\w+)$") public void generateRandomAlphanumeric(String key)
@Given(value="^(?:we|he|she|the user|a user) store(?:s)? a random alphanumeric (?:name|string) as (\\w+)$") public void generateRandomAlphanumericAlternate(String key)
@Given(value="^(?:we|he|she|the user|a user) store(?:s)? (.+) as (\\w+)$") public void storeProperty(String value, String key)
@Given(value="^(?:we|he|she|the user|a user) hash(?:es)? (.+) (?:using Blowfish |using BCrypt )?and stores it as (\\w+)$") public void generatePassword(String password, String key)
@Given(value="^(\\w+) stored value is removed$") public void removeProperty(String key)
Copyright © 2016. All rights reserved.