Changed VirtualPropertyResolver to accept TimestampCalculator in the constructor
Signed-off-by: Dominik Herbst <dominik.herbst@bosch-si.com>
This commit is contained in:
@@ -441,12 +441,10 @@ public final class RSQLUtility {
|
||||
// methods.
|
||||
final Object transformedValue = transformedValues.get(0);
|
||||
|
||||
final String value;
|
||||
String value = values.get(0);
|
||||
// if lookup is available, replace macros ...
|
||||
if (virtualPropertyReplacer != null) {
|
||||
value = virtualPropertyReplacer.replace(values.get(0));
|
||||
} else {
|
||||
value = values.get(0);
|
||||
value = virtualPropertyReplacer.replace(value);
|
||||
}
|
||||
|
||||
final List<Predicate> singleList = new ArrayList<>();
|
||||
|
||||
@@ -50,7 +50,7 @@ import ru.yandex.qatools.allure.annotations.Stories;
|
||||
public class RSQLUtilityTest {
|
||||
|
||||
@Spy
|
||||
VirtualPropertyResolver macroResolver = new VirtualPropertyResolver();
|
||||
VirtualPropertyResolver macroResolver = new VirtualPropertyResolver(new TimestampCalculator());
|
||||
|
||||
@Mock
|
||||
TenantConfigurationManagement confMgmt;
|
||||
|
||||
@@ -36,7 +36,7 @@ import ru.yandex.qatools.allure.annotations.Stories;
|
||||
public class VirtualPropertyResolverTest {
|
||||
|
||||
@Spy
|
||||
VirtualPropertyResolver resolverUnderTest = new VirtualPropertyResolver();
|
||||
VirtualPropertyResolver resolverUnderTest = new VirtualPropertyResolver(new TimestampCalculator());
|
||||
|
||||
@Mock
|
||||
TenantConfigurationManagement confMgmt;
|
||||
|
||||
Reference in New Issue
Block a user