François-Xavier Thomas
6a3d301517
Internal help: Add basic controller tests
5 years ago
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.
5 years ago
François-Xavier Thomas
d5f10e4c4c
Turn off Airsonic banner during tests
5 years ago
Evan Harris
510314a9d8
Added SingleSpaceSeparator checkstyle
5 years ago
Evan Harris
f476fd7c33
Added checkstyle for trailing whitespace
5 years ago
tesshucom
dba8610ff7
Apply stopwords dedicated to music search
...
- Iterate index version.
5 years ago
tesshucom
bb464f15a8
Apply boost values to search queries
5 years ago
Andrew DeMaria
fa1a700ebd
Translated xml configuration to java configuration
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
5 years ago
Shen-Ta Hsieh
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>
5 years ago
jvoisin
af97925124
Rename some exceptions to `ignored` since we don't care about them
5 years ago
Andrew DeMaria
437d8ce947
Move index meta information
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
5 years ago
Randomnicode
4b852c53e2
Fix Test Queries for limits
5 years ago
jvoisin
d2ad85447b
Remove the unused md5Hex method
5 years ago
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.
5 years ago
Randomnicode
acb4e033aa
Minor fix to static time unit call
5 years ago
Evan Harris
a793deab0b
Got rid of duplicated code to format durations
...
Added new functions and test cases.
5 years ago
Evan Harris
0660c4f3e6
Renamed StringUtil.formatDuration to formatDurationMSS
5 years ago
jvoisin
f910c572c9
Use a static access in a test file, because we can.
5 years ago
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.
5 years ago
Evan Harris
4fb9820a08
Added test case sources to checkstyle
...
Fixes #1328 .
5 years ago
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.
5 years ago
Andrew DeMaria
85f85fd88c
Make test results quieter
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
5 years ago
jvoisin
e5404648a4
Remove unnecessary exceptions and unused imports
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
5 years ago
jvoisin
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>
5 years ago
jvoisin
362cf29e41
Fix some javadoc comments
...
- Remove a dangling comment
- Delete half-documented parameters
- Fix some @see/@link
5 years ago
jvoisin
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>
5 years ago
tesshucom
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>
5 years ago
jvoisin
bc832d0034
Use a constant for encoding
...
Replace string.getBytes("UTF-8") with
string.getBytes(CONSTANT).
5 years ago
tesshucom
5c3c558923
Update Lucene from 3.0.3 to the current version 8.2.0
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
5 years ago
jvoisin
c6540d707e
Simplify a bit the annotations
...
There is no need to specify `value` every single time
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
5 years ago
tesshucom
ff08f6dd02
Fix #1139
5 years ago
tesshucom
4ce892e39d
Fix for duplication and synchronization.
...
- Moved MusicFolderTestData
from org.airsonic.player.service
to org.airsonic.player.util
5 years ago
tesshucom
4a728ed9a6
Add and modify comments
5 years ago
tesshucom
f67c758c4e
Add missing test cases
5 years ago
tesshu.com
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>
5 years ago
tesshu.com
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>
5 years ago
tesshu.com
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>
5 years ago
tesshu.com
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>
5 years ago
tesshu.com
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>
5 years ago
tesshucom
f2d26348b6
Add tests for SearchService
...
Test cases related to current issues or points that need confirmation
after Lucene update.
5 years ago
François-Xavier Thomas
073b7e35e1
Add simple test cases for internet radios
5 years ago
tesshucom
767b39ed5b
Split SearchService
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
5 years ago
jvoisin
1640411573
Fix some invalid/incomplete javadoc comments
6 years ago
jvoisin
643be3930f
Remove superfluous casts
6 years ago
jvoisin
def5f854fb
Inline some variables
...
There is no point in `Type a = …; return a;`
6 years ago
Rémi Cocula
c09da549ce
FIX : tests fail if a /var/music folder exists
6 years ago
jvoisin
33bf68aaa5
Add a password settings testcase ( #1058 )
...
* Add a simple testcase
This commit was done to understand how JUnit
and its friends are working. Expect more useful tests
in the future ;)
* Factorise a bit the tests
6 years ago
Andrew DeMaria
df352d8cb0
Fix #611 Add support for Java 9 and greater
...
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
6 years ago
jvoisin
ec4b969e2c
Replace latin encoding with utf-8
6 years ago
jvoisin
30fa4d0467
Second pass of trivial modernizations
...
- Replace unnecessary getters/setters with inline assignments
- Simplify string constructions
- Improve containers construction
6 years ago