This is an automated email from the ASF dual-hosted git repository.
fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git
The following commit(s) were added to refs/heads/master by this push:
new 9a900cb Correct test cases for new behaviour of report generation
9a900cb is described below
commit 9a900cb55604c45f7a85dbcd78ba210a17dd9f72
Author: Felix Schumacher <[email protected]>
AuthorDate: Sun Aug 30 10:44:47 2020 +0200
Correct test cases for new behaviour of report generation
Use less aggressive escaping for JSON Strings in reports error messages
Relates to 21128b56ac4fa1f4d9a260b1f0e4ec3cfa7f033b
Bugzilla Id: 64624
---
.../org/apache/jmeter/report/processor/ErrorsSummaryConsumerTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/src/core/src/test/java/org/apache/jmeter/report/processor/ErrorsSummaryConsumerTest.java
b/src/core/src/test/java/org/apache/jmeter/report/processor/ErrorsSummaryConsumerTest.java
index a75f740..ab43b8e 100644
---
a/src/core/src/test/java/org/apache/jmeter/report/processor/ErrorsSummaryConsumerTest.java
+++
b/src/core/src/test/java/org/apache/jmeter/report/processor/ErrorsSummaryConsumerTest.java
@@ -40,12 +40,12 @@ public class ErrorsSummaryConsumerTest {
sample = new Sample(0, metadata, new String[] { "false", "200", "",
"Test failed: text expected to contain /<title>Some html
text</title>/" });
- assertEquals("Test failed: text expected to contain
\\/<title>Some html text<\\/title>\\/",
+ assertEquals("Test failed: text expected to contain /<title>Some
html text</title>/",
ErrorsSummaryConsumer.getErrorKey(sample));
sample = new Sample(0, metadata, new String[] { "false", "200", "",
"Test failed: text expected to contain /{\"glossary\": {
\"title\": \"example glossary\"}}/" });
- assertEquals("Test failed: text expected to contain
\\/{"glossary": { "title": "example
glossary"}}\\/",
+ assertEquals("Test failed: text expected to contain
/{"glossary": { "title": "example glossary"}}/",
ErrorsSummaryConsumer.getErrorKey(sample));
sample = new Sample(0, metadata, new String[] { "true", "200", "", ""
});