Skip to content

Commit

Permalink
Removes unecessary @throws annotation from tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanatkinson committed Oct 23, 2023
1 parent bc4f90d commit ca15000
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import com.google.firebase.sessions.testing.FakeFirebaseApp
import com.google.firebase.sessions.testing.FakeFirelogPublisher
import com.google.firebase.sessions.testing.FakeSessionDatastore
import java.time.Duration
import java.util.concurrent.TimeoutException
import kotlinx.coroutines.ExperimentalCoroutinesApi
import org.junit.After
import org.junit.Before
Expand Down Expand Up @@ -88,7 +87,6 @@ internal class SessionLifecycleServiceTest {
}

@Test
@Throws(TimeoutException::class)
fun binding_noCallbackOnInitialBindingWhenNoneStored() {
val client = TestCallbackHandler()

Expand All @@ -99,7 +97,6 @@ internal class SessionLifecycleServiceTest {
}

@Test
@Throws(TimeoutException::class)
fun binding_callbackOnInitialBindWhenSessionIdSet() {
val client = TestCallbackHandler()
firebaseApp.get(FakeSessionDatastore::class.java).updateSessionId("123")
Expand All @@ -116,7 +113,6 @@ internal class SessionLifecycleServiceTest {
}

@Test
@Throws(TimeoutException::class)
fun foregrounding_startsSessionOnFirstForegrounding() {
val client = TestCallbackHandler()
val messenger = bindToService(client)
Expand All @@ -134,7 +130,6 @@ internal class SessionLifecycleServiceTest {
}

@Test
@Throws(TimeoutException::class)
fun foregrounding_onlyOneSessionOnMultipleForegroundings() {
val client = TestCallbackHandler()
val messenger = bindToService(client)
Expand All @@ -149,7 +144,6 @@ internal class SessionLifecycleServiceTest {
}

@Test
@Throws(TimeoutException::class)
fun foregrounding_newSessionAfterLongDelay() {
val client = TestCallbackHandler()
val messenger = bindToService(client)
Expand All @@ -170,7 +164,6 @@ internal class SessionLifecycleServiceTest {
}

@Test
@Throws(TimeoutException::class)
fun sendsSessionsToMultipleClients() {
val client1 = TestCallbackHandler()
val client2 = TestCallbackHandler()
Expand All @@ -190,7 +183,6 @@ internal class SessionLifecycleServiceTest {
}

@Test
@Throws(TimeoutException::class)
fun onlyOneSessionForMultipleClientsForegrounding() {
val client1 = TestCallbackHandler()
val client2 = TestCallbackHandler()
Expand All @@ -214,7 +206,6 @@ internal class SessionLifecycleServiceTest {
}

@Test
@Throws(TimeoutException::class)
fun backgrounding_doesNotStartSession() {
val client = TestCallbackHandler()
val messenger = bindToService(client)
Expand Down

0 comments on commit ca15000

Please sign in to comment.