From 7cd830d75da247b6a8dce67e19a7b49799ba35b3 Mon Sep 17 00:00:00 2001 From: Daniel Smrcek Date: Thu, 19 Sep 2019 13:25:27 +0200 Subject: [PATCH] With PR #161 we accidentally renamed existing step. So this is to maintain backwards compatibility of releases. --- .../java/org/jbehavesupport/core/ssh/SshSteps.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/jbehave-support-core/src/main/java/org/jbehavesupport/core/ssh/SshSteps.java b/jbehave-support-core/src/main/java/org/jbehavesupport/core/ssh/SshSteps.java index 865f5c20..30962471 100644 --- a/jbehave-support-core/src/main/java/org/jbehavesupport/core/ssh/SshSteps.java +++ b/jbehave-support-core/src/main/java/org/jbehavesupport/core/ssh/SshSteps.java @@ -89,6 +89,16 @@ private String readLog(String systemQualifier, ZonedDateTime startTime, ZonedDat return fetchedLog.toString(); } + /** + * @deprecated + * use markLogTime(String logTimeAlias) instead + */ + @Deprecated + @Given("log timestamp is saved as [$startTimeAlias]") + public void markStartTime(String startTimeAlias) { + markLogTime(startTimeAlias); + } + @Given("current time is saved as log timestamp [$logTimeAlias]") public void markLogTime(String logTimeAlias) { testContext.put(logTimeAlias, ZonedDateTime.now());