Merge "[Audiosharing] Test getInstance for states" into main
This commit is contained in:
@@ -58,6 +58,7 @@ public class AddSourceBadCodeStateTest {
|
||||
|
||||
@Test
|
||||
public void testGetInstance() {
|
||||
mInstance = AddSourceBadCodeState.getInstance();
|
||||
assertThat(mInstance).isNotNull();
|
||||
assertThat(mInstance).isInstanceOf(SyncedState.class);
|
||||
}
|
||||
|
@@ -58,6 +58,7 @@ public class AddSourceFailedStateTest {
|
||||
|
||||
@Test
|
||||
public void testGetInstance() {
|
||||
mInstance = AddSourceFailedState.getInstance();
|
||||
assertThat(mInstance).isNotNull();
|
||||
assertThat(mInstance).isInstanceOf(SyncedState.class);
|
||||
}
|
||||
|
@@ -80,6 +80,7 @@ public class AddSourceWaitForResponseStateTest {
|
||||
|
||||
@Test
|
||||
public void testGetInstance() {
|
||||
mInstance = AddSourceWaitForResponseState.getInstance();
|
||||
assertThat(mInstance).isNotNull();
|
||||
assertThat(mInstance).isInstanceOf(AudioStreamStateHandler.class);
|
||||
}
|
||||
|
@@ -85,6 +85,7 @@ public class SourceAddedStateTest {
|
||||
|
||||
@Test
|
||||
public void testGetInstance() {
|
||||
mInstance = SourceAddedState.getInstance();
|
||||
assertThat(mInstance).isNotNull();
|
||||
assertThat(mInstance).isInstanceOf(SourceAddedState.class);
|
||||
}
|
||||
|
@@ -76,6 +76,7 @@ public class WaitForSyncStateTest {
|
||||
|
||||
@Test
|
||||
public void testGetInstance() {
|
||||
mInstance = WaitForSyncState.getInstance();
|
||||
assertThat(mInstance).isNotNull();
|
||||
assertThat(mInstance).isInstanceOf(AudioStreamStateHandler.class);
|
||||
}
|
||||
|
Reference in New Issue
Block a user