Refactor static methods to package private

Stops Android Studio from "recognizing" them as tests
This commit is contained in:
Zhiheng Xu 2021-05-22 11:49:05 -04:00
parent 92a67bb8cb
commit 08949ee347
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ import static org.mockito.Mockito.spy;
@SuppressWarnings("checkstyle:HideUtilityClassConstructor")
@RunWith(Enclosed.class)
public class PlayQueueTest {
public static PlayQueue mockPlayQueue(final int index, final List<PlayQueueItem> streams) {
static PlayQueue mockPlayQueue(final int index, final List<PlayQueueItem> streams) {
// I tried using Mockito, but it didn't work for some reason
return new PlayQueue(index, streams) {
@Override
@ -38,7 +38,7 @@ public class PlayQueueTest {
};
}
public static PlayQueueItem makeItemWithUrl(final String url) {
static PlayQueueItem makeItemWithUrl(final String url) {
final StreamInfoItem infoItem = new StreamInfoItem(
0, url, "", StreamType.VIDEO_STREAM
);