"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "log4j-api/src/test/java/org/apache/logging/log4j/ThreadContextInheritanceTest.java" between
apache-log4j-2.11.1-src.tar.gz and apache-log4j-2.11.2-src.tar.gz

About: Apache Log4j 2 is a logging library for Java. Source distribution (Java).

ThreadContextInheritanceTest.java  (apache-log4j-2.11.1-src):ThreadContextInheritanceTest.java  (apache-log4j-2.11.2-src)
skipping to change at line 24 skipping to change at line 24
* See the license for the specific language governing permissions and * See the license for the specific language governing permissions and
* limitations under the license. * limitations under the license.
*/ */
package org.apache.logging.log4j; package org.apache.logging.log4j;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull; import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
import org.apache.logging.log4j.junit.ThreadContextRule;
import org.apache.logging.log4j.spi.DefaultThreadContextMap; import org.apache.logging.log4j.spi.DefaultThreadContextMap;
import org.junit.AfterClass; import org.junit.AfterClass;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
/** /**
* Tests {@link ThreadContext}. * Tests {@link ThreadContext}.
*/ */
public class ThreadContextInheritanceTest { public class ThreadContextInheritanceTest {
@Rule
public ThreadContextRule threadContextRule = new ThreadContextRule();
@BeforeClass @BeforeClass
public static void setupClass() { public static void setupClass() {
System.setProperty(DefaultThreadContextMap.INHERITABLE_MAP, "true"); System.setProperty(DefaultThreadContextMap.INHERITABLE_MAP, "true");
ThreadContext.init(); ThreadContext.init();
} }
@AfterClass @AfterClass
public static void tearDownClass() { public static void tearDownClass() {
System.clearProperty(DefaultThreadContextMap.INHERITABLE_MAP); System.clearProperty(DefaultThreadContextMap.INHERITABLE_MAP);
ThreadContext.init(); ThreadContext.init();
 End of changes. 3 change blocks. 
0 lines changed or deleted 5 lines changed or added

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