This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 0ece441 Fixed: Fixed line lengths in ModelFormFieldTest to adhere to
coding standards
new 66aa76d Merge pull request #35 from
danwatford/ofbiz-11418-documentation
0ece441 is described below
commit 0ece441228b224e4d3247f0d0bf54f3663a6caf3
Author: Daniel Watford <[email protected]>
AuthorDate: Fri Feb 28 08:02:12 2020 +0000
Fixed: Fixed line lengths in ModelFormFieldTest to adhere to coding
standards
(OFBIZ-11418)
---
.../java/org/apache/ofbiz/widget/model/ModelFormFieldTest.java | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git
a/framework/widget/src/test/java/org/apache/ofbiz/widget/model/ModelFormFieldTest.java
b/framework/widget/src/test/java/org/apache/ofbiz/widget/model/ModelFormFieldTest.java
index 271e611..00f2371 100644
---
a/framework/widget/src/test/java/org/apache/ofbiz/widget/model/ModelFormFieldTest.java
+++
b/framework/widget/src/test/java/org/apache/ofbiz/widget/model/ModelFormFieldTest.java
@@ -139,7 +139,8 @@ public class ModelFormFieldTest {
ModelFormField field = from(b -> b.setName("lookup-field"));
ModelFormField.LookupField lookupField = new
ModelFormField.LookupField(element, field);
-
assertThat(lookupField.getTargetParameterList(ImmutableMap.of("prefix", "P1")),
Matchers.contains("P1TargetParam"));
+
assertThat(lookupField.getTargetParameterList(ImmutableMap.of("prefix", "P1")),
+ Matchers.contains("P1TargetParam"));
}
@Test
@@ -153,6 +154,8 @@ public class ModelFormFieldTest {
ModelFormField field = from(b -> b.setName("lookup-field"));
ModelFormField.LookupField lookupField = new
ModelFormField.LookupField(element, field);
-
assertThat(lookupField.getTargetParameterList(ImmutableMap.of("prefix", "P1",
"key1", "AA,BB , CC")), Matchers.contains("P1TargetParam", "AA", "BB", "CC"));
+ final List<String> targetParameterList =
lookupField.getTargetParameterList(
+ ImmutableMap.of("prefix", "P1", "key1", "AA,BB , CC"));
+ assertThat(targetParameterList, Matchers.contains("P1TargetParam",
"AA", "BB", "CC"));
}
}