86
86
import com .onesignal .ShadowOneSignalRestClient ;
87
87
import com .onesignal .ShadowPushRegistratorADM ;
88
88
import com .onesignal .ShadowPushRegistratorFCM ;
89
+ import com .onesignal .ShadowReceiveReceiptController ;
89
90
import com .onesignal .ShadowRoboNotificationManager ;
90
91
import com .onesignal .StaticResetHelper ;
91
92
import com .onesignal .SyncJobService ;
@@ -1109,7 +1110,7 @@ public void onBundleProcessed(OneSignalPackagePrivateHelper.ProcessedBundleResul
1109
1110
// Start Received Request tests (report_received)
1110
1111
1111
1112
@ Test
1112
- @ Config (shadows = { ShadowGenerateNotification .class })
1113
+ @ Config (shadows = { ShadowGenerateNotification .class , ShadowReceiveReceiptController . class })
1113
1114
public void testNotificationReceivedSendReceivedRequest_WhenAppInBackground () throws Exception {
1114
1115
// First init run for appId to be saved
1115
1116
// At least OneSignal was init once for user to be subscribed
@@ -1132,7 +1133,7 @@ public void testNotificationReceivedSendReceivedRequest_WhenAppInBackground() th
1132
1133
}
1133
1134
1134
1135
@ Test
1135
- @ Config (shadows = { ShadowGenerateNotification .class })
1136
+ @ Config (shadows = { ShadowGenerateNotification .class , ShadowReceiveReceiptController . class })
1136
1137
public void testNotificationReceivedSendReceivedRequest_WhenAppInForeground () throws Exception {
1137
1138
ShadowOneSignalRestClient .setRemoteParamsReceiveReceiptsEnable (true );
1138
1139
// First init run for appId to be saved
@@ -1152,7 +1153,7 @@ public void testNotificationReceivedSendReceivedRequest_WhenAppInForeground() th
1152
1153
}
1153
1154
1154
1155
@ Test
1155
- @ Config (shadows = { ShadowGenerateNotification .class })
1156
+ @ Config (shadows = { ShadowGenerateNotification .class , ShadowReceiveReceiptController . class })
1156
1157
public void testNotificationReceivedNoSendReceivedRequest_WhenDisabled () throws Exception {
1157
1158
ShadowOneSignalRestClient .setRemoteParamsReceiveReceiptsEnable (false );
1158
1159
// First init run for appId to be saved
@@ -1172,7 +1173,7 @@ public void testNotificationReceivedNoSendReceivedRequest_WhenDisabled() throws
1172
1173
}
1173
1174
1174
1175
@ Test
1175
- @ Config (shadows = { ShadowGenerateNotification .class })
1176
+ @ Config (shadows = { ShadowGenerateNotification .class , ShadowReceiveReceiptController . class })
1176
1177
public void testNotificationReceivedNoSendReceivedRequest_WhenNotificationNotDisplayed () throws Exception {
1177
1178
// 1. Setup correct notification extension service class
1178
1179
startRemoteNotificationReceivedHandlerService ("com.test.onesignal.MainOneSignalClassRunner$" +
@@ -1199,7 +1200,7 @@ public void testNotificationReceivedNoSendReceivedRequest_WhenNotificationNotDis
1199
1200
}
1200
1201
1201
1202
@ Test
1202
- @ Config (sdk = 26 , shadows = { ShadowGenerateNotification .class , ShadowOneSignalNotificationManager .class })
1203
+ @ Config (sdk = 26 , shadows = { ShadowGenerateNotification .class , ShadowOneSignalNotificationManager .class , ShadowReceiveReceiptController . class })
1203
1204
public void testNotificationReceivedNoSendReceivedRequest_WhenNotificationNotDisplayed_DisabledByChannel () throws Exception {
1204
1205
// 1. Setup correct notification extension service class
1205
1206
startRemoteNotificationReceivedHandlerService ("com.test.onesignal.MainOneSignalClassRunner$" +
0 commit comments