You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: android-core/src/androidTest/kotlin/com.mparticle/PushRegistrationTest.kt
+5-33Lines changed: 5 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -65,22 +65,10 @@ class PushRegistrationTest : BaseCleanStartedEachTest() {
65
65
val fetchedSenderId = fetchedPushValue.senderId
66
66
val fetchedInstanceId = fetchedPushValue.instanceId
67
67
if (pushRegistration.senderId != fetchedSenderId) {
68
-
Assert.fail(
69
-
"Mismatch! When push value of \""+ pushRegistration.senderId +"\" is set with: "+ setPush.name
70
-
". A different value \""
71
-
fetchedSenderId
72
-
"\" is returned with:"
73
-
getPush.name,
74
-
)
68
+
Assert.fail("Mismatch! When push value of \""+ pushRegistration.senderId +"\" is set with: "+ setPush.name +". A different value \""+ fetchedSenderId +"\" is returned with:"+ getPush.name)
75
69
}
76
70
if (pushRegistration.instanceId != fetchedInstanceId) {
77
-
Assert.fail(
78
-
"Mismatch! When push value of \""+ pushRegistration.instanceId +"\" is set with: "+ setPush.name
79
-
". A different value \""
80
-
fetchedInstanceId
81
-
"\" is returned with:"
82
-
getPush.name,
83
-
)
71
+
Assert.fail("Mismatch! When push value of \""+ pushRegistration.instanceId +"\" is set with: "+ setPush.name +". A different value \""+ fetchedInstanceId +"\" is returned with:"+ getPush.name)
84
72
}
85
73
}
86
74
}
@@ -100,13 +88,7 @@ class PushRegistrationTest : BaseCleanStartedEachTest() {
100
88
for (getPush in getPushes) {
101
89
val fetchedPushRegistration = getPush.pushRegistration
102
90
if (fetchedPushRegistration.instanceId !=null&& fetchedPushRegistration.senderId !=null) {
103
-
Assert.fail(
104
-
"Mismatch! When push value of \""+ pushRegistration +"\" is set with: "+ setPush.name
105
-
", and cleared with: "
106
-
clearPush.name
107
-
", the value is not null when fetched with:"
108
-
getPush.name,
109
-
)
91
+
Assert.fail("Mismatch! When push value of \""+ pushRegistration +"\" is set with: "+ setPush.name +", and cleared with: "+ clearPush.name +", the value is not null when fetched with:"+ getPush.name)
110
92
}
111
93
}
112
94
}
@@ -124,24 +106,14 @@ class PushRegistrationTest : BaseCleanStartedEachTest() {
124
106
setPush.setPushRegistration(pushRegistration)
125
107
for (pushEnabled in pushEnableds) {
126
108
if (!pushEnabled.isPushEnabled) {
127
-
Assert.fail(
128
-
"Mismatch! When push value of \""+ pushRegistration +"\" is set with: "+ setPush.name
129
-
", push IS NOT enabled with:"
130
-
pushEnabled.name,
131
-
)
109
+
Assert.fail("Mismatch! When push value of \""+ pushRegistration +"\" is set with: "+ setPush.name +", push IS NOT enabled with:"+ pushEnabled.name)
132
110
}
133
111
}
134
112
for (clearPush in clearPushes) {
135
113
clearPush.clearPush()
136
114
for (pushEnabled in pushEnableds) {
137
115
if (pushEnabled.isPushEnabled) {
138
-
Assert.fail(
139
-
"Mismatch! When push value of \""+ pushRegistration +"\" is set with: "+ setPush.name
140
-
", and cleared with: "
141
-
clearPush.name
142
-
", push IS enabled with:"
143
-
pushEnabled.name,
144
-
)
116
+
Assert.fail("Mismatch! When push value of \""+ pushRegistration +"\" is set with: "+ setPush.name +", and cleared with: "+ clearPush.name +", push IS enabled with:"+ pushEnabled.name)
0 commit comments