Greg Holmes
245880962b
Add getOptionalConnection.
9 years ago
Chris Smith
fbc50fb300
Fix tests.
9 years ago
Chris Smith
d48b9e9f4b
Add tests for EventPropertyManager.
9 years ago
Chris Smith
609bd1e94e
More formatter work.
Implement functions, add test.
Functions don't hugely need to be optional, we can just carry on
if the function is invalid.
9 years ago
Chris Smith
7a2bec2538
Some work on event formatting.
Get properties by reflection. Use Optional as things can fail.
9 years ago
Greg Holmes
e5f331f1b2
Add some methods to AutoCommandManager
9 years ago
Chris Smith
f2f89a9c9f
Change optionals.
9 years ago
Greg Holmes
8625562eaf
Switch to j8 Optional.
9 years ago
Greg Holmes
8402f9acc7
Remove StatusBar.
9 years ago
Greg Holmes
bc39d2c3af
Remove some statusbar manager uses.
9 years ago
Chris Smith
04a20bade3
Make PluginMetaData use a Path for the plugin.
Make URLBuilder accept 'file:/..' URLs, which it used to like
prefixing with 'file://' again...
9 years ago
Chris Smith
c5440b1144
Fix command tab completion in global window.
The way this works is icky, but the fix for the actual issue
is fairly straight forward.
Fixes #41
9 years ago
Chris Smith
164680c001
Fix failures caused by static factory.
Can't register it separately for each test, as it'll just end up
using the first one. And the API doesn't let you remove factories :(
9 years ago
Chris Smith
9b6133fa9a
Add some unit tests for ErrorReporter.
9 years ago
Chris Smith
b05b3fda15
Change some more files to paths.
The updater code is horrid. In most cases I've just bailed out by
converting to a file.
Issue #24
9 years ago
Chris Smith
10e207709c
Add normalise method to line position, unit test.
This is used by the TextPane Canvas. Makes sense to pull the
behaviour out and test it.
9 years ago
Chris Smith
aa8437afbf
Start adding some ServerEventHandler tests.
Change-Id: I84ee00fedc3096de4ac500bf63a54d2b13209fe9
Reviewed-on: http://gerrit.dmdirc.com/4077
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Chris Smith
0d04b2f5bd
Add some more IdentityManager tests
Change-Id: Id7c65bb82cebaa33ef1642702a72465930e6bdf6
Reviewed-on: http://gerrit.dmdirc.com/4050
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Chris Smith
252f6702d1
Fix IdentityManager extraction, test.
Change-Id: Iad1d54ecebb7b3e5d13318ca2550ebc540cbd62b
Reviewed-on: http://gerrit.dmdirc.com/4044
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Chris Smith
b107fb8785
Start adding IdentityManager tests.
Change-Id: I66c8a3500310d214756f0c19a0fc26883d2da440
Reviewed-on: http://gerrit.dmdirc.com/4037
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 years ago
Chris Smith
68fe71042b
Don't depend on the IRC parser...
Sensible build systems break when we do this! :)
Change-Id: I7ebd886556377ffaa002d8148a61399f8f97f981
Reviewed-on: http://gerrit.dmdirc.com/4026
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Chris Smith
8c4160a590
Rewrite the ConfigFileBackedConfigProviderTest.
(aka the "IdentityTest")
Make it a lot less dumb, use a virtual FS so we can test reloading
and saving. Fix a bunch of bugs the tests highlighted.
Only things not really tested are the global config specific
behaviours.
Change-Id: I96448eb9c401ce864cd6f39fd95088a4a8a09727
Reviewed-on: http://gerrit.dmdirc.com/4015
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 years ago
Chris Smith
e9b7bc394a
Stupid.
Change-Id: Iabb2d0644fb4412ead64a4c28afa96b1809244bc
Reviewed-on: http://gerrit.dmdirc.com/4013
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 years ago
Chris Smith
aefb110fff
Path-ify the IdentityManager.
Change-Id: Iaf2b64f2bd6dcf834e3621e26ae3ff6b81cdb2b4
Reviewed-on: http://gerrit.dmdirc.com/4007
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 years ago
Chris Smith
2c2e7d6a6b
Make migrator use Path properly.
Finish unit tests.
Change-Id: I5dba46bccd147283d8389dcc3d2a4aadf4d827be
Reviewed-on: http://gerrit.dmdirc.com/4002
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 years ago
Chris Smith
3e75d1029f
Allow injecting Paths not Files.
Make the ActionAliasMigrator use a Path, and add a basic
unit test. Need to make ConfigFile use paths to do anything
sensible.
Also refresh gradle libs in idea so JimFs shows up.
Change-Id: I0cb2692083d0fe117b91edce63d8417ddd74e288
Reviewed-on: http://gerrit.dmdirc.com/3999
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 years ago
Greg Holmes
3fac8a376f
Add test for YamlAutoCommandStore
Change-Id: I62a9d05c94a3e2d31466a04c775f3afbddb09cdc
Reviewed-on: http://gerrit.dmdirc.com/3995
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 years ago
Greg Holmes
47ddc34331
Add AutoCommandLifecycleManagerTest.
Change-Id: I6b07117bb136b3817a92cb9c31dfd3222fc52a7c
Reviewed-on: http://gerrit.dmdirc.com/3969
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 years ago
Greg Holmes
ca7a2499ea
Add AutoCommandHandlerTest.
Change-Id: I0ef123c502f77f4438e8afc62490ff4d364d7fa4
Reviewed-on: http://gerrit.dmdirc.com/3968
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 years ago
Greg Holmes
1348b38a05
Improve AutoCommandManagerTest.
Change-Id: If9b6a83bfae4bdb8b83985874fc3610feb6b6512
Reviewed-on: http://gerrit.dmdirc.com/3967
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 years ago
Greg Holmes
82987a3b38
fix unit tests for IDEA.
Change-Id: Ibb730a561f87324cfa9d3ac202ba53b09bfdca83
Reviewed-on: http://gerrit.dmdirc.com/3966
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 years ago
Greg Holmes
201a49c77d
Add getGlobal/ConnectionCommands method.
Also test.
Change-Id: Iea8cfe088b98782d7e7ccbdb3d862ab47dbe6273
Reviewed-on: http://gerrit.dmdirc.com/3955
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 years ago
Chris Smith
13b6b419d9
Remove CipherUtils.
We haven't used this in the N years it's existed, and it uses
scary MD5/DES stuff.
Change-Id: I3934d3cc769980527f03b16a5c273f76fc89cdfb
Reviewed-on: http://gerrit.dmdirc.com/3948
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
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 >
9 years ago
Chris Smith
bbfad60371
Move test resources to test-res.
This breaks ant testing. I plan to change CI to use gradle then
remove the ant rules.
Change-Id: I38ca681b8742f316fc94ebfd8312b1bf4632354f
Reviewed-on: http://gerrit.dmdirc.com/3935
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Chris Smith
df55470ea4
Tidying
Change-Id: I2ae082b9a0a6596615627debd052b80502b92c58
Reviewed-on: http://gerrit.dmdirc.com/3920
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Chris Smith
2bff1052d7
Tidy a couple of tests.
Change-Id: I11b3c8aa740b6a70a58190c75070045b1cbcd3ca
Reviewed-on: http://gerrit.dmdirc.com/3917
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Greg Holmes
8e404a59b8
Add a qualifier for ColourManager.
Change-Id: Icf9c64b84ddc129fe54765a4a3cac475c58cf1de
Depends-On: I81484e5df7b5dfeb7067ba211c11f2df198ac43c
Reviewed-on: http://gerrit.dmdirc.com/3893
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 years ago
Greg Holmes
7c42da8ff9
EventBus logging for ColourManager.
Change-Id: I90019c349b63348779b4b4478659682406289c36
Reviewed-on: http://gerrit.dmdirc.com/3875
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Chris Smith
38b5e683a5
Replace loads of servers with connections.
Change-Id: Ia569d12d8d53797ef7378ceab2ba1f5bda3affdc
Depends-On: I11efabb2757d8e62127b6487cbeb62d240cbd891
Reviewed-on: http://gerrit.dmdirc.com/3873
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 years ago
Greg Holmes
a4089d5a66
Add ColourManagerFactory
Change-Id: I6ef45d10a4fe862854702eee671114ee09f01d4d
Depends-On: If1bc20d15561584c9296ad10f04957efb51c5966
Reviewed-on: http://gerrit.dmdirc.com/3865
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Chris Smith
7f222c800f
Introduce a ConnectionManager.
Remove most references to Server.
Change-Id: I8888522d58ff4d332c4a477702442c29a82d12ff
Depends-On: Ic0e6e5f95adc30e773945c95e73d321d589503d2
Reviewed-on: http://gerrit.dmdirc.com/3872
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 years ago
Chris Smith
54cee141ed
Don't expose servers.
Change-Id: I5db4e866f20ca7e8d4c1ba596ef6248755f4d2ec
Depends-On: I58e485b06887b1215b4d4cba7f2244404a7b81aa
Reviewed-on: http://gerrit.dmdirc.com/3870
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Greg Holmes
22e1a9aee1
Move Colour to utils.
Change-Id: Icb4de047bfada18231b66011838958974282a322
Depends-On: I73c10f367e5972031d1c9b0871c4cb9043008bec
Depends-On: Ibf9936e6cf89ebbe1243e1c32596bc726bebc5ce
Reviewed-on: http://gerrit.dmdirc.com/3860
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 years ago
Chris Smith
969ddc596c
Fix some stupidly wrong imports.
Change-Id: Iaa32f068930bee751e17e2f22136e571e5afa081
Reviewed-on: http://gerrit.dmdirc.com/3853
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 years ago
Chris Smith
0b42c771be
Initial work on EventFormatters.
These will be used to format events for displaying in a window.
Change-Id: I30381c2adc7bd77de486d6c0410a0a6395a7ea8d
Reviewed-on: http://gerrit.dmdirc.com/3835
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 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
9 years ago
Greg Holmes
06179bfd89
Use FrameClosingEvents in WindowManager.
Change-Id: Iba5bc03ad28b1bb28def0b7a1f27c9cf4e2fe7d0
Reviewed-on: http://gerrit.dmdirc.com/3813
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 years ago
Chris Smith
b0d0c95be7
Propagate annotations around a bit.
Change-Id: Ia3e89a5d05bbefb5e0b73e1d2b97bd3e8e4e6392
Reviewed-on: http://gerrit.dmdirc.com/3797
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 years ago
Greg Holmes
4a55631b56
Switch to AutoClose instead of StreamUtils.
Change-Id: I07ed6c365c52470233ce2e56b262f6eb8456e874
Reviewed-on: http://gerrit.dmdirc.com/3791
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 years ago