Chris Smith
455ec897ed
Add tests for StreamUtils.close.
9 anos atrás
Greg Holmes
b64a5ad189
Improve TextFile unit test, and delete unused ctor.
9 anos atrás
Chris Smith
c3b63f947a
Few more tests.
9 anos atrás
Chris Smith
787f8c78b3
Add a few more tests.
9 anos atrás
Chris Smith
8bddf20087
Add a couple of trivial tests.
9 anos atrás
Greg Holmes
c4499517d3
Remove compile time warnings.
9 anos atrás
Shane Mc Cormack
eb2bfe4c84
2015!
9 anos atrás
Greg Holmes
e6565ea500
Fix some raw types.
9 anos atrás
Greg Holmes
c360bd8afd
Remove unused constructors in ConfigFile.
9 anos atrás
Greg Holmes
a411d102e1
Add a test for ListenerInputStream.
9 anos atrás
Greg Holmes
20608b13fc
Tidy up TextFile a bit.
9 anos atrás
Greg Holmes
d51ed35a4e
Generic class for functions.
9 anos atrás
Greg Holmes
856bdeaec8
Add unit test.
9 anos atrás
Greg Holmes
0b1b21f957
Add URL Encoding back.
9 anos atrás
Greg Holmes
4dde7c5d86
Re-add listener support.
9 anos atrás
Greg Holmes
c7d9420b9a
Tidy up downloader.
9 anos atrás
Greg Holmes
dc04747166
Fix test.
9 anos atrás
Greg Holmes
b699f94261
Delete some StreamUtils.
9 anos atrás
Greg Holmes
318f98f3a9
Fix warning in tests.
9 anos atrás
Chris Smith
4679e71dbe
Remove deprecated method.
9 anos atrás
Greg Holmes
807572c8fc
Tidying
9 anos atrás
Chris Smith
fba5088719
Start work on a generic link extractor.
At the moment this just implements the first step of the Styliser's
link detection. It doesn't apply any of the "intelligent" corrections.
9 anos atrás
Chris Smith
0e02c175f6
Add StringUtils class + tests.
These are from the TextPane, but seem fairly general purpose.
Change-Id: Ic119eb461a365b4f7050715c6bc0abd5c034e57c
Reviewed-on: http://gerrit.dmdirc.com/4081
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 anos atrás
Chris Smith
c4dde2f42b
Try to stop the downloader test flaking.
Replace tempremental in-order mocking with a real output stream.
Allow maps to be serialised in any order.
Change-Id: Ie181cc23920b98717acdcac0fce02a9afdce6e85
Reviewed-on: http://gerrit.dmdirc.com/4066
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 anos atrás
Greg Holmes
cc70fb7c1c
Add unit test for StreamReaderUtil
Change-Id: I333d7a498862cc1dfb6dfe467f97cdaa3372b273
Reviewed-on: http://gerrit.dmdirc.com/4064
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 anos atrás
Chris Smith
d3ce99e446
Tidying
Change-Id: I2722a059aeca5e93d02a39b47ce8d945947f04ad
Reviewed-on: http://gerrit.dmdirc.com/4052
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 anos atrás
Greg Holmes
efc3439452
Use j7 methods.
Change-Id: I7304aa4392c835efa700d76676213f3294307b8f
Reviewed-on: http://gerrit.dmdirc.com/4049
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 anos atrás
Greg Holmes
aad1578811
Unit test for Downloader
Change-Id: I3b054eb2144f51bc0b5935ee24525616dc042a4e
Reviewed-on: http://gerrit.dmdirc.com/4047
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 anos atrás
Chris Smith
f6b56531d3
Make ReverseFileReader autocloseable.
Because why not?
Change-Id: I996ff53c4bb7bd0d237691c260ed7dc55e6499fa
Reviewed-on: http://gerrit.dmdirc.com/4048
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 anos atrás
Greg Holmes
87e3c1343d
Make ReverseFileReader use Paths.
Change-Id: I921a395e088846216650d1ac14207cb915a6bb8c
Reviewed-on: http://gerrit.dmdirc.com/4045
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 anos atrás
Chris Smith
18b3adddbc
Add an alternative formatter.
Formatting durations as 'XX:YY' is fairly common and repeated
in nearly all the nowplaying sources. Make a util method instead.
Change-Id: I8663a0ff5da7a17d7d47cf10e5b0e74722671b46
Reviewed-on: http://gerrit.dmdirc.com/3986
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 anos atrás
Chris Smith
4ec0f9f35d
Tidy
Change-Id: Ie04cdf734db3b8bb0e065c554ced7c1ea2600fb2
Reviewed-on: http://gerrit.dmdirc.com/3943
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 anos atrás
Chris Smith
fb6da494a3
PMD fixes
Change-Id: I348b37a14097439f8a56b0a671794410e46201ca
Reviewed-on: http://gerrit.dmdirc.com/3938
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 anos atrás
Chris Smith
35eb9e9598
Minor tidying
Change-Id: Ib15e1ec964dfc126ad28c7b8599c5696b9061535
Reviewed-on: http://gerrit.dmdirc.com/3918
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 anos atrás
Chris Smith
c200f9be65
Gradle the util project.
Change-Id: I579afbde086d5761fe3743b23f4655cb4ea5b8df
Reviewed-on: http://gerrit.dmdirc.com/3909
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 anos atrás
Greg Holmes
5afbb601a6
Add basic email address validator.
Change-Id: Ia38d3a8f19f12e21bc2d933c4411cc5e886e74ab
Reviewed-on: http://gerrit.dmdirc.com/3599
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 anos atrás
Chris Smith
6780ea88e2
Mark temp files as deleteOnExit.
Fixes-Issue: CLIENT-453
Change-Id: Ia88e231381da2d1907c78ecccb5f7456e71adb16
Reviewed-on: http://gerrit.dmdirc.com/3195
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 anos atrás
Shane Mc Cormack
bd00847b40
Update Copyright to 2014
Change-Id: Id44b617ffa590a8562fa5f6f79eaeb55fb432075
Reviewed-on: http://gerrit.dmdirc.com/2980
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 anos atrás
Greg Holmes
779a61d876
Java 7 conversions
Change-Id: Ib05f625f14ab2f486f0c83c47c860dd0f0ef3ba1
Reviewed-on: http://gerrit.dmdirc.com/2896
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 anos atrás
Greg Holmes
b4e4ee1a30
Optional validator should pass null through to inner validator.
Change-Id: I9b8ad2dca5d93dae3c656c5334ff916604d8c826
Reviewed-on: http://gerrit.dmdirc.com/2635
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
11 anos atrás
Shane Mc Cormack
b23cd03717
Update copyright for 2013
Change-Id: Iaaa1509b9f33742a5a2f5d9d6f4608432ddeaaaa
Reviewed-on: http://gerrit.dmdirc.com/2606
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
11 anos atrás
Greg Holmes
e9c30ea502
SimpleInjector Unit test
Change-Id: Ic73c78ad63bfbc2fcdef87c6c7cab70ab85a3131
Reviewed-on: http://gerrit.dmdirc.com/2447
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 anos atrás
Greg Holmes
9dd933b38e
ReturnableThread unit test
Change-Id: I0ee76f3b816c6925f4f05baeb9aaaebf002e30e4
Reviewed-on: http://gerrit.dmdirc.com/2446
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 anos atrás
Greg Holmes
1b7c2f2257
Unit testing
Change-Id: Id131f3470b1f5d977506a3b8f2899d1214bbd7a7
Reviewed-on: http://gerrit.dmdirc.com/2444
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
12 anos atrás
Greg Holmes
ccfd2a635c
Alter behaviour of CommandUtils wrt stripping spaces
Change-Id: I9a785f381e5e9ad6eea80c7ff69e6319565c21ad
Reviewed-on: http://gerrit.dmdirc.com/2443
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 anos atrás
Greg Holmes
70766a12a7
Tidy up unit tests
Change-Id: I83b28c60e64fc0f367279d70dff3daf0714e0087
Reviewed-on: http://gerrit.dmdirc.com/2441
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 anos atrás
Greg Holmes
eff5c402d5
Add tests for ListenerList
Change-Id: I1a395717ec1acdc5fb866f28efbc0c9da1d38205
Reviewed-on: http://gerrit.dmdirc.com/2440
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 anos atrás
Greg Holmes
3e8ac978f7
Unit tests (and fixed a but in WeakList)
Change-Id: Ie17ad694c5a02c757fbc4403852b67bac44f84a9
Reviewed-on: http://gerrit.dmdirc.com/2439
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
12 anos atrás
Greg Holmes
f16e4ab36b
Improve server name validation. Unit test things.
Change-Id: Ic8df21726d438117222c09f617ea9b66dfc7df88
Reviewed-on: http://gerrit.dmdirc.com/2437
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 anos atrás
Chris Smith
7c2788db0e
Add ReverseFileReader from logging plugin
Change-Id: I8fcf1d9e686834dfad9d93c177b97b0ea19fd742
Reviewed-on: http://gerrit.dmdirc.com/2325
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
12 anos atrás