#437 Create test for AddEmail task; fix bugs

This commit is contained in:
ljacqu
2016-01-15 20:38:12 +01:00
parent 8ed8b32589
commit 5996d58081
4 changed files with 189 additions and 13 deletions
@@ -1,6 +1,7 @@
package fr.xephi.authme.process;
import fr.xephi.authme.AuthMe;
import fr.xephi.authme.cache.auth.PlayerCache;
import fr.xephi.authme.process.email.AsyncAddEmail;
import fr.xephi.authme.process.email.AsyncChangeEmail;
import fr.xephi.authme.process.join.AsynchronousJoin;
@@ -95,7 +96,8 @@ public class Management {
sched.runTaskAsynchronously(plugin, new Runnable() {
@Override
public void run() {
new AsyncAddEmail(plugin, player, newEmail).process();
new AsyncAddEmail(plugin, player, newEmail, plugin.getDataSource(), PlayerCache.getInstance())
.process();
}
});
}