@CaptureContext public void put(@CaptureContext.Pattern String key, @CaptureContext.Value String value) { world.put(key, value); }
private void clearOldHeaders() { Set<String> keys = world.getKeysStartingWith(CukesOptions.HEADER_PREFIX); for (String key : keys) { world.remove(key); } }
public String inflate(String input) { Set<String> groups = new HashSet<String>(extractGroups(input)); boolean inflatingEnabled = world.getBoolean(CukesOptions.CONTEXT_INFLATING_ENABLED, true); if (inflatingEnabled) { return inflateGroups(input, groups); } return inflateGroupsWithPlaceholders(input, groups); }
public boolean getBoolean(String key) { return getBoolean(key, false); }
public String getOrThrow(String key) { return world.get(key).or( () -> { throw new CukesMissingPropertyException(key); } ); }
public void reconstruct() { world.reconstruct(); }
public Set<String> keys() { return world.keys(); } }
public Optional<String> get(String key) { return world.get(key); }
public void remove(String key) { world.remove(key); }
private void clearOldHeaders() { Set<String> keys = world.getKeysStartingWith(CukesOptions.HEADER_PREFIX); for (String key : keys) { world.remove(key); } }
private Boolean isBodyTemplatesEnabled() { return world.getBoolean(CukesOptions.REQUEST_BODY_TEMPLATES_ENABLED); }
public void setDefaultExchange(String exchange) { globalWorldFacade.put(DEFAULT_EXCHANGE_NAME_ATTRIBUTE, exchange); }
public void authenticationType(String authenticationType) { world.put(CukesOptions.AUTH_TYPE, authenticationType); }
public void authenticationType(String authenticationType) { world.put(CukesOptions.AUTH_TYPE, authenticationType); }