Package com.privalia.qa.lookups
Class DefaultLookUp
- java.lang.Object
-
- com.privalia.qa.lookups.DefaultLookUp
-
- All Implemented Interfaces:
org.apache.commons.text.lookup.StringLookup
public class DefaultLookUp extends Object implements org.apache.commons.text.lookup.StringLookup
Default String Lookup used during variable replacement.
-
-
Constructor Summary
Constructors Constructor Description DefaultLookUp()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
lookup(String key)
Search the given property within the Thread properties first, it not found, it will try to locate the property in the System properties.
-
-
-
Method Detail
-
lookup
public String lookup(String key)
Search the given property within the Thread properties first, it not found, it will try to locate the property in the System properties.- Specified by:
lookup
in interfaceorg.apache.commons.text.lookup.StringLookup
- Parameters:
key
- key to look for- Returns:
- the value for the given key
-
-