From a7069d81b7c25c55231abeeb0825018b18f4c1b4 Mon Sep 17 00:00:00 2001 From: Fried Hoeben Date: Thu, 25 Jan 2018 14:25:11 +0100 Subject: [PATCH] Fix issue #29 --- .../fitnesse/slim/AutoArgScenarioTable.java | 6 ++---- .../NestedTableTemplateWithSpacesTest.wiki | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 src/test/wiki/FitNesseRoot/HsacPlugin/NestedTableTemplateWithSpacesTest.wiki diff --git a/src/main/java/nl/hsac/fitnesse/slim/AutoArgScenarioTable.java b/src/main/java/nl/hsac/fitnesse/slim/AutoArgScenarioTable.java index 3366d42..5b6af61 100644 --- a/src/main/java/nl/hsac/fitnesse/slim/AutoArgScenarioTable.java +++ b/src/main/java/nl/hsac/fitnesse/slim/AutoArgScenarioTable.java @@ -3,10 +3,7 @@ import fitnesse.testsystems.TestExecutionException; import fitnesse.testsystems.slim.SlimTestContext; import fitnesse.testsystems.slim.Table; -import fitnesse.testsystems.slim.tables.ScenarioTable; -import fitnesse.testsystems.slim.tables.SlimAssertion; -import fitnesse.testsystems.slim.tables.SlimTable; -import fitnesse.testsystems.slim.tables.SyntaxError; +import fitnesse.testsystems.slim.tables.*; import nl.hsac.fitnesse.slimcoverage.SlimCoverageTestContextImpl; import java.lang.reflect.Field; @@ -74,6 +71,7 @@ && maybeNestedScenario(columnCount, cellContent)) { private void addNestedScenarioArguments(Set found, boolean addInputs, String cellContent) { String scenarioName = cellContent.substring(0, cellContent.length() - 1); + scenarioName = Disgracer.disgraceClassName(scenarioName); SlimTestContext testContext = getTestContext(); ScenarioTable scenario; if (testContext instanceof SlimCoverageTestContextImpl) { diff --git a/src/test/wiki/FitNesseRoot/HsacPlugin/NestedTableTemplateWithSpacesTest.wiki b/src/test/wiki/FitNesseRoot/HsacPlugin/NestedTableTemplateWithSpacesTest.wiki new file mode 100644 index 0000000..81f88d4 --- /dev/null +++ b/src/test/wiki/FitNesseRoot/HsacPlugin/NestedTableTemplateWithSpacesTest.wiki @@ -0,0 +1,19 @@ +|table template|T I0 | +|check |clone symbol|@{P0}|0| +|$P6= |clone symbol|@{P1} | + +|table template|T I1 | +|check |clone symbol|@{P3}|3| +|$P4= |clone symbol|@{P1} | +|T I0; | + +|table template|T I2 | +|T I1; | +|$P5= |clone symbol|@{P2}| + + +|script| + +|T I2 | +|P0|P1|P2|P3|P4?|P5?|P6?| +|0 |1 |2 |3 |1 |2 |1 | \ No newline at end of file