Tim Visée
da662afcf4
Created method to get an exception stack trace as a string
2015-11-22 21:01:31 +01:00
ljacqu
e456203fc6
Refactor Utils#getOnlinePlayers and add background info
2015-11-22 01:30:07 +01:00
ljacqu
fc3f685de0
Create UtilsTest
...
Had to create a getGameServer() method in AuthMe in order to be able to catch this call in tests and replace it with a mock implementation of the actual server. The supertype method getServer() is declared as final, which makes it impossible to mock with Mockito.
While there are frameworks that manipulate the bytecode to mock final calls, it is much easier and less risky to simply delegate the server retrieval through another method.
2015-11-21 23:09:04 +01:00
Tim Visée
e45aa88504
Fixed result not being returned
2015-11-21 21:03:50 +01:00
Tim Visée
89b5444d69
Fixed addNormal method, updated it's JavaDocs
2015-11-21 20:50:12 +01:00
Tim Visée
7902cd87bb
Added return statement for setGroup method, updated it's JavaDocs
2015-11-21 20:47:56 +01:00
ljacqu
b3d0a71dec
Merge ListUtil into StringUtil; refactor HelpSyntaxHelper + create test
...
The HelpSyntaxHelper had suppressed warnings for string concatenation within StringBuilder - the point of the StringBuilder is that it is faster when you use it to concatenate many elements. If you still use string concatenation with + within these calls it beats the purpose.
2015-11-21 17:19:11 +01:00
ljacqu
a3f24bcb9a
Create test for HelpSyntaxHelperTest
2015-11-21 17:18:58 +01:00
Tim Visée
8387924c64
Merge pull request #68 from ljacqu/master
...
Revert certain JavaDoc changes
2015-11-21 16:57:17 +01:00
Tim Visée
6dc4066563
Added group support check to setGroups method in Utils class
2015-11-21 16:08:41 +01:00
Tim Visée
69d6518b30
Improved setGroup method in Utils class, to replace legacy permissions code
2015-11-21 16:03:00 +01:00
ljacqu
9a68aa5517
Proper Javadoc example / add test for StringUtils
...
- Proper example for the purpose of javadoc and how it could look like
- Fix containsAny to be null safe
- Add tests
2015-11-21 08:28:53 +01:00
Gabriele C
bd1f868c6d
standard javadoc
2015-11-21 01:31:18 +01:00
Gabriele C
118c79401a
Prepare the project for javadocs
2015-11-21 01:27:06 +01:00
Gabriele C
d6355adb51
cleanup
2015-11-20 23:52:20 +01:00
ljacqu
84de22c9c0
Refactor Log4JFilter and improve branch coverage
2015-11-20 23:17:50 +01:00
Tim Visée
3500ee6fb7
Replaced code that used legacy deprecated permissions methods
2015-11-20 20:23:03 +01:00
DNx5
9a79332933
add getPlayer method into Utils class
2015-11-17 09:32:33 +07:00
DNx5
1af937651c
fix geoip lagging if server cant download the file.
2015-11-15 04:24:36 +07:00
Gabriele C
8a4f2c5ef8
I love to clean code and stuff
2015-11-10 19:28:17 +01:00
Gabriele C
ddda62aa14
cleaup
2015-11-07 00:13:29 +01:00
DNx5
3ede8f0dae
let bukkit load the chunk
2015-11-03 03:56:20 +07:00
DNx5
872856e729
create teleportTospawn method in Utils class
2015-11-03 03:42:02 +07:00
Gabriele C
5e7c5560cf
Cleanup2: The Revenge
2015-11-02 00:09:40 +01:00
Tim Visée
3643afdea3
Moved Utils class to util package
2015-11-01 23:29:47 +01:00
Tim Visée
40c7ef95e5
Added Profiler class
2015-11-01 17:08:23 +01:00
Tim Visée
80e66198db
Added list utilities class
2015-11-01 15:51:28 +01:00
Tim Visée
c156c988aa
Improved string utils class, added javaDocs
2015-11-01 15:40:15 +01:00
Tim Visée
ab8eee3be9
Added string utilities class, fixed some imports
2015-11-01 15:38:49 +01:00