mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-11-04 01:03:00 +00:00 
			
		
		
		
	Refactor static methods to package private
Stops Android Studio from "recognizing" them as tests
This commit is contained in:
		@@ -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
 | 
			
		||||
        );
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user