diff --git a/core/pom.xml b/core/pom.xml index 23ba402113..2acdf69c36 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -56,7 +56,7 @@ ch.qos.reload4j reload4j - 1.2.19 + 1.2.18.3 org.json diff --git a/repository/src/test/java/org/alfresco/AllUnitTestsSuite.java b/repository/src/test/java/org/alfresco/AllUnitTestsSuite.java index eb3be2af41..a956aeb879 100644 --- a/repository/src/test/java/org/alfresco/AllUnitTestsSuite.java +++ b/repository/src/test/java/org/alfresco/AllUnitTestsSuite.java @@ -63,6 +63,7 @@ import org.junit.runners.Suite; org.alfresco.repo.jscript.ScriptSearchTest.class, org.alfresco.repo.lock.LockUtilsTest.class, org.alfresco.repo.lock.mem.LockStoreImplTest.class, + org.alfresco.repo.management.CheckRequiredClassesForLoggingConsoleUnitTest.class, org.alfresco.repo.management.subsystems.CryptodocSwitchableApplicationContextFactoryTest.class, org.alfresco.repo.module.ModuleDetailsImplTest.class, org.alfresco.repo.module.ModuleVersionNumberTest.class, diff --git a/repository/src/test/java/org/alfresco/repo/management/CheckRequiredClassesForLoggingConsoleUnitTest.java b/repository/src/test/java/org/alfresco/repo/management/CheckRequiredClassesForLoggingConsoleUnitTest.java new file mode 100644 index 0000000000..bf0d4733fa --- /dev/null +++ b/repository/src/test/java/org/alfresco/repo/management/CheckRequiredClassesForLoggingConsoleUnitTest.java @@ -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 . + * #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); + } +}