@@ -1618,8 +1618,8 @@ class SentryClientTest {
16181618 fun `can add to attachments in beforeSend` () {
16191619 val sut = fixture.getSut { options ->
16201620 options.setBeforeSend { event, hints ->
1621- assertEquals(listOf (fixture.attachment, fixture.attachment2), hints.attachments.all )
1622- hints.attachments.add (fixture.attachment3)
1621+ assertEquals(listOf (fixture.attachment, fixture.attachment2), hints.attachments)
1622+ hints.addAttachment (fixture.attachment3)
16231623 event
16241624 }
16251625 }
@@ -1635,7 +1635,7 @@ class SentryClientTest {
16351635 fun `can replace attachments in beforeSend` () {
16361636 val sut = fixture.getSut { options ->
16371637 options.setBeforeSend { event, hints ->
1638- hints.attachments.replaceAll (listOf (fixture.attachment))
1638+ hints.replaceAttachments (listOf (fixture.attachment))
16391639 event
16401640 }
16411641 }
@@ -1652,8 +1652,8 @@ class SentryClientTest {
16521652 val sut = fixture.getSut { options ->
16531653 options.addEventProcessor(object : EventProcessor {
16541654 override fun process (event : SentryEvent , hints : Hints ): SentryEvent ? {
1655- assertEquals(listOf (fixture.attachment, fixture.attachment2), hints.attachments.all )
1656- hints.attachments.add (fixture.attachment3)
1655+ assertEquals(listOf (fixture.attachment, fixture.attachment2), hints.attachments)
1656+ hints.addAttachment (fixture.attachment3)
16571657 return event
16581658 }
16591659
@@ -1678,7 +1678,7 @@ class SentryClientTest {
16781678 val sut = fixture.getSut { options ->
16791679 options.addEventProcessor(object : EventProcessor {
16801680 override fun process (event : SentryEvent , hints : Hints ): SentryEvent ? {
1681- hints.attachments.replaceAll (listOf (fixture.attachment))
1681+ hints.replaceAttachments (listOf (fixture.attachment))
16821682 return event
16831683 }
16841684
@@ -1740,8 +1740,8 @@ class SentryClientTest {
17401740 transaction : SentryTransaction ,
17411741 hints : Hints
17421742 ): SentryTransaction ? {
1743- assertEquals(listOf (fixture.attachment, fixture.attachment2), hints.attachments.all )
1744- hints.attachments.add (fixture.attachment3)
1743+ assertEquals(listOf (fixture.attachment, fixture.attachment2), hints.attachments)
1744+ hints.addAttachment (fixture.attachment3)
17451745 return transaction
17461746 }
17471747 })
@@ -1771,7 +1771,7 @@ class SentryClientTest {
17711771 transaction : SentryTransaction ,
17721772 hints : Hints
17731773 ): SentryTransaction ? {
1774- hints.attachments.replaceAll (listOf (fixture.attachment))
1774+ hints.replaceAttachments (listOf (fixture.attachment))
17751775 return transaction
17761776 }
17771777 })
@@ -1809,7 +1809,7 @@ class SentryClientTest {
18091809 fun `adding attachments in beforeBreadcrumb ignores them` () {
18101810 val sut = fixture.getSut { options ->
18111811 options.setBeforeBreadcrumb { breadcrumb, hints ->
1812- hints.attachments.add (fixture.attachment)
1812+ hints.addAttachment (fixture.attachment)
18131813 breadcrumb
18141814 }
18151815 }
0 commit comments