File tree Expand file tree Collapse file tree
app/src/androidTest/java/org/schabi/newpipe/error Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import androidx.test.filters.LargeTest
99import java.io.IOException
1010import java.net.SocketTimeoutException
1111import org.junit.Assert.assertEquals
12- import org.junit.Assert.assertFalse
1312import org.junit.Assert.assertNull
1413import org.junit.Assert.assertTrue
1514import org.junit.Test
@@ -25,7 +24,7 @@ import org.schabi.newpipe.extractor.exceptions.ReCaptchaException
2524@RunWith(AndroidJUnit4 ::class )
2625@LargeTest
2726class ErrorInfoTest {
28- private val context: Context by lazy { ApplicationProvider .getApplicationContext< Context > () }
27+ private val context: Context by lazy { ApplicationProvider .getApplicationContext() }
2928
3029 /* *
3130 * @param errorInfo the error info to access
@@ -122,7 +121,7 @@ class ErrorInfoTest {
122121 )
123122 assertEquals(context.getString(R .string.recaptcha_request_toast), errorInfo.getMessage(context))
124123 assertEquals(url, errorInfo.recaptchaUrl)
125- assertFalse (errorInfo.isReportable)
124+ assertTrue (errorInfo.isReportable)
126125 assertTrue(errorInfo.isRetryable)
127126 }
128127}
You can’t perform that action at this time.
0 commit comments