
entry-point.async-event-handler.handler-registry-configuration.test.mustache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scaffold-clean-architecture Show documentation
Show all versions of scaffold-clean-architecture Show documentation
Gradle plugin to create a clean application in Java that already works, It follows our best practices!
package {{package}}.events;
import co.com.bancolombia.events.handlers.CommandsHandler;
import co.com.bancolombia.events.handlers.EventsHandler;
import co.com.bancolombia.events.handlers.QueriesHandler;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.reactivecommons.async.api.HandlerRegistry;
import static org.junit.jupiter.api.Assertions.assertNotNull;
public class HandlerRegistryConfigurationTest {
EventsHandler eventsHandler;
CommandsHandler commandsHandler;
QueriesHandler queriesHandler;
@BeforeEach
void setUp() {
eventsHandler = new EventsHandler();
commandsHandler = new CommandsHandler();
queriesHandler = new QueriesHandler();
}
@Test
void testHandlerRegistry() {
HandlerRegistryConfiguration handlerRegistryConfiguration = new HandlerRegistryConfiguration();
HandlerRegistry handlerRegistry = handlerRegistryConfiguration.handlerRegistry(commandsHandler, eventsHandler, queriesHandler);
assertNotNull(handlerRegistry);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy