chibenwa commented on code in PR #2746:
URL: https://github.com/apache/james-project/pull/2746#discussion_r2154440617


##########
mdn/src/test/java/org/apache/james/mdn/MDNTest.java:
##########
@@ -66,6 +69,16 @@ class MDNTest {
     @Test
     void shouldMatchBeanContract() {
         EqualsVerifier.forClass(MDN.class)
+            .withPrefabValues(
+                ImmutableList.class,
+                ImmutableList.of(
+                    new 
org.apache.james.mdn.fields.Error(Text.fromRawText("error 1")),
+                    
ExtensionField.builder().fieldName("name1").rawValue("value1").build()
+                ),
+                ImmutableList.of(
+                    new Error(Text.fromRawText("error 2")),
+                    
ExtensionField.builder().fieldName("name2").rawValue("value2").build()
+                ))

Review Comment:
   ```suggestion
               .withPrefabValues(
                   ImmutableList.class,
                   ImmutableList.of(
                       new 
org.apache.james.mdn.fields.Error(Text.fromRawText("error 1")),
                       
ExtensionField.builder().fieldName("name1").rawValue("value1").build()),
                   ImmutableList.of(
                       new Error(Text.fromRawText("error 2")),
                       
ExtensionField.builder().fieldName("name2").rawValue("value2").build()))
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org
For additional commands, e-mail: notifications-h...@james.apache.org

Reply via email to