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 3c83a0a Test one more method in Converter
3c83a0a is described below
commit 3c83a0a4e24334f5a56dd653fb776c55a0fdb73c
Author: Felix Schumacher <[email protected]>
AuthorDate: Thu Aug 22 13:35:47 2019 +0200
Test one more method in Converter
---
.../test/groovy/org/apache/jorphan/util/ConverterSpec.groovy | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git
a/src/jorphan/src/test/groovy/org/apache/jorphan/util/ConverterSpec.groovy
b/src/jorphan/src/test/groovy/org/apache/jorphan/util/ConverterSpec.groovy
index 0c8bc3b..66023c6 100644
--- a/src/jorphan/src/test/groovy/org/apache/jorphan/util/ConverterSpec.groovy
+++ b/src/jorphan/src/test/groovy/org/apache/jorphan/util/ConverterSpec.groovy
@@ -144,4 +144,14 @@ class ConverterSpec extends Specification {
.parse(dateString)
return DateFormat.getDateInstance(format).format(date)
}
+
+ def "line breaks should be replaced in '#source' to '#expected'"() {
+ expect:
+ Converter.insertLineBreaks(source, "foo") == expected
+ where:
+ source | expected
+ null | ""
+ "bar" | "bar"
+ "\nbar"| "foobar"
+ }
}