Chris Smith
7243ab1fba
Pass in most dependencies to Server.
Remove all static/singleton references in the constructor so that
Servers can be instansiated sensibly without all the client existing.
Also change everything that creates a Server to use the appropriate
method in the ServerManager instead of doing it manually.
Depends-On: I3fff818d6e6694163660a36f47d60271d8f0e68e
Change-Id: I9842c20b4e4ff846c9bbf4858da794a843c3b053
Reviewed-on: http://gerrit.dmdirc.com/2655
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
hace 11 años
Shane Mc Cormack
b87e3ba335
Update copyright for 2013
Change-Id: Idf38f5027a92166daf99039de75b759d47431de1
Reviewed-on: http://gerrit.dmdirc.com/2607
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
hace 11 años
Shane Mc Cormack
7b67f19db2
Revert "Continue main removal"
Revert "Begin work on removing CommandManager singleton"
This reverts commit e93538e9dc .
Change-Id: I8eb4f70f80292d66e3bdbe9f32766b5f427413c2
Depends-On: Iba86c7f2bf870684e0d41f88d82f16b43d43fe80
Reviewed-on: http://gerrit.dmdirc.com/2601
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
hace 11 años
Greg Holmes
e93538e9dc
Continue main removal
Change-Id: I28c660092aabbc8eeebd9ed4dcc80cb9f3940aaf
Depends-On: I28c660092aabbc8eeebd9ed4dcc80cb9f3940aaf
Reviewed-on: http://gerrit.dmdirc.com/2589
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
hace 11 años
Shane Mc Cormack
4edc853bbf
Desingleton PluginManager (and as a side-effect, ServerManager).
Depends-On: I72fe837b5ea2352ae0c695948336efcdd92c09c8
Change-Id: I4a3d9b78a5f80aab0330d0906e8c76d00813c97c
Reviewed-on: http://gerrit.dmdirc.com/2523
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
hace 12 años
Shane Mc Cormack
792f3cc7dc
Make main less static.
Don't ask Main for the config directory.
Remove getMain() from Main.
Everything that needs a main now either gets given it, or asks something else.
Unfortunately, a few more dependencies on the static IdentityManager.getIdentityManager()
were introduced, but they can be tackled separately.
Fix unit tests for the above.
Change-Id: I9e42ac7f74453b739209a681d0a31f50c1be2a04
Depends-On: Ib5a9fdea5a2e25d5471d0b849f4f65fa0286d1f8
Reviewed-on: http://gerrit.dmdirc.com/2520
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
hace 12 años
Chris Smith
345fe77ea7
Ignore or remove tests that fail in a headless env
These need to be rewritten so the dependencies are mocked out
Change-Id: Id8890637da5483efaa112db7613e61fba366e878
Reviewed-on: http://gerrit.dmdirc.com/2378
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
hace 12 años
Shane Mc Cormack
d26602c9dc
Update Copyright for 2012
Change-Id: I0d40c3ac86b9e06fad3f29bc36612b4162e54d1c
Reviewed-on: http://gerrit.dmdirc.com/2287
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
hace 12 años
Chris Smith
5c64a29c45
Deprecations
Change-Id: I1aa33d6e360f6050b02b7fe3f7db1312451c93fb
Reviewed-on: http://gerrit.dmdirc.com/2282
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
hace 12 años
Chris Smith
41304ccecb
More deprecation fixes
Change-Id: If418fcbcafa64857e6a656bee08fef7399b6a2e3
Reviewed-on: http://gerrit.dmdirc.com/2280
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
hace 12 años
Greg Holmes
d04e2bea4f
Change header?
Change-Id: I635e0d111ed182713132145e4d5fb1654f776ec4
Reviewed-on: http://gerrit.dmdirc.com/2071
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
hace 13 años
Greg Holmes
acdd8268bc
Remove deprecations.
Depends-On: Ic938a7785a30477f47074e574ec8311723d803a9
Change-Id: I5ebf0bd52682cd0b1798d1b1b54353e5e65e793f
Reviewed-on: http://gerrit.dmdirc.com/1838
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Chris Smith <chris@dmdirc.com >
hace 13 años
Shane Mc Cormack
fd83b6b2a9
Update Copyright
Change-Id: I7f63fdd02ea0109fe31e55c44b078edae3862f32
Reviewed-on: http://gerrit.dmdirc.com/1726
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
hace 13 años
Chris Smith
5d584f2068
Style fixes
Change-Id: Idffa6c2559bcc2112c9657b15349aa80579ab83a
Reviewed-on: http://gerrit.dmdirc.com/1336
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Gregory Holmes <greg@dmdirc.com >
hace 14 años
Chris Smith
2a04fd59e5
Fix flakey Server unit test
Change-Id: Ibc37ced6417e0174400ea6485bf9d4378df38172
Reviewed-on: http://gerrit.dmdirc.com/1038
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com >
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
hace 14 años
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 >
hace 14 años
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 >
hace 14 años
Chris Smith
3e8d7c6ea2
Servers no longer autoconnect.
Fixes issue 2227; fixes issue 2807 (dev error)
hace 15 años
Chris Smith
f55a6902f2
Issue 2736.
hace 15 años
Chris Smith
61c310a253
I am the unittest man, I come from down the way, and I can pllaaaayyyyy
(What can you play?)
I can play the unit tests
Umpahumpahumpahpah, umpahpah, umpahpah, umpahumpahpah
hace 15 años
Chris Smith
2165faa4cd
Fix some tests post UI changes
hace 15 años
Chris Smith
7912d6fe02
Initial work on moving UI to a plugin
hace 15 años
Gregory Holmes
ad6cddbba0
Update copyright header to 2009
hace 15 años
Chris Smith
816877e2dc
GRRRRRAAAAAAAAAARRRRGGGGGGGGGGGGGGHHHHHHHHHHHHHH.
git-svn-id: http://svn.dmdirc.com/trunk@4777 00569f92 -eb28-0410-84fd-f71c24880f
hace 16 años
Chris Smith
b5c630f2a2
Unkill failing test. I'm blaming insanely old defaults
git-svn-id: http://svn.dmdirc.com/trunk@4776 00569f92 -eb28-0410-84fd-f71c24880f
hace 16 años
Chris Smith
e40d902f03
Kill failing test. No idea what's going wrong.
git-svn-id: http://svn.dmdirc.com/trunk@4775 00569f92 -eb28-0410-84fd-f71c24880f
hace 16 años
Chris Smith
a9b93bde7c
Fscking unit tests
git-svn-id: http://svn.dmdirc.com/trunk@4773 00569f92 -eb28-0410-84fd-f71c24880f
hace 16 años
Chris Smith
070061875e
InviteTest now uses test parsers, not real ones
Fixed a test in ServerTest failing intermittently (but not on Renji)
git-svn-id: http://svn.dmdirc.com/trunk@4478 00569f92 -eb28-0410-84fd-f71c24880f
hace 16 años
Chris Smith
528a24c637
ServerTest tests now use a TestParserFactory so they don't spam connect/disconnects stupidly fast
Added ChannelInfo unit tests to cover some mode setting behaviour
git-svn-id: http://svn.dmdirc.com/trunk@4305 00569f92 -eb28-0410-84fd-f71c24880f
hace 16 años
Chris Smith
4daf219085
Added ActionListener and ParserFactory implementations to test harness package, and rejiggled TestParser a bit
Added a test for Server's parsing of numerics
git-svn-id: http://svn.dmdirc.com/trunk@4259 00569f92 -eb28-0410-84fd-f71c24880f
hace 16 años
Chris Smith
43aa4cb0f9
Repurpose testRemoveInvitesOnDisconnect to testRemoveInvitesOnSocketClosed
Fixes issue 701
git-svn-id: http://svn.dmdirc.com/trunk@3849 00569f92 -eb28-0410-84fd-f71c24880f
hace 16 años
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
hace 16 años
Chris Smith
2201eeb39c
Added unit tests for invites, topics, and server's handling of invites.
Fixed invites not being removed on disconnect - fixes issue 637
git-svn-id: http://svn.dmdirc.com/trunk@3134 00569f92 -eb28-0410-84fd-f71c24880f
hace 16 años
Chris Smith
847ac86f84
Added new IgnoreList class
Tests now work with stupid versions of JUnit, like 3.x
git-svn-id: http://svn.dmdirc.com/trunk@2674 00569f92 -eb28-0410-84fd-f71c24880f
hace 16 años
Shane Mc Cormack
9eae9f9557
Readded "extends junit.framework.TestCase" to all Tests to make them still work on ant 1.6.5
git-svn-id: http://svn.dmdirc.com/trunk@2657 00569f92 -eb28-0410-84fd-f71c24880f
hace 16 años
Chris Smith
056fa795c9
New server network name behaviour
git-svn-id: http://svn.dmdirc.com/trunk@2492 00569f92 -eb28-0410-84fd-f71c24880f
hace 17 años
Chris Smith
02eecebc72
Tests now use JUnit 4.x annotations
Removed useless imports and javadoc from tests
git-svn-id: http://svn.dmdirc.com/trunk@2376 00569f92 -eb28-0410-84fd-f71c24880f
hace 17 años
Chris Smith
0f0899b8a5
Added license header to all tests
git-svn-id: http://svn.dmdirc.com/trunk@2375 00569f92 -eb28-0410-84fd-f71c24880f
hace 17 años
Chris Smith
2ab0a01607
Created util package, moved some stuff in
git-svn-id: http://svn.dmdirc.com/trunk@2268 00569f92 -eb28-0410-84fd-f71c24880f
hace 17 años
Chris Smith
065ab57e1b
Tests are now compatible with older JUnit style
git-svn-id: http://svn.dmdirc.com/trunk@1845 00569f92 -eb28-0410-84fd-f71c24880f
hace 17 años
Chris Smith
f181baed4f
* Minor bug fixes
* Fixed chat commands not being tab-completable in channels (at last)
* Command Manager no longer randomly uses iterators
* Fixed ProgramError test case
* Removed debug from StringTranscoder test case
* Added regression test for issue 042
git-svn-id: http://svn.dmdirc.com/trunk@1838 00569f92 -eb28-0410-84fd-f71c24880f
hace 17 años
Chris Smith
2be94328e0
Added StringTranscoder
git-svn-id: http://svn.dmdirc.com/trunk@1811 00569f92 -eb28-0410-84fd-f71c24880f
hace 17 años