"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "log4j-core/src/test/java/org/apache/logging/log4j/core/appender/db/jdbc/JdbcAppenderMapMessageDataSourceTest.java" between
apache-log4j-2.12.3-src.tar.gz and apache-log4j-2.12.4-src.tar.gz

About: Apache Log4j 2 is a logging library for Java. Source distribution (Java).
Caution: Release 2.12.3 is the last 2.x release to support Java 7 (Java 8 users should use 2.17.0 or greater) and have fixed a critical remote code execution vulnerability (CVE-2021-44228).

JdbcAppenderMapMessageDataSourceTest.java  (apache-log4j-2.12.3-src):JdbcAppenderMapMessageDataSourceTest.java  (apache-log4j-2.12.4-src)
skipping to change at line 51 skipping to change at line 51
import org.junit.Assert; import org.junit.Assert;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import org.junit.rules.RuleChain; import org.junit.rules.RuleChain;
import org.mockito.invocation.InvocationOnMock; import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer; import org.mockito.stubbing.Answer;
/** /**
* Unit tests {@link MapMessage}s for JdbcAppender using a {@link DataSource} co nfiguration. * Unit tests {@link MapMessage}s for JdbcAppender using a {@link DataSource} co nfiguration.
*/ */
public class JdbcAppenderMapMessageDataSourceTest { public class JdbcAppenderMapMessageDataSourceTest extends AbstractJdbcDataSource Test {
@Rule @Rule
public final RuleChain rules; public final RuleChain rules;
private final JdbcRule jdbcRule; private final JdbcRule jdbcRule;
public JdbcAppenderMapMessageDataSourceTest() { public JdbcAppenderMapMessageDataSourceTest() {
this(new JdbcRule(JdbcH2TestHelper.TEST_CONFIGURATION_SOURCE_MEM, this(new JdbcRule(JdbcH2TestHelper.TEST_CONFIGURATION_SOURCE_MEM,
// @formatter:off // @formatter:off
"CREATE TABLE dsLogEntry (Id INTEGER IDENTITY, ColumnA VARCHAR(2 55), ColumnB VARCHAR(255))", "CREATE TABLE dsLogEntry (Id INTEGER IDENTITY, ColumnA VARCHAR(2 55), ColumnB VARCHAR(255))",
"DROP TABLE dsLogEntry")); "DROP TABLE dsLogEntry"));
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)