-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix/issue 1/no items exception (#102)
Issue-1 - made fix and improved automation
- Loading branch information
Showing
26 changed files
with
357 additions
and
750 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...ithub/goldy1992/mp3player/service/library/content/retriever/FoldersRetrieverTestImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.github.goldy1992.mp3player.service.library.content.retriever; | ||
|
||
import android.content.ContentResolver; | ||
import android.database.Cursor; | ||
import android.os.Handler; | ||
import android.provider.MediaStore; | ||
|
||
import com.github.goldy1992.mp3player.service.library.content.parser.ResultsParser; | ||
import com.github.goldy1992.mp3player.service.library.search.FolderDao; | ||
|
||
import static com.github.goldy1992.mp3player.TestConstants.TEST_DATA_DIR; | ||
|
||
public class FoldersRetrieverTestImpl extends FoldersRetriever { | ||
public FoldersRetrieverTestImpl(ContentResolver contentResolver, ResultsParser resultsParser, FolderDao folderDao, Handler handler) { | ||
super(contentResolver, resultsParser, folderDao, handler); | ||
} | ||
|
||
private final String WHERE_CLAUSE = MediaStore.Audio.Media.DATA + " LIKE ?"; | ||
|
||
|
||
private final String[] WHERE_ARGS = {"%" + TEST_DATA_DIR + "%"}; | ||
|
||
@Override | ||
Cursor performGetChildrenQuery(String id) { | ||
return contentResolver.query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, getProjection(), | ||
WHERE_CLAUSE, WHERE_ARGS, null); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.