ATS-983 Downgrade reload4j (#983)

* ATS-983 Downgrade reload4j and provide a test to make sure we still have classes needed by the current implementation of the logging console
This commit is contained in:
Piotr Żurek
2022-03-01 08:34:26 +01:00
committed by GitHub
parent 5c05001256
commit bb1f5d18b6
3 changed files with 44 additions and 1 deletions

View File

@@ -56,7 +56,7 @@
<dependency> <dependency>
<groupId>ch.qos.reload4j</groupId> <groupId>ch.qos.reload4j</groupId>
<artifactId>reload4j</artifactId> <artifactId>reload4j</artifactId>
<version>1.2.19</version> <version>1.2.18.3</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.json</groupId> <groupId>org.json</groupId>

View File

@@ -63,6 +63,7 @@ import org.junit.runners.Suite;
org.alfresco.repo.jscript.ScriptSearchTest.class, org.alfresco.repo.jscript.ScriptSearchTest.class,
org.alfresco.repo.lock.LockUtilsTest.class, org.alfresco.repo.lock.LockUtilsTest.class,
org.alfresco.repo.lock.mem.LockStoreImplTest.class, org.alfresco.repo.lock.mem.LockStoreImplTest.class,
org.alfresco.repo.management.CheckRequiredClassesForLoggingConsoleUnitTest.class,
org.alfresco.repo.management.subsystems.CryptodocSwitchableApplicationContextFactoryTest.class, org.alfresco.repo.management.subsystems.CryptodocSwitchableApplicationContextFactoryTest.class,
org.alfresco.repo.module.ModuleDetailsImplTest.class, org.alfresco.repo.module.ModuleDetailsImplTest.class,
org.alfresco.repo.module.ModuleVersionNumberTest.class, org.alfresco.repo.module.ModuleVersionNumberTest.class,

View File

@@ -0,0 +1,42 @@
/*
* #%L
* Alfresco Repository
* %%
* Copyright (C) 2005 - 2021 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the software is
* provided under the following open source license terms:
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
package org.alfresco.repo.management;
import junit.framework.TestCase;
import org.junit.Test;
public class CheckRequiredClassesForLoggingConsoleUnitTest extends TestCase
{
private static final String CLASS_NAME = "org.apache.log4j.jmx.HierarchyDynamicMBean";
@Test
public void testRequiredClassIsOnAClasspath() throws ClassNotFoundException
{
final Class<?> clazz = Class.forName(CLASS_NAME);
assertNotNull(clazz);
}
}