Gabriele C.
90be2af901
Update usage of deprecated org.junit.Assert.assertThat
2024-04-26 02:06:39 +02:00
Gabriele C
75b3a571e1
Always specify Locale on toLowerCase and toUpperCase usages, fixes AuthMe not working correctly on machines with turkish locale. ('I'.toLowerCase() => 'ı')
2022-08-20 04:41:04 +02:00
ljacqu
5cce7e1fae
Update version of ConfigMe, Mockito and sqlite-jdbc
2016-10-30 14:05:22 +01:00
ljacqu
d09964f1cb
#963 Create tool task to generate plugin.yml
...
- Create task that generates commands/permissions section of plugin.yml
- Change CommandInitializer to return a List instead of Set (preserve insertion order)
- Merge CommandSyntaxHelper into CommandUtils
2016-10-23 12:17:37 +02:00
ljacqu
1d11824367
#293 Translatable help - show translated description of child commands
...
- Show translated command descriptions when available
- Fix bug where localized command is registered on the parent each time
Thanks to @Maxetto
2016-10-18 19:47:57 +02:00
ljacqu
bb75d50c06
Set help command to short description and alternatives
...
- As discussed in https://github.com/AuthMe/AuthMeReloaded/pull/169
2016-10-18 17:59:23 +02:00
ljacqu
5928aee097
#293 Add comments to help file, migrate header setting, write tests
2016-10-09 14:53:10 +02:00
ljacqu
edfd833198
#293 Improve handling of disabled sections
2016-10-09 00:50:03 +02:00
ljacqu
f453a5b4f5
#293 Skip help sections if translation is empty
2016-10-08 14:25:42 +02:00
ljacqu
6b1112438a
#293 Fix tests and create consistency test for English help file
2016-10-07 23:44:36 +02:00
ljacqu
26716b0f79
#293 Create class for handling messages from file with fallback
...
- Move logic for loading a messages file with a default fallback into one class
- Remove message-specific handling from Settings class
2016-10-07 23:38:30 +02:00
ljacqu
d78b7cc4af
#293 Create class for handling message file initialization
...
- Work in progress; more logic can be extracted
2016-10-07 20:12:18 +02:00
ljacqu
f6a2b2b34b
#293 Translatable help messages: basic structure
...
(work in progress)
- Create service that provides localized messages when available for HelpProvider
2016-10-01 14:42:49 +02:00
ljacqu
19de5a0525
Close #449 Rename NewSetting class to Settings :)
2016-07-23 15:50:40 +02:00
ljacqu
26ac466035
#727 Instantiate ExecutableCommand objects in CommandHandler
...
- Change CommandDescription to contain a reference to ExecutableCommand class only
- Instantiate the actual ExecutableCommand objects in CommandHandler
2016-06-04 21:13:38 +02:00
ljacqu
6d2597a980
#739 Fix command unit tests; adjust default handling
...
(cherry picked from commit 61c119b)
2016-06-02 23:12:01 +02:00
Gnat008
73272b5931
Remove all but one hasPermission() method in the PermissionsManager
...
#739 (cherry picked from commit 65f3347)
2016-06-02 23:11:47 +02:00
ljacqu
30b72bec4c
#604 Fix HelpProvider tests
2016-05-30 23:49:59 +02:00
EbonJaguar
3ad00a45f9
Move default permissions out of Commands and into PermissionNode - fixes #606
2016-05-30 16:47:48 -04:00
ljacqu
02079f1f5c
#432 Create custom dependency injector
2016-04-27 22:49:20 +02:00
ljacqu
c079692f1d
Minor - code householding (tests)
...
- Remove redundant uses of WrapperMock
- Use assertThat() from JUnit, not hamcrest
- Use hamcrest Matchers everywhere (not BaseMatchers etc.)
- Favor Mockito's argThat() over using ArgumentCaptor (more succinct)
- Delete useless test classes
2016-04-03 07:38:13 +02:00
Gabriele C
19070c220b
Blame eclipse warnings
2016-03-17 21:16:13 +01:00
ljacqu
724296e02b
#449 Migrate some properties to new settings
...
- Use new settings class for retrieving help header & backup configs
- Delete migrated configs from old settings
2016-01-30 13:19:05 +01:00
ljacqu
9e8f51c616
#306 Fully test HelpProvider and CommandSyntaxHelper
2015-12-24 15:26:25 +01:00
ljacqu
01a294a334
#305 Adjust behavior of label handling; cleanup
...
- Fix bugs in behavior (wrong labels being shown for help)
- Change order of labels and arguments in FoundCommandResult constructors
- Move FoundResultStatus enum to its own class
- Create test class for HelpProvider
2015-12-18 22:19:26 +01:00