File tree Expand file tree Collapse file tree
src/test/java/com/test/onesignal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,5 +43,5 @@ dependencies {
4343 implementation ' com.google.android.gms:play-services-location:11.8.0'
4444
4545 testImplementation ' junit:junit:4.12'
46- testImplementation ' org.robolectric:robolectric:3.7.1 '
46+ testImplementation ' org.robolectric:robolectric:3.8 '
4747}
Original file line number Diff line number Diff line change 1414
1515import java .util .Set ;
1616
17- import com .onesignal .ShadowOneSignalRestClient ;
18-
1917class TestHelpers {
2018
2119 static Exception lastException ;
2220
2321 static void betweenTestsCleanup () {
22+ try {
23+ stopAllOSThreads ();
24+ } catch (Exception e ) {
25+ e .printStackTrace ();
26+ }
27+
2428 StaticResetHelper .restSetStaticFields ();
2529
2630 ShadowOneSignalRestClient .resetStatics ();
@@ -46,12 +50,6 @@ static void betweenTestsCleanup() {
4650 writableDb.delete(OneSignalPackagePrivateHelper.NotificationTable.TABLE_NAME, null, null);
4751 writableDb.close();
4852 */
49-
50- try {
51- stopAllOSThreads ();
52- } catch (Exception e ) {
53- e .printStackTrace ();
54- }
5553 lastException = null ;
5654 }
5755
You can’t perform that action at this time.
0 commit comments