public class PersistableFixture extends Object implements IPersistable
| Modifier and Type | Field and Description |
|---|---|
Properties |
loadedProperties |
Properties |
savedProperties |
boolean |
stateLoaded |
boolean |
stateSaved |
DOT, VALUE_SEPARATOR| Constructor and Description |
|---|
PersistableFixture() |
| Modifier and Type | Method and Description |
|---|---|
void |
loadState(String prefix,
Properties properties)
Restore the state out of the given Properties identified by the specified
prefix.
|
void |
saveState(String prefix,
Properties properties)
Saves the state to the given Properties using the specified prefix.
|
public Properties loadedProperties
public Properties savedProperties
public boolean stateLoaded
public boolean stateSaved
public void loadState(String prefix, Properties properties)
IPersistableloadState in interface IPersistableprefix - The prefix to use for the state keys. Is also used as the
state configuration name.properties - The Properties instance to load the state from.public void saveState(String prefix, Properties properties)
IPersistablesaveState in interface IPersistableprefix - The prefix to use for the state keys. Is also used as the
state configuration name.properties - The Properties instance to save the state to.Copyright © 2019. All rights reserved.