Skip to content

Commit 73a1c6f

Browse files
committed
fixup! Add @afterclass & @after to tests missing this
1 parent 2840bca commit 73a1c6f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

OneSignalSDK/unittest/src/test/java/com/test/onesignal/HMSDataMessageReceivedIntegrationTestsRunner.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
import org.checkerframework.checker.nullness.qual.NonNull;
1515
import org.json.JSONException;
1616
import org.json.JSONObject;
17+
import org.junit.After;
18+
import org.junit.AfterClass;
1719
import org.junit.Before;
1820
import org.junit.BeforeClass;
1921
import org.junit.Test;
@@ -65,6 +67,16 @@ public void beforeEachTest() throws Exception {
6567
blankActivity = blankActivityController.get();
6668
}
6769

70+
@AfterClass
71+
public static void afterEverything() throws Exception {
72+
TestHelpers.beforeTestInitAndCleanup();
73+
}
74+
75+
@After
76+
public void afterEachTest() throws Exception {
77+
TestHelpers.afterTestCleanup();
78+
}
79+
6880
private static @NonNull String helperBasicOSPayload() throws JSONException {
6981
return new JSONObject() {{
7082
put(PAYLOAD_OS_ROOT_CUSTOM, new JSONObject() {{

0 commit comments

Comments
 (0)