Skip to content

Commit

Permalink
Bump org.apache.logging.log4j:log4j-bom from 2.22.1 to 2.23.0 (#4844)
Browse files Browse the repository at this point in the history
* Bump org.apache.logging.log4j:log4j-bom from 2.22.1 to 2.23.0

Bumps [org.apache.logging.log4j:log4j-bom](https://github.com/apache/logging-log4j2) from 2.22.1 to 2.23.0.
- [Release notes](https://github.com/apache/logging-log4j2/releases)
- [Changelog](https://github.com/apache/logging-log4j2/blob/2.x/RELEASE-NOTES.adoc)
- [Commits](apache/logging-log4j2@rel/2.22.1...rel/2.23.0)

---
updated-dependencies:
- dependency-name: org.apache.logging.log4j:log4j-bom
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix broken unit tests

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Valery Yatsynovich <valery_yatsynovich@epam.com>
  • Loading branch information
dependabot[bot] and valfirst authored Feb 22, 2024
1 parent 4cb6a3e commit 47bca34
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions vividus/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ dependencies {
implementation(group: 'org.slf4j', name: 'jul-to-slf4j') // JUL to SLF4J bridge
implementation(group: 'org.slf4j', name: 'log4j-over-slf4j') // Log4J 1.x and Reload4J to SLF4J bridge

implementation platform(group: 'org.apache.logging.log4j', name: 'log4j-bom', version: '2.22.1')
implementation platform(group: 'org.apache.logging.log4j', name: 'log4j-bom', version: '2.23.0')
implementation(group: 'org.apache.logging.log4j', name: 'log4j-api')
implementation(group: 'org.apache.logging.log4j', name: 'log4j-core')
implementation(group: 'org.apache.logging.log4j', name: 'log4j-slf4j2-impl')
annotationProcessor platform(group: 'org.apache.logging.log4j', name: 'log4j-bom', version: '2.22.1')
annotationProcessor platform(group: 'org.apache.logging.log4j', name: 'log4j-bom', version: '2.23.0')
annotationProcessor(group: 'org.apache.logging.log4j', name: 'log4j-core')

implementation(group: 'de.vandermeer', name: 'asciitable', version: '0.3.2')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2022 the original author or authors.
* Copyright 2019-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -17,7 +17,7 @@
package org.vividus.log;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.arrayContaining;
import static org.hamcrest.Matchers.containsString;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNull;
Expand All @@ -37,8 +37,8 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestMethodOrder;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junitpioneer.jupiter.StdErr;
import org.junitpioneer.jupiter.StdIo;
import org.junitpioneer.jupiter.StdOut;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import org.vividus.report.allure.AllureStoryReporter;
Expand All @@ -54,14 +54,13 @@ class AllureLogAppenderTests

@Test
@StdIo
// Need to be sure static variable org.apache.logging.log4j.status.StatusLogger.STATUS_LOGGER was not initialized
// with default value of System.err
// Need to be sure static initializations are performed with default value of System.out
// in org.apache.logging.log4j.status.StatusLogger
@Order(1)
void shouldNotCreateAppenderWithNullName(StdErr stdErr)
void shouldNotCreateAppenderWithNullName(StdOut stdOut)
{
var appender = AllureLogAppender.createAppender(null, filter, layout);
assertThat(stdErr.capturedLines(),
arrayContaining("ERROR StatusLogger No name provided for AllureLogAppender"));
assertThat(stdOut.capturedString(), containsString("ERROR No name provided for AllureLogAppender"));
assertNull(appender);
}

Expand Down

0 comments on commit 47bca34

Please # to comment.