@@ -20,6 +20,7 @@ class DataSentryTracingIntegrationTests: XCTestCase {
2020
2121 init ( ) { }
2222
23+ @available ( * , deprecated, message: " This is deprecated because SentryOptions integrations is deprecated " )
2324 func getSut( testName: String , isSDKEnabled: Bool = true , isEnabled: Bool = true ) throws -> Data {
2425 let fileManager = FileManager . default
2526 let tempDirUrl = URL ( fileURLWithPath: NSTemporaryDirectory ( ) )
@@ -130,6 +131,7 @@ class DataSentryTracingIntegrationTests: XCTestCase {
130131
131132 // MARK: - Data.init(contentsOfWithSentryTracing:)
132133
134+ @available ( * , deprecated, message: " This is deprecated because SentryOptions integrations is deprecated " )
133135 func testInitContentsOfWithSentryTracing_shouldTraceManually( ) throws {
134136 // -- Arrange --
135137 let expectedData = try fixture. getSut ( testName: self . name)
@@ -159,6 +161,7 @@ class DataSentryTracingIntegrationTests: XCTestCase {
159161 XCTAssertGreaterThan ( endTimestamp. timeIntervalSince1970, startTimestamp. timeIntervalSince1970)
160162 }
161163
164+ @available ( * , deprecated, message: " This is deprecated because SentryOptions integrations is deprecated " )
162165 func testInitContentsOfWithSentryTracingWithOptions_shouldPassOptionsToSystemImplementation( ) throws {
163166 // -- Arrange --
164167 let expectedData = try fixture. getSut ( testName: self . name)
@@ -186,6 +189,7 @@ class DataSentryTracingIntegrationTests: XCTestCase {
186189 XCTAssertEqual ( mappedSentryData, expectedData)
187190 }
188191
192+ @available ( * , deprecated, message: " This is deprecated because SentryOptions integrations is deprecated " )
189193 func testInitContentsOfWithSentryTracing_throwsError_shouldTraceManuallyWithErrorRethrow( ) throws {
190194 // -- Arrange --
191195 let _ = try fixture. getSut ( testName: self . name)
@@ -212,6 +216,7 @@ class DataSentryTracingIntegrationTests: XCTestCase {
212216 XCTAssertGreaterThan ( endTimestamp. timeIntervalSince1970, startTimestamp. timeIntervalSince1970)
213217 }
214218
219+ @available ( * , deprecated, message: " This is deprecated because SentryOptions integrations is deprecated " )
215220 func testInitContentsOfWithSentryTracing_nonFileUrl_shouldNotTraceManually( ) throws {
216221 // -- Arrange --
217222 let _ = try fixture. getSut ( testName: self . name)
@@ -225,6 +230,7 @@ class DataSentryTracingIntegrationTests: XCTestCase {
225230 XCTAssertEqual ( parentTransaction. children. count, 0 )
226231 }
227232
233+ @available ( * , deprecated, message: " This is deprecated because SentryOptions integrations is deprecated " )
228234 func testInitContentsOfWithSentryTracing_trackerIsNotEnabled_shouldNotTraceManually( ) throws {
229235 // -- Arrange --
230236 let _ = try fixture. getSut ( testName: self . name, isEnabled: false )
@@ -238,6 +244,7 @@ class DataSentryTracingIntegrationTests: XCTestCase {
238244 XCTAssertEqual ( parentTransaction. children. count, 0 )
239245 }
240246
247+ @available ( * , deprecated, message: " This is deprecated because SentryOptions integrations is deprecated " )
241248 func testInitContentsOfWithSentryTracing_fileIsIgnored_shouldNotTraceManually( ) throws {
242249 // -- Arrange --
243250 let _ = try fixture. getSut ( testName: self . name)
@@ -251,6 +258,7 @@ class DataSentryTracingIntegrationTests: XCTestCase {
251258 XCTAssertEqual ( parentTransaction. children. count, 0 )
252259 }
253260
261+ @available ( * , deprecated, message: " This is deprecated because SentryOptions integrations is deprecated " )
254262 func testInitContentsOfWithSentryTracing_SDKIsNotStarted_shouldReadData( ) throws {
255263 // -- Arrange --
256264 let _ = try fixture. getSut ( testName: self . name, isSDKEnabled: false )
@@ -263,6 +271,7 @@ class DataSentryTracingIntegrationTests: XCTestCase {
263271 XCTAssertEqual ( data, fixture. data)
264272 }
265273
274+ @available ( * , deprecated, message: " This is deprecated because SentryOptions integrations is deprecated " )
266275 func testInitContentsOfWithSentryTracing_SDKIsClosed_shouldReadData( ) throws {
267276 // -- Arrange --
268277 let _ = try fixture. getSut ( testName: self . name)
@@ -278,6 +287,7 @@ class DataSentryTracingIntegrationTests: XCTestCase {
278287
279288 // MARK: - Data.writeWithSentryTracing(to:)
280289
290+ @available ( * , deprecated, message: " This is deprecated because SentryOptions integrations is deprecated " )
281291 func testWriteWithSentryTracing_shouldTraceManuallyWithErrorRethrow( ) throws {
282292 // -- Arrange --
283293 let sut : Data = try fixture. getSut ( testName: self . name)
@@ -313,6 +323,7 @@ class DataSentryTracingIntegrationTests: XCTestCase {
313323 XCTAssertGreaterThan ( endTimestamp. timeIntervalSince1970, startTimestamp. timeIntervalSince1970)
314324 }
315325
326+ @available ( * , deprecated, message: " This is deprecated because SentryOptions integrations is deprecated " )
316327 func testWriteWithSentryTracingWithOptions_shouldPassOptionsToSystemImplementation( ) throws {
317328 // -- Arrange --
318329 let sut : Data = try fixture. getSut ( testName: self . name)
@@ -344,6 +355,7 @@ class DataSentryTracingIntegrationTests: XCTestCase {
344355 XCTAssertEqual ( writtenData, sut)
345356 }
346357
358+ @available ( * , deprecated, message: " This is deprecated because SentryOptions integrations is deprecated " )
347359 func testWriteWithSentryTracing_throwsError_shouldTraceManuallyWithErrorRethrow( ) throws {
348360 // -- Arrange --
349361 let sut : Data = try fixture. getSut ( testName: self . name)
@@ -370,6 +382,7 @@ class DataSentryTracingIntegrationTests: XCTestCase {
370382 XCTAssertGreaterThan ( endTimestamp. timeIntervalSince1970, startTimestamp. timeIntervalSince1970)
371383 }
372384
385+ @available ( * , deprecated, message: " This is deprecated because SentryOptions integrations is deprecated " )
373386 func testWriteWithSentryTracing_nonFileUrl_shouldNotTraceManually( ) throws {
374387 // -- Arrange --
375388 let sut : Data = try fixture. getSut ( testName: self . name)
@@ -382,6 +395,7 @@ class DataSentryTracingIntegrationTests: XCTestCase {
382395 XCTAssertEqual ( parentTransaction. children. count, 0 )
383396 }
384397
398+ @available ( * , deprecated, message: " This is deprecated because SentryOptions integrations is deprecated " )
385399 func testWriteWithSentryTracing_trackerIsNotEnabled_shouldNotTraceManually( ) throws {
386400 // -- Arrange --
387401 let sut : Data = try fixture. getSut ( testName: self . name, isEnabled: false )
@@ -394,6 +408,7 @@ class DataSentryTracingIntegrationTests: XCTestCase {
394408 XCTAssertEqual ( parentTransaction. children. count, 0 )
395409 }
396410
411+ @available ( * , deprecated, message: " This is deprecated because SentryOptions integrations is deprecated " )
397412 func testWriteWithSentryTracing_fileIsIgnored_shouldNotTraceManually( ) throws {
398413 // -- Arrange --
399414 let sut : Data = try fixture. getSut ( testName: self . name)
@@ -413,6 +428,7 @@ class DataSentryTracingIntegrationTests: XCTestCase {
413428 XCTAssertEqual ( parentTransaction. children. count, 0 )
414429 }
415430
431+ @available ( * , deprecated, message: " This is deprecated because SentryOptions integrations is deprecated " )
416432 func testWriteWithSentryTracing_SDKIsNotStarted_shouldWriteFile( ) throws {
417433 // -- Arrange --
418434 let sut : Data = try fixture. getSut ( testName: self . name, isSDKEnabled: false )
@@ -431,6 +447,7 @@ class DataSentryTracingIntegrationTests: XCTestCase {
431447 XCTAssertEqual ( writtenData, fixture. data)
432448 }
433449
450+ @available ( * , deprecated, message: " This is deprecated because SentryOptions integrations is deprecated " )
434451 func testWriteWithSentryTracing_SDKIsClosed_shouldWriteFile( ) throws {
435452 // -- Arrange --
436453 let sut : Data = try fixture. getSut ( testName: self . name)
0 commit comments