Search in sources :

Example 6 with BeforeInjecting

use of ch.jalu.injector.testing.BeforeInjecting 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)6 File (java.io.File)4 Injector (ch.jalu.injector.Injector)1 InjectorBuilder (ch.jalu.injector.InjectorBuilder)1 PasswordEncryptionEvent (fr.xephi.authme.events.PasswordEncryptionEvent)1 MessageFileHandler (fr.xephi.authme.message.MessageFileHandler)1 Function (java.util.function.Function)1 World (org.bukkit.World)1 Event (org.bukkit.event.Event)1 BeforeClass (org.junit.BeforeClass)1 InvocationOnMock (org.mockito.invocation.InvocationOnMock)1