Skip to content

Commit 08949ee

Browse files
committed
Refactor static methods to package private
Stops Android Studio from "recognizing" them as tests
1 parent 92a67bb commit 08949ee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/test/java/org/schabi/newpipe/player/playqueue/PlayQueueTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
@SuppressWarnings("checkstyle:HideUtilityClassConstructor")
2424
@RunWith(Enclosed.class)
2525
public class PlayQueueTest {
26-
public static PlayQueue mockPlayQueue(final int index, final List<PlayQueueItem> streams) {
26+
static PlayQueue mockPlayQueue(final int index, final List<PlayQueueItem> streams) {
2727
// I tried using Mockito, but it didn't work for some reason
2828
return new PlayQueue(index, streams) {
2929
@Override
@@ -38,7 +38,7 @@ public void fetch() {
3838
};
3939
}
4040

41-
public static PlayQueueItem makeItemWithUrl(final String url) {
41+
static PlayQueueItem makeItemWithUrl(final String url) {
4242
final StreamInfoItem infoItem = new StreamInfoItem(
4343
0, url, "", StreamType.VIDEO_STREAM
4444
);

0 commit comments

Comments
 (0)