Add and modify comments
This commit is contained in:
+30
-27
@@ -108,6 +108,11 @@ public class SearchServiceSpecialGenreTestCase {
|
|||||||
return musicFolders;
|
return musicFolders;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* A count to deliberately stagger the execution of populateDatabase.
|
||||||
|
* If populate Database is called from multiple methods almost simultaneously,
|
||||||
|
* it may not execute correctly.
|
||||||
|
*/
|
||||||
private int count = 1;
|
private int count = 1;
|
||||||
|
|
||||||
private synchronized void populateDatabase() {
|
private synchronized void populateDatabase() {
|
||||||
@@ -135,19 +140,18 @@ public class SearchServiceSpecialGenreTestCase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* There are 19 files
|
||||||
|
* in src/test/resources/MEDIAS/Search/SpecialGenre/ARTIST1/ALBUM_A.
|
||||||
|
* In FILE01 to FILE16, Special strings for Lucene syntax are stored
|
||||||
|
* as tag values of Genre.
|
||||||
|
*
|
||||||
|
* Legacy can not search all these genres.
|
||||||
|
* (Strictly speaking, the genre field is not created at index creation.)
|
||||||
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testQueryEscapeRequires() {
|
public void testQueryEscapeRequires() {
|
||||||
|
|
||||||
/*
|
|
||||||
* There are 19 files
|
|
||||||
* in src/test/resources/MEDIAS/Search/SpecialGenre/ARTIST1/ALBUM_A.
|
|
||||||
* In FILE01 to FILE16, Special strings for Lucene syntax are stored
|
|
||||||
* as tag values of Genre.
|
|
||||||
*
|
|
||||||
* Legacy can not search all these genres.
|
|
||||||
* (Strictly speaking, the genre field is not created at index creation.)
|
|
||||||
*/
|
|
||||||
|
|
||||||
List<MusicFolder> folders = getTestMusicFolders();
|
List<MusicFolder> folders = getTestMusicFolders();
|
||||||
|
|
||||||
Function<String, RandomSearchCriteria> simpleStringCriteria = s ->
|
Function<String, RandomSearchCriteria> simpleStringCriteria = s ->
|
||||||
@@ -211,14 +215,13 @@ public class SearchServiceSpecialGenreTestCase {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Jaudiotagger applies special treatment to bracket (FILE17).
|
||||||
|
*
|
||||||
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testBrackets() {
|
public void testBrackets() {
|
||||||
|
|
||||||
/*
|
|
||||||
* Jaudiotagger applies special treatment to bracket (FILE17).
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
List<MusicFolder> folders = getTestMusicFolders();
|
List<MusicFolder> folders = getTestMusicFolders();
|
||||||
|
|
||||||
RandomSearchCriteria criteria = new RandomSearchCriteria(Integer.MAX_VALUE, // count
|
RandomSearchCriteria criteria = new RandomSearchCriteria(Integer.MAX_VALUE, // count
|
||||||
@@ -245,12 +248,12 @@ public class SearchServiceSpecialGenreTestCase {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Jaudiotagger applies special treatment to numeric. (FILE18)
|
||||||
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testNumericMapping() {
|
public void testNumericMapping() {
|
||||||
|
|
||||||
/*
|
|
||||||
* Jaudiotagger applies special treatment to numeric. (FILE18)
|
|
||||||
*/
|
|
||||||
List<MusicFolder> folders = getTestMusicFolders();
|
List<MusicFolder> folders = getTestMusicFolders();
|
||||||
|
|
||||||
RandomSearchCriteria criteria = new RandomSearchCriteria(Integer.MAX_VALUE, // count
|
RandomSearchCriteria criteria = new RandomSearchCriteria(Integer.MAX_VALUE, // count
|
||||||
@@ -269,18 +272,18 @@ public class SearchServiceSpecialGenreTestCase {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Other special strings. (FILE19)
|
||||||
|
*
|
||||||
|
* {'“『【【】】[︴○◎@ $〒→+]FULL-WIDTHCæsar's
|
||||||
|
*
|
||||||
|
* Legacy stores with Analyze,
|
||||||
|
* so searchable characters are different.
|
||||||
|
*
|
||||||
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testOthers() {
|
public void testOthers() {
|
||||||
|
|
||||||
/*
|
|
||||||
* Other special strings. (FILE19)
|
|
||||||
*
|
|
||||||
* {'“『【【】】[︴○◎@ $〒→+]FULL-WIDTHCæsar's
|
|
||||||
*
|
|
||||||
* Legacy stores with Analyze,
|
|
||||||
* so searchable characters are different.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
List<MusicFolder> folders = getTestMusicFolders();
|
List<MusicFolder> folders = getTestMusicFolders();
|
||||||
|
|
||||||
RandomSearchCriteria criteria = new RandomSearchCriteria(Integer.MAX_VALUE, // count
|
RandomSearchCriteria criteria = new RandomSearchCriteria(Integer.MAX_VALUE, // count
|
||||||
|
|||||||
Reference in New Issue
Block a user