Skip to content

Commit 8d18064

Browse files
committed
Format code
1 parent f1ac36c commit 8d18064

File tree

1 file changed

+51
-44
lines changed

1 file changed

+51
-44
lines changed

sentry/src/test/java/io/sentry/internal/debugmeta/ResourcesDebugMetaLoaderTest.kt

Lines changed: 51 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ResourcesDebugMetaLoaderTest {
4141
return ResourcesDebugMetaLoader(logger, classLoader)
4242
}
4343
}
44-
44+
4545
private val fixture = Fixture()
4646

4747
@Test
@@ -145,70 +145,77 @@ class ResourcesDebugMetaLoaderTest {
145145
}
146146

147147
@Test
148-
fun `reads build-tool and build-version and adds them to packages`() {
149-
val sut = fixture.getSut(
150-
content = listOf(
151-
"""
148+
fun `reads build-tool and build-version and adds them to packages`() {
149+
val sut =
150+
fixture.getSut(
151+
content =
152+
listOf(
153+
"""
152154
#Generated by sentry-maven-plugin
153155
#Wed May 17 15:33:34 CEST 2023
154156
io.sentry.ProguardUuids=34077988-a0e5-4839-9618-7400e1616d1b
155157
io.sentry.bundle-ids=88ba82db-cd26-4c09-8b31-21461d286b68
156158
io.sentry.build-tool=maven
157159
io.sentry.build-tool-version=1.0
158-
""".trimIndent()
159-
)
160-
)
160+
"""
161+
.trimIndent()
162+
)
163+
)
161164

162-
val options = SentryOptions()
163-
assertNotNull(sut.loadDebugMeta()) {
164-
DebugMetaPropertiesApplier.apply(options, it)
165-
}
165+
val options = SentryOptions()
166+
assertNotNull(sut.loadDebugMeta()) { DebugMetaPropertiesApplier.apply(options, it) }
166167

167-
val expected = SentryPackage("maven", "1.0")
168-
assertContains(SentryIntegrationPackageStorage.getInstance().packages, expected)
169-
}
168+
val expected = SentryPackage("maven", "1.0")
169+
assertContains(SentryIntegrationPackageStorage.getInstance().packages, expected)
170+
}
170171

171-
@Test
172-
fun `reads build-tool and adds it to packages with unknown version if build-tool-version is absent`() {
173-
val sut = fixture.getSut(
174-
content = listOf(
175-
"""
172+
@Test
173+
fun `reads build-tool and adds it to packages with unknown version if build-tool-version is absent`() {
174+
val sut =
175+
fixture.getSut(
176+
content =
177+
listOf(
178+
"""
176179
#Generated by sentry-maven-plugin
177180
#Wed May 17 15:33:34 CEST 2023
178181
io.sentry.ProguardUuids=34077988-a0e5-4839-9618-7400e1616d1b
179182
io.sentry.bundle-ids=88ba82db-cd26-4c09-8b31-21461d286b68
180183
io.sentry.build-tool=maven
181-
""".trimIndent()
182-
)
183-
)
184+
"""
185+
.trimIndent()
186+
)
187+
)
184188

185-
val options = SentryOptions()
186-
assertNotNull(sut.loadDebugMeta()) {
187-
DebugMetaPropertiesApplier.apply(options, it)
188-
}
189+
val options = SentryOptions()
190+
assertNotNull(sut.loadDebugMeta()) { DebugMetaPropertiesApplier.apply(options, it) }
189191

190-
val expected = SentryPackage("maven", "unknown")
191-
assertContains(SentryIntegrationPackageStorage.getInstance().packages, expected)
192-
}
192+
val expected = SentryPackage("maven", "unknown")
193+
assertContains(SentryIntegrationPackageStorage.getInstance().packages, expected)
194+
}
193195

194-
@Test
195-
fun `does not add build-tool to packages if absent`() {
196-
val sut = fixture.getSut(
197-
content = listOf(
198-
"""
196+
@Test
197+
fun `does not add build-tool to packages if absent`() {
198+
val sut =
199+
fixture.getSut(
200+
content =
201+
listOf(
202+
"""
199203
#Generated manually
200204
#Wed May 17 15:33:34 CEST 2023
201205
io.sentry.ProguardUuids=34077988-a0e5-4839-9618-7400e1616d1b
202206
io.sentry.bundle-ids=88ba82db-cd26-4c09-8b31-21461d286b68
203-
""".trimIndent()
204-
)
205-
)
207+
"""
208+
.trimIndent()
209+
)
210+
)
206211

207-
val options = SentryOptions()
208-
assertNotNull(sut.loadDebugMeta()) {
209-
DebugMetaPropertiesApplier.apply(options, it)
210-
}
212+
val options = SentryOptions()
213+
assertNotNull(sut.loadDebugMeta()) { DebugMetaPropertiesApplier.apply(options, it) }
211214

212-
assertFalse { SentryIntegrationPackageStorage.getInstance().packages.any { it.name.equals("io.sentry.build-tool") } }
213-
}
215+
assertFalse {
216+
SentryIntegrationPackageStorage.getInstance().packages.any {
217+
it.name.equals("io.sentry.build-tool")
218+
}
219+
}
220+
}
214221
}

0 commit comments

Comments
 (0)