From 22ab6b00e16d3c6879fd92ab36e1ccc8ac8aa85c Mon Sep 17 00:00:00 2001 From: redcatbaer Date: Mon, 6 Jan 2025 19:27:36 +0100 Subject: [PATCH] #431: Added bad weather test scenario. --- .../markdown/TestMarkdownMarkupImporter.java | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/importer/markdown/src/test/java/org/itsallcode/openfasttrace/importer/markdown/TestMarkdownMarkupImporter.java b/importer/markdown/src/test/java/org/itsallcode/openfasttrace/importer/markdown/TestMarkdownMarkupImporter.java index 7e24559d..b8a11c36 100644 --- a/importer/markdown/src/test/java/org/itsallcode/openfasttrace/importer/markdown/TestMarkdownMarkupImporter.java +++ b/importer/markdown/src/test/java/org/itsallcode/openfasttrace/importer/markdown/TestMarkdownMarkupImporter.java @@ -173,18 +173,12 @@ void testWhenInsideMarkdownCodeBlockThenNoSpecificationItemMustBeDetected(final @ParameterizedTest @CsvSource( { - "'', ''", - "', '", - "'`', '`'", - "'``', '``'", - "'````', '````'", - "'``` ', ' ```'", - "'``` ', ' ```'", - "' ```', '``` '", - "'```java ', ' ```java'", - "'~~~', '~~~'", - "'~~~java', '~~~java'", - "'~~~~java ', ' ~~~~java '" + "`,`", + "``,``", + " ``', ``", + "`` ,`` ", + "``java,``", + "~~,~~", }) void testWhenNotInsideMarkdownCodeBlockThenSpecificationItemMustBeDetected(final String startMarker, final String endMarker) @@ -199,6 +193,7 @@ void testWhenNotInsideMarkdownCodeBlockThenSpecificationItemMustBeDetected(final contains(item() .id(SpecificationItemId.parseId("req~example~1")) .location("file_without_code_block.md", 4) + .description(endMarker) // End marker looks like part of the description in this case. .build())); }