Search in sources :

Example 1 with MessageFileHandler

use of fr.xephi.authme.message.MessageFileHandler in project AuthMeReloaded by AuthMe.

the class HelpMessagesServiceTest method initializeHandler.

@BeforeInjecting
@SuppressWarnings("unchecked")
public void initializeHandler() {
    MessageFileHandler handler = new MessageFileHandler(getJarFile(TEST_FILE), "messages/messages_en.yml", null);
    given(messageFileHandlerProvider.initializeHandler(any(Function.class))).willReturn(handler);
}
Also used : Function(java.util.function.Function) MessageFileHandler(fr.xephi.authme.message.MessageFileHandler) BeforeInjecting(ch.jalu.injector.testing.BeforeInjecting)

Aggregations

BeforeInjecting (ch.jalu.injector.testing.BeforeInjecting)1 MessageFileHandler (fr.xephi.authme.message.MessageFileHandler)1 Function (java.util.function.Function)1