Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.cache;
|
---|
3 |
|
---|
4 | import java.util.logging.Logger;
|
---|
5 |
|
---|
6 | import org.junit.BeforeClass;
|
---|
7 | import org.junit.Test;
|
---|
8 | import org.openstreetmap.josm.JOSMFixture;
|
---|
9 |
|
---|
10 | public 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.