@@ -40,8 +40,9 @@ public void normalizeTargetingShouldConvertArrayToFirstElementFieldForUserAndWri
40
40
// then
41
41
assertThat (inputParam ).isEqualTo (mapper .createObjectNode ().set ("user" ,
42
42
mapper .createObjectNode ().put ("gender" , "male" )));
43
- assertThat (errors ).containsOnly ("Incorrect type for first party data field targeting.user.gender, expected is"
44
- + " string, but was an array of strings. Converted to string by taking first element of array." );
43
+ assertThat (errors ).containsOnly ("WARNING: Incorrect type for first party data field targeting.user.gender,"
44
+ + " expected is string, but was an array of strings. Converted to string by taking first element "
45
+ + "of array." );
45
46
}
46
47
47
48
@ Test
@@ -57,8 +58,9 @@ public void normalizeTargetingShouldConvertArrayToCommaSeparatedStringFieldForUs
57
58
// then
58
59
assertThat (inputParam ).isEqualTo (mapper .createObjectNode ().set ("user" ,
59
60
mapper .createObjectNode ().put ("keywords" , "keyword1,keyword2" )));
60
- assertThat (errors ).containsOnly ("Incorrect type for first party data field targeting.user.keywords, expected is"
61
- + " string, but was an array of strings. Converted to string by separating values with comma." );
61
+ assertThat (errors ).containsOnly ("WARNING: Incorrect type for first party data field targeting.user.keywords,"
62
+ + " expected is string, but was an array of strings. Converted to string by separating values with"
63
+ + " comma." );
62
64
}
63
65
64
66
@ Test
@@ -85,7 +87,7 @@ public void normalizeTargetingToCommaSeparatedTextNodeShouldWriteMessageAndRemov
85
87
86
88
// then
87
89
assertThat (inputParam ).isEqualTo (mapper .createObjectNode ().set ("user" , mapper .createObjectNode ()));
88
- assertThat (errors ).containsOnly ("Incorrect type for first party data field targeting.user.keywords,"
90
+ assertThat (errors ).containsOnly ("WARNING: Incorrect type for first party data field targeting.user.keywords,"
89
91
+ " expected strings, but was `ARRAY of different types`. Failed to convert to correct type." );
90
92
}
91
93
@@ -101,7 +103,7 @@ public void normalizeTargetingToFirstElementTextNodeShouldWriteMessageAndRemoveF
101
103
102
104
// then
103
105
assertThat (inputParam ).isEqualTo (mapper .createObjectNode ().set ("user" , mapper .createObjectNode ()));
104
- assertThat (errors ).containsOnly ("Incorrect type for first party data field targeting.user.gender,"
106
+ assertThat (errors ).containsOnly ("WARNING: Incorrect type for first party data field targeting.user.gender,"
105
107
+ " expected strings, but was `NUMBER`. Failed to convert to correct type." );
106
108
}
107
109
0 commit comments