public class RestFixtureConfig
extends fit.Fixture
A configuration is a named map that stores key/value pairs. The name of the
map is passed as an optional parameter to the fixture. If not passed it's
assumed that a default name is used. The default value of the map name is
Config.DEFAULT_CONFIG_NAME.
The structure of the table of this fixture simply a table that reports key/values. The name of the config is optionally passed to the fixture.
Example:
Uses the default config name:
| smartrics.rest.fitnesse.fixture.RestFixtureConfig | |
| key1 | value1 |
| key2 | value2 |
| ... | ... |
Uses the config name confname:
| smartrics.rest.fitnesse.fixture.RestFixtureConfig | confname |
| key1 | value1 |
| key2 | value2 |
| ... | ... |
RestFixture accesses the config passed by name as second parameter to
the fixture or the default if no name is passed:
| smartrics.rest.fitnesse.fixture.RestFixture | http://localhost:7070 |
| ... | |
| smartrics.rest.fitnesse.fixture.RestFixture | http://localhost:7070 | confname |
| ... | ||
| Constructor and Description |
|---|
RestFixtureConfig()
Default constructor.
|
RestFixtureConfig(String... args)
Constructor with args.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doRow(fit.Parse p)
Processes each row in the config fixture table and loads the key/value
pairs.
|
List<List<String>> |
doTable(List<List<String>> rows)
Support for Slim runner.
|
callParseMethod, camel, check, ClearSymbols, counts, doCell, doCells, doRows, doTable, doTables, escape, escape, exception, getArgs, getArgsForTable, getLinkedFixtureWithArgs, getSymbol, getTargetClass, gray, handleBlankCell, hasParseMethod, hasSymbol, ignore, interpretTables, isFriendlyException, label, loadFixture, parse, right, setForcedAbort, setSymbol, wrong, wrongpublic RestFixtureConfig()
public RestFixtureConfig(String... args)
args - the fixture argspublic List<List<String>> doTable(List<List<String>> rows)
rows - the rowspublic void doRow(fit.Parse p)
Config.DEFAULT_CONFIG_NAME.doRow in class fit.FixtureCopyright © 2017 smartrics. All rights reserved.