mirror of
https://github.com/TeamNewPipe/NewPipe/
synced 2025-01-05 21:47:50 +01:00
Refactor static methods to package private
Stops Android Studio from "recognizing" them as tests
This commit is contained in:
parent
92a67bb8cb
commit
08949ee347
@ -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
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user