source: josm/trunk/test/unit/org/openstreetmap/josm/data/cache/JCSCacheManagerTest.java@ 8991

Last change on this file since 8991 was 8991, checked in by simon04, 8 years ago

fix #12054 - IllegalArgumentException in JCS log handler

File size: 659 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.cache;
3
4import java.util.logging.Logger;
5
6import org.junit.BeforeClass;
7import org.junit.Test;
8import org.openstreetmap.josm.JOSMFixture;
9
10public class JCSCacheManagerTest {
11
12 /**
13 * Setup test.
14 */
15 @BeforeClass
16 public static void setUp() {
17 JOSMFixture.createUnitTestFixture().init();
18 }
19
20 @Test
21 public void testLoggingAdaptor12054() throws Exception {
22 JCSCacheManager.getCache("foobar", 1, 0, "foobar"); // cause logging adaptor to be initialized
23 Logger.getLogger("org.apache.commons.jcs").warning("{switch:0}");
24 }
25}
Note: See TracBrowser for help on using the repository browser.