File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src/test/kotlin/com/github/jengelman/gradle/plugins/shadow/transformers Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ abstract class BaseTransformerTest<T : Transformer> {
66
66
* choice to test for improper case-less string comparisons.
67
67
*/
68
68
fun setupTurkishLocale () {
69
+ @Suppress(" DEPRECATION" )
69
70
Locale .setDefault(Locale (" tr" ))
70
71
}
71
72
}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import assertk.assertions.isTrue
6
6
import com.github.jengelman.gradle.plugins.shadow.relocation.SimpleRelocator
7
7
import com.github.jengelman.gradle.plugins.shadow.util.SimpleRelocator
8
8
import java.io.File
9
- import java.net.URL
9
+ import java.net.URI
10
10
import java.util.Collections
11
11
import org.apache.logging.log4j.core.config.plugins.processor.PluginCache
12
12
import org.apache.tools.zip.ZipOutputStream
@@ -39,8 +39,9 @@ class Log4j2PluginsCacheFileTransformerTest : BaseTransformerTest<Log4j2PluginsC
39
39
40
40
// Pull the data back out and make sure it was transformed
41
41
val cache = PluginCache ()
42
- val urlString = " jar:" + testableZipFile.toURI().toURL() + " !/" + PLUGIN_CACHE_FILE
43
- cache.loadCacheFiles(Collections .enumeration(listOf (URL (urlString))))
42
+ val url = URI (" jar:" + testableZipFile.toURI().toURL() + " !/" + PLUGIN_CACHE_FILE ).toURL()
43
+ val resources = Collections .enumeration(listOf (url))
44
+ cache.loadCacheFiles(resources)
44
45
45
46
assertThat(cache.getCategory(" lookup" )[" date" ]?.className)
46
47
.isEqualTo(" new.location.org.apache.logging.log4j.core.lookup.DateLookup" )
You can’t perform that action at this time.
0 commit comments