File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed
log4j-core-test/src/test/java/org/apache/logging/log4j/core/layout Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 16
16
*/
17
17
package org .apache .logging .log4j .core .layout ;
18
18
19
+ import static org .hamcrest .MatcherAssert .assertThat ;
19
20
import static org .junit .Assert .assertEquals ;
20
21
import static org .junit .Assert .assertFalse ;
21
22
import static org .junit .Assert .assertNull ;
22
23
import static org .junit .Assert .assertTrue ;
24
+ import static org .xmlunit .matchers .HasXPathMatcher .hasXPath ;
23
25
24
26
import com .fasterxml .jackson .core .JsonParseException ;
25
27
import com .fasterxml .jackson .databind .JsonMappingException ;
@@ -332,8 +334,9 @@ public void testAdditionalFields() {
332
334
.setConfiguration (ctx .getConfiguration ())
333
335
.build ();
334
336
final String str = layout .toSerializable (LogEventFixtures .createLogEvent ());
335
- assertTrue (str , str .contains ("<KEY1>VALUE1</KEY1>" ));
336
- assertTrue (str , str .contains ("<KEY2>" + new JavaLookup ().getRuntime () + "</KEY2>" ));
337
+
338
+ assertThat (str , hasXPath ("//KEY1[text()='VALUE1']" ));
339
+ assertThat (str , hasXPath ("//KEY2[text()='" + new JavaLookup ().getRuntime () + "']" ));
337
340
}
338
341
339
342
@ Test
Original file line number Diff line number Diff line change 87
87
<hamcrest .version>3.0</hamcrest .version>
88
88
<HdrHistogram .version>2.2.2</HdrHistogram .version>
89
89
<hsqldb .version>2.7.4</hsqldb .version>
90
- <jackson-bom .version>2.18.3 </jackson-bom .version>
90
+ <jackson-bom .version>2.19.0 </jackson-bom .version>
91
91
<!-- Override the version in Jakarta EE 9 BOM: -->
92
92
<jakarta-activation .version>2.1.3</jakarta-activation .version>
93
93
<jakarta-mail .version>2.1.3</jakarta-mail .version>
Original file line number Diff line number Diff line change 345
345
<site-conversant .version>1.2.21</site-conversant .version>
346
346
<site-disruptor .version>4.0.0</site-disruptor .version>
347
347
<site-flume .version>1.11.0</site-flume .version>
348
- <site-jackson .version>2.18.3 </site-jackson .version>
348
+ <site-jackson .version>2.19.0 </site-jackson .version>
349
349
<site-javax-mail .version>1.6.2</site-javax-mail .version>
350
350
<site-jctools .version>4.0.5</site-jctools .version>
351
351
<site-je .version>18.3.12</site-je .version>
Original file line number Diff line number Diff line change 3
3
xmlns =" https://logging.apache.org/xml/ns"
4
4
xsi : schemaLocation =" https://logging.apache.org/xml/ns https://logging.apache.org/xml/ns/log4j-changelog-0.xsd"
5
5
type =" updated" >
6
- <issue id =" 3515 " link =" https://github.com/apache/logging-log4j2/pull/3515 " />
7
- <description format =" asciidoc" >Update `com.fasterxml.jackson:jackson-bom` to version `2.18.3 `</description >
6
+ <issue id =" 3708 " link =" https://github.com/apache/logging-log4j2/pull/3708 " />
7
+ <description format =" asciidoc" >Update `com.fasterxml.jackson:jackson-bom` to version `2.19.0 `</description >
8
8
</entry >
You can’t perform that action at this time.
0 commit comments