François-Xavier Thomas and jvoisin
6a3d301517
Internal help: Add basic controller tests
2020-02-12 21:41:47 +00:00
jvoisin
43ab59807a
Make a couple of inner classes static
...
This might marginally improve the memory consumption,
but the main goal here is to make the code separation
between inner and outer class explicit.
2020-01-11 11:11:20 +01:00
François-Xavier Thomas
d5f10e4c4c
Turn off Airsonic banner during tests
2020-01-03 23:59:46 +01:00
Evan Harris
510314a9d8
Added SingleSpaceSeparator checkstyle
2019-12-06 03:14:19 -06:00
Evan Harris
f476fd7c33
Added checkstyle for trailing whitespace
2019-12-06 03:10:06 -06:00
tesshucom
dba8610ff7
Apply stopwords dedicated to music search
...
- Iterate index version.
2019-12-04 02:08:59 +09:00
tesshucom
bb464f15a8
Apply boost values to search queries
2019-12-04 01:13:26 +09:00
Andrew DeMaria
e789e531d0
Merge remote-tracking branch 'origin/pr/1326'
2019-11-23 14:03:06 -07:00
Andrew DeMaria
fa1a700ebd
Translated xml configuration to java configuration
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-11-23 13:23:09 -07:00
Shen-Ta Hsieh and Andrew DeMaria
84df4e3b94
Add support for ListenBrainz Audio Scrobbler Service
...
- Add textbox in user settings page for ListenBrainz token
- Add changes to db
- Add db colume to store MusicBrainz Recording ID
- Add db colume to store ListenBrainz token
- Add test for reading id
- Add tag on testing file
- Add localization entry
Signed-off-by: Shen-Ta Hsieh <ibmibmibm.tw@gmail.com >
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-11-23 12:36:48 -07:00
jvoisin
af97925124
Rename some exceptions to ignored since we don't care about them
2019-11-23 15:50:22 +01:00
Evan Harris and GitHub
569a55259f
Merge pull request #1339 from eharris/remove-autorefresh
...
Removed the auto-refresh feature
2019-11-20 04:21:38 -06:00
Andrew DeMaria
eda6406865
Merge remote-tracking branch 'origin/pr/1262'
2019-11-03 14:57:19 -07:00
Andrew DeMaria
546451bf0a
Merge remote-tracking branch 'origin/pr/1355'
2019-11-03 14:52:42 -07:00
Andrew DeMaria
437d8ce947
Move index meta information
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-11-03 13:59:27 -07:00
Randomnicode
4b852c53e2
Fix Test Queries for limits
2019-11-01 14:26:45 -07:00
jvoisin
d2ad85447b
Remove the unused md5Hex method
2019-10-24 21:42:50 +02:00
jvoisin
e1583691d8
Replace StringUtil.toHtml with StringEscapeUtils.escapeHtml
...
Apache commons is providing Html-escaping, no need to reinvent the wheel:
> It supports all known HTML 4.0 entities, including funky accents. Note that the
> commonly used apostrophe escape character (') is not a legal entity and so
> is not supported).
So I manually checked that nothing is relying on escaped single-quotes,
and didn't manage to find anything that does.
2019-10-24 21:42:50 +02:00
Evan Harris
a793deab0b
Got rid of duplicated code to format durations
...
Added new functions and test cases.
2019-10-21 07:46:16 -05:00
Evan Harris
0660c4f3e6
Renamed StringUtil.formatDuration to formatDurationMSS
2019-10-21 07:01:34 -05:00
jvoisin
f910c572c9
Use a static access in a test file, because we can.
2019-10-20 22:43:10 +02:00
Evan Harris
91f91ed654
Removed the auto-refresh feature
...
This feature just generated a lot of unnecessary traffic to the server and
hurt usability because the page would refresh unexpectedly while a user was
actively looking at content. Fixes #1003 , #1179 , #729 .
Did not remove the column for that setting in the user database, since that
would lead to complications if needing to downgrade for some reason.
2019-10-16 00:50:15 -05:00
Andrew DeMaria
75a280457e
Merge remote-tracking branch 'origin/pr/1327'
2019-10-15 21:09:48 -06:00
Evan Harris
4fb9820a08
Added test case sources to checkstyle
...
Fixes #1328 .
2019-10-15 12:38:52 -05:00
jvoisin
78480ab766
Remove a homemade implementation of Pair
...
Since apache-commons is already implementing a Pair
type, there is no need to reinvent the wheel.
2019-10-13 23:36:33 +02:00
Andrew DeMaria
85f85fd88c
Make test results quieter
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-10-07 22:41:12 -06:00
jvoisin and Andrew DeMaria
e5404648a4
Remove unnecessary exceptions and unused imports
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-10-06 16:00:29 -06:00
jvoisin and Andrew DeMaria
dddf8dc0aa
Fix some javadoc comments
...
- Remove a dangling comment
- Delete half-documented parameters
- Fix some @see/@link
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-10-06 15:37:54 -06:00
jvoisin and Andrew DeMaria
af05b0f45b
Use lambdas instead of ghetto nested types
...
This change was done in an automated fashion
via IntelliJ IDEA
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-10-05 19:47:48 -06:00
tesshucom and Andrew DeMaria
645fb88c7d
Add expunge to IndexManager
...
When DB expunge is invoked from the management screen,
also indexManager performs expunge.
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-10-05 19:19:16 -06:00
jvoisin
bc832d0034
Use a constant for encoding
...
Replace string.getBytes("UTF-8") with
string.getBytes(CONSTANT).
2019-09-21 18:16:40 +02:00
tesshucom and Andrew DeMaria
5c3c558923
Update Lucene from 3.0.3 to the current version 8.2.0
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-09-12 16:33:44 -06:00
jvoisin and Andrew DeMaria
c6540d707e
Simplify a bit the annotations
...
There is no need to specify `value` every single time
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-09-10 13:51:35 -06:00
tesshucom and Andrew DeMaria
ff08f6dd02
Fix #1139
2019-07-25 19:26:01 -06:00
tesshucom
4ce892e39d
Fix for duplication and synchronization.
...
- Moved MusicFolderTestData
from org.airsonic.player.service
to org.airsonic.player.util
2019-07-10 04:45:22 +09:00
tesshucom
4a728ed9a6
Add and modify comments
2019-07-08 05:44:03 +09:00
tesshucom
f67c758c4e
Add missing test cases
2019-07-08 01:09:49 +09:00
76f665b3c4
Update airsonic-main/src/test/java/org/airsonic/player/service/search/SearchServiceSpecialGenreTestCase.java
...
Fix comment
Co-Authored-By: jvoisin <jvoisin@users.noreply.github.com >
2019-07-08 00:28:29 +09:00
810920556e
Update airsonic-main/src/test/java/org/airsonic/player/service/search/AnalyzerFactoryTestCase.java
...
Fix comment
Co-Authored-By: jvoisin <jvoisin@users.noreply.github.com >
2019-07-08 00:28:16 +09:00
5bfc232021
Update airsonic-main/src/test/java/org/airsonic/player/service/search/AnalyzerFactoryTestCase.java
...
Fix comment
Co-Authored-By: jvoisin <jvoisin@users.noreply.github.com >
2019-07-08 00:28:08 +09:00
c74ef2ea30
Update airsonic-main/src/test/java/org/airsonic/player/service/search/AnalyzerFactoryTestCase.java
...
Fix comment
Co-Authored-By: jvoisin <jvoisin@users.noreply.github.com >
2019-07-08 00:27:55 +09:00
eb5963dfa3
Update airsonic-main/src/test/java/org/airsonic/player/service/search/AnalyzerFactoryTestCase.java
...
Fix comment
Co-Authored-By: jvoisin <jvoisin@users.noreply.github.com >
2019-07-08 00:27:04 +09:00
tesshucom
f2d26348b6
Add tests for SearchService
...
Test cases related to current issues or points that need confirmation
after Lucene update.
2019-07-07 22:41:55 +09:00
François-Xavier Thomas
073b7e35e1
Add simple test cases for internet radios
2019-07-02 23:00:03 +02:00
tesshucom and Andrew DeMaria
767b39ed5b
Split SearchService
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com >
2019-07-02 01:02:49 -06:00
jvoisin
1640411573
Fix some invalid/incomplete javadoc comments
2019-06-15 17:15:51 +02:00
Andrew DeMaria
14b812568c
Merge remote-tracking branch 'origin/pr/1072'
2019-06-10 23:06:51 -06:00
jvoisin
643be3930f
Remove superfluous casts
2019-06-08 16:24:00 +02:00
jvoisin
def5f854fb
Inline some variables
...
There is no point in `Type a = …; return a;`
2019-06-08 15:47:15 +02:00
Rémi Cocula
c09da549ce
FIX : tests fail if a /var/music folder exists
2019-05-22 21:41:15 +02:00