Chris Smith
cae8773e08
Using nulls in unit tests is all well and good until you go and add code which tries to dereference them.
git-svn-id: http://svn.dmdirc.com/trunk@4207 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
335e9c3629
Redo the Identity/ConfigManager get options so they use maps where appropriate, rather than stupid string building
Remove all deprecated Identity/ConfigManager methods
Fixes issue 1335
git-svn-id: http://svn.dmdirc.com/trunk@4200 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Shane Mc Cormack
3b985a18b3
Fix build.
Some code tidying (issue 1274)
git-svn-id: http://svn.dmdirc.com/trunk@4158 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
4eddb50f9c
Update unit test for new update component behaviour
git-svn-id: http://svn.dmdirc.com/trunk@4135 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
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 gadus atpakaļ
Chris Smith
2f4dcd468f
Make the way identities are migrated much more sensible.
Issue 1122
git-svn-id: http://svn.dmdirc.com/trunk@4006 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
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 gadus atpakaļ
Chris Smith
ed956b08ac
PreferencesManager and PreferencesSetting test now initialise the IdentityManager in their setUp methods, instead of in the test method, which somehow makes the IdentityManager magically work properly again. Issue 1106.
git-svn-id: http://svn.dmdirc.com/trunk@3989 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
c0704ef0c2
Random parsery unit tests
git-svn-id: http://svn.dmdirc.com/trunk@3974 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
56e7336994
Unit test for parser port range checking
Issue 1171, issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3973 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
73bd375b4e
Unit test for ParserError.isUserError
Issue 1161, issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3972 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
f5d301589e
Add unit test for ActionGroupValidator that should've been made with it
Issue 1169, Issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3971 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
dae7e615ae
/server and /newserver now validate their ports
Issue 1106, Fixes issue 1172
git-svn-id: http://svn.dmdirc.com/trunk@3970 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Shane Mc Cormack
3bb58919dd
ChannelInfo mode optimisation (Also optimised ClientInfo)
Fixes issue 1109
Fixes issue 1108
git-svn-id: http://svn.dmdirc.com/trunk@3958 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
8fbd16a57e
WindowManager unit test (issue 1106)
git-svn-id: http://svn.dmdirc.com/trunk@3957 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
df80eedbf0
Additional ActionModel unit test
git-svn-id: http://svn.dmdirc.com/trunk@3954 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
c8400c2a53
Unit tests (ServerManager, Process004005, ProcessJoin)
Tidied up some logic in ConditionTree, and removed unneccesary asserts
Issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3949 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
28d7d2a3fe
URLProtocolValidator no longer alters http protocol or expects the steam protocol to not exist ¬_¬
git-svn-id: http://svn.dmdirc.com/trunk@3937 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
ca93bf333a
Added basic unit test for VLC plugin
Issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3926 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Shane Mc Cormack
fa0479c38e
Unignore unit test.
Issue 1141
Issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3925 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
0543899fed
Removed NullCallbacksTest, as the behaviour it tests is no longer present or needed (issue 1106)
Reworked the way the parser's callbackmanager.getCallbackType method works - instead of returning null if the callback type doesn't exist (which shouldn't happen in normal behaviour), it throws an exception
git-svn-id: http://svn.dmdirc.com/trunk@3922 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
fd4d184068
Added processNickTest. Uncomment failing ChannelInfo tests and @Ignore them instead
git-svn-id: http://svn.dmdirc.com/trunk@3918 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Gregory Holmes
7fdba4fb4f
another stab at fixing the URLProtocolValidator unit test, issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3917 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Gregory Holmes
763fd6351e
Added URLProtocolValidator unit test. issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3915 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
7d772cb5e7
Add DoubleMap unit test
Issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3914 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
f3f2730394
Format UIUtilities test to be consistent with other tests
git-svn-id: http://svn.dmdirc.com/trunk@3913 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Gregory Holmes
9881776e39
Added UIUtilities unit test. issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3912 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
dc0a4f9e34
Added a couple of unit tests for the URL Catcher plugin
Added an extra test file + tests for the Logging Plugin's reverse file reader
Issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3911 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
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 gadus atpakaļ
Chris Smith
aeebbf0c6a
Additional IgnoreList unit tests
ProcessModeTest now tests numeric 324 (channel mode discovery)
ProcessNamesTest now tests nicks with multiple and no channel modes
ArrayListTransferHandlerTest now tests copying as well as moving
Issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3906 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
edfbc5fdf2
Parser now sends queued channel modes as soon as the max number is reached, rather than waiting for the next one
Fixes issue 1107
git-svn-id: http://svn.dmdirc.com/trunk@3905 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
021ecde23a
Unsetting colours now reverts them (+ unit test)
Fixes issue 1136, issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3900 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
ecd734e147
Update ArrayListTransferHandlerTest to test new behaviour
git-svn-id: http://svn.dmdirc.com/trunk@3896 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
fb1fae4186
Added unit tests for ArrayListTransfer*
Issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3893 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
e49ace7c80
Added unit test for custom colours
Issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3891 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
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 gadus atpakaļ
Chris Smith
ec307fc146
IRCStringConverter unit test (mostly extracted from the main IRCParser test)
issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3888 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
7ce57885a1
Add a bunch more edge cases to ConditionTreeTest
Issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3884 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
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 gadus atpakaļ
Chris Smith
134e1a33fa
Identities initialised using streams now require two to be passed, as there doesn't seem to be a reliable way to read one twice...
Fixes issue 1123
Fixes issue 1124
Fixes issue 1125
git-svn-id: http://svn.dmdirc.com/trunk@3878 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
b63bad4464
Identities are once again being migrated properly
Fixes issue 1122
git-svn-id: http://svn.dmdirc.com/trunk@3876 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
a30304a786
Action unit tests
Issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3869 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
94dc05d6b1
PreferencesSetting unit testing
Issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3868 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
b025510fb0
Fixed failing unit tests, and fixed NPE in prefs setting
Issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3866 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
45a5a37d27
Preferences unit tests
Issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3863 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
bd84d1c053
Parser unit tests (process modes)
Issue 1106
git-svn-id: http://svn.dmdirc.com/trunk@3862 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
ffe8575500
Action wrappers now extend action groups
Groups now encapsulate instead of extending their ArrayLists, to limit the number of ways it can be modified
Various resulting tweaks
Fixes issue 631
git-svn-id: http://svn.dmdirc.com/trunk@3859 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
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 gadus atpakaļ
Chris Smith
43aa4cb0f9
Repurpose testRemoveInvitesOnDisconnect to testRemoveInvitesOnSocketClosed
Fixes issue 701
git-svn-id: http://svn.dmdirc.com/trunk@3849 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ
Chris Smith
4d7a550715
Add another annoyingly bitchy quoting test for the ident client
git-svn-id: http://svn.dmdirc.com/trunk@3846 00569f92 -eb28-0410-84fd-f71c24880f
16 gadus atpakaļ