diff --git a/sdk/src/androidTest/java/com/bugsnag/android/ClientNotifyAsyncTest.java b/sdk/src/androidTest/java/com/bugsnag/android/ClientNotifyAsyncTest.java index b2986fe157..ad7b9483ff 100644 --- a/sdk/src/androidTest/java/com/bugsnag/android/ClientNotifyAsyncTest.java +++ b/sdk/src/androidTest/java/com/bugsnag/android/ClientNotifyAsyncTest.java @@ -1,5 +1,10 @@ package com.bugsnag.android; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertTrue; + import android.support.test.filters.SmallTest; import android.support.test.runner.AndroidJUnit4; @@ -11,11 +16,6 @@ import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertTrue; - @RunWith(AndroidJUnit4.class) @SmallTest public class ClientNotifyAsyncTest { @@ -99,11 +99,13 @@ static class NullCheckClient extends ClientNotifyTest.FakeClient { @Override public void postReport(String urlString, - Report report, Map headers) throws NetworkException, BadResponseException { + Report report, + Map headers) + throws NetworkException, BadResponseException { try { nullCheckLatch.await(20, TimeUnit.MILLISECONDS); - } catch (InterruptedException e) { - e.printStackTrace(); + } catch (InterruptedException exception) { + exception.printStackTrace(); } super.postReport(urlString, report, headers); } diff --git a/sdk/src/androidTest/java/com/bugsnag/android/ClientNotifyTest.java b/sdk/src/androidTest/java/com/bugsnag/android/ClientNotifyTest.java index 96e19f16e1..a100e6a669 100644 --- a/sdk/src/androidTest/java/com/bugsnag/android/ClientNotifyTest.java +++ b/sdk/src/androidTest/java/com/bugsnag/android/ClientNotifyTest.java @@ -1,9 +1,6 @@ package com.bugsnag.android; import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertTrue; import android.support.test.filters.SmallTest; import android.support.test.runner.AndroidJUnit4;