Chris Smith
6ae693893d
Enable PMD in gradle + apply fixes.
Change-Id: I3665cac8af833da793ca418953d934cc3a333459
Depends-On: I348b37a14097439f8a56b0a671794410e46201ca
Depends-On: Ifc4aa601de14ca2526646f499f60329ed7c5935e
Reviewed-on: http://gerrit.dmdirc.com/3939
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Chris Smith
d5b9bebef5
Make ChildEventBusManager.disconnect async.
This allows other async events a chance to be popagated up to
the parent, rather than the bus abruptly being cut off with
a bunch of pending events.
Change-Id: I2a60826174d33240c0a1016b41ef881efdd97fed
Reviewed-on: http://gerrit.dmdirc.com/3818
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Chris Smith
ab68ff44f6
Add test for ChildEventBusManager :)
Change-Id: Ieda960d247a8ba1a78391043b39052001ce8a6a5
Reviewed-on: http://gerrit.dmdirc.com/3782
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Greg Holmes
746bb6081d
Generify MBassador.
Change-Id: Id3cfa404a56528542120f79c969d992a5c183aba
Reviewed-on: http://gerrit.dmdirc.com/3771
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
b12a0cb412
MBassador.
Change-Id: I2baa7e986ded54930093768238ed24cab8cf4bf7
Depends-On: I2cf35d5859c85c3609002f126241536fda5d588e
Reviewed-on: http://gerrit.dmdirc.com/3769
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Chris Smith
bc615bfd95
Fix URLBuilderTest.
If this is run with the wrong classpath, the test fails as apparently
having a 'test' folder isn't hugely uncommon. Use a less likely name.
Change-Id: I4c8bcb2be8b6768b3247e91d176932e7fac24d2e
Reviewed-on: http://gerrit.dmdirc.com/3681
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Greg Holmes
3ba3aed30a
EventBus logging for URLBuilder.
Change-Id: If1f98b4007a50f66c2dcd6f0a7744d24b2139555
Reviewed-on: http://gerrit.dmdirc.com/3673
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Shane Mc Cormack
12b39dc0f8
Update Copyright to 2014
Change-Id: Id0904867640e49e12fca5c1c7c5b9e72c78e3a1b
Reviewed-on: http://gerrit.dmdirc.com/2976
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Greg Holmes
2a44f2bdcd
Fix URIParser (has apparently been broken forever).
Add unit tests URI Parser.
Change-Id: I329f958024f70288f42862c02f9b2d7a4ff072ea
Reviewed-on: http://gerrit.dmdirc.com/2967
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
9176a73793
Add more edge cases to URLBuilder test
Change-Id: Ieb694440470d084fff0d1a4fc4e89904bde07b07
Reviewed-on: http://gerrit.dmdirc.com/2874
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Greg Holmes
7ec52e9633
Add missing license header
Change-Id: I30270058e1aa6c028b8ae77ab9f0d9c27cf089bc
Reviewed-on: http://gerrit.dmdirc.com/2873
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Greg Holmes
34da22339c
Add unit tests for URLBuilder
Change-Id: Ia85592b8b5bdd55159972e2fcc1c46e41ea2ce96
Reviewed-on: http://gerrit.dmdirc.com/2872
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Chris Smith
a032a667eb
Move CipherUtils into config package
It's not a general purpose util, and will only be used by the config system.
Change-Id: I2d0ac5ea23d8b7d0fcda6e467ddcf4ac08bc520a
Reviewed-on: http://gerrit.dmdirc.com/731
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
14 years ago
Chris Smith
0542faba35
Move URLHandler to ui.core.util
Change-Id: I42463f20214c269e4bed0f7a93f52dc80b83088c
Reviewed-on: http://gerrit.dmdirc.com/729
Automatic-Compile: Shane Mc Cormack <shane@dmdirc.com >
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
14 years ago
Chris Smith
58b2e9113f
Move util classes into separate repo
Fixes issue 3655
Change-Id: I99875b54f746021430728ea35ba29ee423174d91
Reviewed-on: http://gerrit.dmdirc.com/685
Automatic-Compile: Shane Mc Cormack <shane@dmdirc.com >
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
14 years ago
Shane Mc Cormack
b691b14491
Update the copyright date on all files.
UpdateCopyright.sh now works out the year automatically.
UpdateCopyright.sh now ignores .git aswell as .svn
UpdateCopyright.sh now excludes Binary Files from being matched during the initial search, rather than as an afterthought.
Change-Id: I2cfc56851a4217a4c85cbc7361c7a90421aae717
Reviewed-on: http://gerrit.dmdirc.com/202
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
Tested-by: Shane Mc Cormack <shane@dmdirc.com >
14 years ago
Chris Smith
32cf9f348f
Update unit tests for URI changes
Change-Id: I0dd005540f126b40c4d7f61384236ec21cfe5730
Reviewed-on: http://gerrit.dmdirc.com/57
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
Tested-by: Chris Smith <chris@dmdirc.com >
14 years ago
Chris Smith
0d459afd79
I hate issue 2736.
15 years ago
Chris Smith
976551bc89
Unit test fiddling
15 years ago
Chris Smith
a9bfd55072
I wonder why that was ignored. If things explode, blame DF!
15 years ago
Chris Smith
b435501251
Fix some broken unit tests
Remove junit 3 stuff
15 years ago
Chris Smith
06685dc561
Fix IRC Address test
15 years ago
Chris Smith
7912d6fe02
Initial work on moving UI to a plugin
15 years ago
Gregory Holmes
ad6cddbba0
Update copyright header to 2009
15 years ago
Chris Smith
fe13008365
Ignore IrcAddressTest.Connect as it seems to break the jvm now(?!)
15 years ago
Chris Smith
366b474e7a
Add unit test for RollingList
git-svn-id: http://svn.dmdirc.com/trunk@4418 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Chris Smith
f6a763bf99
Unit tests for issues 1391 and 1392 (and URLHandler in general)
Fix issue 1392 (various problems with quotes in URLs)
git-svn-id: http://svn.dmdirc.com/trunk@4288 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Chris Smith
90b24d3077
Handle url handlers (heh) with quotes in properly.
Issue 1228
git-svn-id: http://svn.dmdirc.com/trunk@4064 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Chris Smith
47ceae6b4b
ConfigFile now extends TextFile instead of wrapping it rather oddly (groundwork for fixing issue 1154)
Fixed a couple of deprecated method uses in Server
Removed deprecated TextFile constructor
git-svn-id: http://svn.dmdirc.com/trunk@4005 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Chris Smith
7d772cb5e7
Add DoubleMap unit test
Issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3914 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Chris Smith
2ad9ce2407
Refactor the unit tests so all supporting classes/harnesses are in com.dmdirc.harnesses, instead of dotted around as inner classes
Issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3908 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Chris Smith
971603925a
Extra ConfigFile test cases. Removed some superfluous conditionals in ConfigFile.
issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3889 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Chris Smith
990797b148
Update some util unit tests
TextFile now throws a UOE if you try to delete a file if it was constructed with an InputStream (consistent with the behaviour of writeLines)
Issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3880 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Chris Smith
0fa4e23c8f
Implement ConfigFile.delete and TextFile.delete, and tests for them both
Added unit test for TextFile.writeLines
Fixes issue 1115, work on issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3853 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Chris Smith
0e47e54b08
ConfigFile now escapes #
git-svn-id: http://svn.dmdirc.com/trunk@3789 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Chris Smith
8905c5cab0
ConfigFile now escapes/unescapes content vaguely sensibly, although it still doesn't like =s
git-svn-id: http://svn.dmdirc.com/trunk@3786 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Chris Smith
466200a6e1
Update config file test to cover odd things like :, =, \r, \n, \
git-svn-id: http://svn.dmdirc.com/trunk@3785 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Chris Smith
1485c865bb
TextFiles/ConfigFiles can now be instansiated with InputStreams
Themes can now read metadata
Issue 1068
Fixes issue 1075 (dev error)
git-svn-id: http://svn.dmdirc.com/trunk@3759 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Chris Smith
e460dddf94
IrcAddress now parses the query and fragment parts of URIs
Fixes issue 944
Added unit test to test behaviour described in 944
git-svn-id: http://svn.dmdirc.com/trunk@3560 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Gregory Holmes
75d0438bdc
Fixes issue 887: Cipher utils doesn't work
Added Base64 Encoding/Decoding class (http://www.migcomponents.com/ )
git-svn-id: http://svn.dmdirc.com/trunk@3471 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Chris Smith
4a94398035
Made cipher utils a singleton instead of having loads of static methods/properties
Fixed some stupid mistakes in cipher utils
Added basic cipher utils unit test (which fails)
git-svn-id: http://svn.dmdirc.com/trunk@3470 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Chris Smith
54236284a0
IrcAddress now uses URI to parse URLs. This means that encoded characters are now decoded properly.
Fixes issue 763.
git-svn-id: http://svn.dmdirc.com/trunk@3451 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Chris Smith
24ba8d268f
IrcAddress now ignores trailing "isnick", "needkey" and "needpass" strings
Issue 763
git-svn-id: http://svn.dmdirc.com/trunk@3448 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Chris Smith
569454a89b
Additional MapList unit tests
git-svn-id: http://svn.dmdirc.com/trunk@3422 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Chris Smith
13579c6d61
Unit tests for ConfigFile
git-svn-id: http://svn.dmdirc.com/trunk@3421 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Chris Smith
d82b7a01c1
TextFile and ConfigFile can now be initialised with a URI
Added basic unit test for TextFile
git-svn-id: http://svn.dmdirc.com/trunk@3418 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Chris Smith
e8d443b1e7
Bet you can't guess what these are!
Hint: they being with "un" and end in "sts" (and aren't "unisex vests")
git-svn-id: http://svn.dmdirc.com/trunk@3263 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Chris Smith
82ae588034
More unit tests
git-svn-id: http://svn.dmdirc.com/trunk@3255 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Shane Mc Cormack
882e9e735d
Updated copyright header on all files.
2006-2007 -> 2006-2008
git-svn-id: http://svn.dmdirc.com/trunk@3151 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago
Chris Smith
0342f857ef
Added EquatableWeakReference to make up for Sun's crap (Weak)Reference implementation
Added unit tests for MapList and WeakList
git-svn-id: http://svn.dmdirc.com/trunk@2872 00569f92 -eb28-0410-84fd-f71c24880f
16 years ago