Refactor static methods to package private
Stops Android Studio from "recognizing" them as tests
This commit is contained in:
parent
92a67bb8cb
commit
08949ee347
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ import static org.mockito.Mockito.spy;
|
||||||
@SuppressWarnings("checkstyle:HideUtilityClassConstructor")
|
@SuppressWarnings("checkstyle:HideUtilityClassConstructor")
|
||||||
@RunWith(Enclosed.class)
|
@RunWith(Enclosed.class)
|
||||||
public class PlayQueueTest {
|
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
|
// I tried using Mockito, but it didn't work for some reason
|
||||||
return new PlayQueue(index, streams) {
|
return new PlayQueue(index, streams) {
|
||||||
@Override
|
@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(
|
final StreamInfoItem infoItem = new StreamInfoItem(
|
||||||
0, url, "", StreamType.VIDEO_STREAM
|
0, url, "", StreamType.VIDEO_STREAM
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue