File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
telemetry/src/test/groovy/datadog/telemetry/dependency Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,25 @@ class JarReaderSpecification extends DepSpecification {
68
68
result. manifest. getValue(" Automatic-Module-Name" ) == " io.opentracing.util"
69
69
}
70
70
71
+ void ' read nested jar with ending separator' () {
72
+ given :
73
+ String outerPath = getJar(" spring-boot-app.jar" ). getAbsolutePath()
74
+ String jarPath = " $outerPath !/BOOT-INF/lib/opentracing-util-0.33.0.jar!/"
75
+
76
+ when :
77
+ def result = JarReader . readNestedJarFile(jarPath)
78
+
79
+ then :
80
+ result. jarName == " opentracing-util-0.33.0.jar"
81
+ result. pomProperties. size() == 1
82
+ def properties = result. pomProperties[' META-INF/maven/io.opentracing/opentracing-util/pom.properties' ]
83
+ properties. groupId == " io.opentracing"
84
+ properties. artifactId == " opentracing-util"
85
+ properties. version == " 0.33.0"
86
+ result. manifest != null
87
+ result. manifest. getValue(" Automatic-Module-Name" ) == " io.opentracing.util"
88
+ }
89
+
71
90
void ' non-existent simple jar' () {
72
91
given :
73
92
String jarPath = " non-existent.jar"
You can’t perform that action at this time.
0 commit comments